msm-pcm-routing-v2.c 1.1 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516
  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(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 if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2828. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2829. } else {
  2830. pr_err("%s: unsupported backend id: %s",
  2831. __func__, kcontrol->id.name);
  2832. return -EINVAL;
  2833. }
  2834. return backend_id;
  2835. }
  2836. static int msm_routing_adm_channel_config_get(
  2837. struct snd_kcontrol *kcontrol,
  2838. struct snd_ctl_elem_value *ucontrol)
  2839. {
  2840. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2841. if (backend_id >= 0) {
  2842. mutex_lock(&routing_lock);
  2843. ucontrol->value.integer.value[0] =
  2844. msm_bedais[backend_id].adm_override_ch;
  2845. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2846. ucontrol->value.integer.value[0], backend_id);
  2847. mutex_unlock(&routing_lock);
  2848. }
  2849. return 0;
  2850. }
  2851. static int msm_routing_adm_channel_config_put(
  2852. struct snd_kcontrol *kcontrol,
  2853. struct snd_ctl_elem_value *ucontrol)
  2854. {
  2855. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2856. if (backend_id >= 0) {
  2857. mutex_lock(&routing_lock);
  2858. msm_bedais[backend_id].adm_override_ch =
  2859. ucontrol->value.integer.value[0];
  2860. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2861. __func__, backend_id,
  2862. msm_bedais[backend_id].adm_override_ch);
  2863. mutex_unlock(&routing_lock);
  2864. }
  2865. return 0;
  2866. }
  2867. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2868. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2869. msm_routing_adm_channel_config_get,
  2870. msm_routing_adm_channel_config_put),
  2871. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2872. msm_routing_adm_channel_config_get,
  2873. msm_routing_adm_channel_config_put),
  2874. };
  2875. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2876. struct snd_ctl_elem_value *ucontrol)
  2877. {
  2878. mutex_lock(&routing_lock);
  2879. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2880. mutex_unlock(&routing_lock);
  2881. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2882. ucontrol->value.integer.value[0]);
  2883. return 0;
  2884. };
  2885. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2886. struct snd_ctl_elem_value *ucontrol)
  2887. {
  2888. struct aanc_data aanc_info;
  2889. mutex_lock(&routing_lock);
  2890. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2891. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2892. ucontrol->value.integer.value[0]);
  2893. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2894. if (ucontrol->value.integer.value[0] == 0) {
  2895. aanc_info.aanc_active = false;
  2896. aanc_info.aanc_tx_port = 0;
  2897. aanc_info.aanc_rx_port = 0;
  2898. } else {
  2899. aanc_info.aanc_active = true;
  2900. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2901. aanc_info.aanc_tx_port =
  2902. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2903. }
  2904. afe_set_aanc_info(&aanc_info);
  2905. mutex_unlock(&routing_lock);
  2906. return 0;
  2907. };
  2908. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2909. struct snd_ctl_elem_value *ucontrol)
  2910. {
  2911. int idx = 0, shift = 0;
  2912. struct soc_mixer_control *mc =
  2913. (struct soc_mixer_control *)kcontrol->private_value;
  2914. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2915. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2916. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2917. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2918. return -EINVAL;
  2919. }
  2920. if (test_bit(shift,
  2921. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2922. ucontrol->value.integer.value[0] = 1;
  2923. else
  2924. ucontrol->value.integer.value[0] = 0;
  2925. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2926. ucontrol->value.integer.value[0]);
  2927. return 0;
  2928. }
  2929. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2930. struct snd_ctl_elem_value *ucontrol)
  2931. {
  2932. int idx = 0, shift = 0;
  2933. struct soc_mixer_control *mc =
  2934. (struct soc_mixer_control *)kcontrol->private_value;
  2935. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2936. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2937. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2938. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2939. return -EINVAL;
  2940. }
  2941. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2942. __func__, mc->shift, mc->rshift,
  2943. ucontrol->value.integer.value[0], idx, shift);
  2944. if (ucontrol->value.integer.value[0]) {
  2945. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2946. msm_bedais[mc->rshift].port_id);
  2947. set_bit(shift,
  2948. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2949. } else {
  2950. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2951. msm_bedais[mc->rshift].port_id);
  2952. clear_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2954. }
  2955. return 1;
  2956. }
  2957. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2958. struct snd_ctl_elem_value *ucontrol)
  2959. {
  2960. u16 fe_id = 0;
  2961. fe_id = ((struct soc_mixer_control *)
  2962. kcontrol->private_value)->shift;
  2963. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2964. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2965. return -EINVAL;
  2966. }
  2967. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2968. return 0;
  2969. }
  2970. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2971. struct snd_ctl_elem_value *ucontrol)
  2972. {
  2973. u16 fe_id = 0;
  2974. fe_id = ((struct soc_mixer_control *)
  2975. kcontrol->private_value)->shift;
  2976. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2977. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2978. return -EINVAL;
  2979. }
  2980. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2981. return 1;
  2982. }
  2983. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2984. struct snd_ctl_elem_value *ucontrol)
  2985. {
  2986. u16 fe_id = 0;
  2987. fe_id = ((struct soc_multi_mixer_control *)
  2988. kcontrol->private_value)->shift;
  2989. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2990. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2991. return -EINVAL;
  2992. }
  2993. ucontrol->value.integer.value[0] =
  2994. channel_mixer[fe_id].output_channel;
  2995. return 0;
  2996. }
  2997. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2998. struct snd_ctl_elem_value *ucontrol)
  2999. {
  3000. u16 fe_id = 0;
  3001. fe_id = ((struct soc_multi_mixer_control *)
  3002. kcontrol->private_value)->shift;
  3003. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3004. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3005. return -EINVAL;
  3006. }
  3007. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3008. fe_id,
  3009. (unsigned int)(ucontrol->value.integer.value[0]));
  3010. channel_mixer[fe_id].output_channel =
  3011. (unsigned int)(ucontrol->value.integer.value[0]);
  3012. return 1;
  3013. }
  3014. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3015. /* If new backend is added, need update this array */
  3016. static const char *const be_name[] = {
  3017. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3018. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3019. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3020. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3021. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3022. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3023. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3024. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3025. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3026. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3027. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3028. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3029. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3030. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3031. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3032. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3033. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3034. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3035. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3036. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3037. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3038. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3039. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3040. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3041. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3042. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3043. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3044. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3045. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3046. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3047. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3048. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3049. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3050. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3051. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3052. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3053. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3054. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3055. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3056. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3057. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3058. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3059. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3060. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3061. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3062. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3063. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3064. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3065. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3066. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3067. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3068. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3069. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX"
  3070. };
  3071. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3072. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3073. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3074. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3075. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3076. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3077. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3078. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3079. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3080. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3081. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3082. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3083. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3084. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3085. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3086. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3087. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3088. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3089. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3090. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3091. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3092. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3093. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3094. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3095. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3096. unsigned int channels,
  3097. unsigned int items, const char *const names[])
  3098. {
  3099. if (uinfo->value.enumerated.item >= items)
  3100. uinfo->value.enumerated.item = items - 1;
  3101. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3102. sizeof(uinfo->value.enumerated.name),
  3103. "ALSA: too long item name '%s'\n",
  3104. names[uinfo->value.enumerated.item]);
  3105. strlcpy(uinfo->value.enumerated.name,
  3106. names[uinfo->value.enumerated.item],
  3107. sizeof(uinfo->value.enumerated.name));
  3108. return 0;
  3109. }
  3110. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3111. struct snd_ctl_elem_info *uinfo)
  3112. {
  3113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3114. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3115. uinfo->count = 1;
  3116. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3117. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3118. return 0;
  3119. }
  3120. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3121. struct snd_ctl_elem_value *ucontrol)
  3122. {
  3123. u16 fe_id = 0;
  3124. fe_id = ((struct soc_enum *)
  3125. kcontrol->private_value)->shift_l;
  3126. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3127. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3128. return -EINVAL;
  3129. }
  3130. pr_debug("%s: FE %d %s\n", __func__,
  3131. fe_id,
  3132. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3133. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3134. return 0;
  3135. }
  3136. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3137. struct snd_ctl_elem_value *ucontrol)
  3138. {
  3139. u16 fe_id = 0;
  3140. fe_id = ((struct soc_enum *)
  3141. kcontrol->private_value)->shift_l;
  3142. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3143. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3144. return -EINVAL;
  3145. }
  3146. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3147. pr_debug("%s: %s FE %d\n", __func__,
  3148. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3149. fe_id);
  3150. return 0;
  3151. }
  3152. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3153. struct snd_ctl_elem_info *uinfo)
  3154. {
  3155. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3156. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3157. uinfo->count = 1;
  3158. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3159. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3160. return 0;
  3161. }
  3162. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3163. struct snd_ctl_elem_value *ucontrol)
  3164. {
  3165. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3166. u16 fe_id = 0, in_ch = 0;
  3167. fe_id = e->shift_l;
  3168. in_ch = e->shift_r;
  3169. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3170. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3171. return -EINVAL;
  3172. }
  3173. if (in_ch >= ADM_MAX_CHANNELS) {
  3174. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3175. return -EINVAL;
  3176. }
  3177. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3178. return 1;
  3179. }
  3180. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3181. struct snd_ctl_elem_value *ucontrol)
  3182. {
  3183. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3184. u16 fe_id = 0, in_ch = 0;
  3185. fe_id = e->shift_l;
  3186. in_ch = e->shift_r;
  3187. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3188. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3189. return -EINVAL;
  3190. }
  3191. if (in_ch >= ADM_MAX_CHANNELS) {
  3192. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3193. return -EINVAL;
  3194. }
  3195. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3196. return 1;
  3197. }
  3198. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3199. struct snd_ctl_elem_info *uinfo)
  3200. {
  3201. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3202. uinfo->count = ADM_MAX_CHANNELS;
  3203. uinfo->value.integer.min = 0;
  3204. uinfo->value.integer.max = WEIGHT_0_DB;
  3205. return 0;
  3206. }
  3207. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3208. struct snd_ctl_elem_value *ucontrol)
  3209. {
  3210. u16 fe_id = 0, out_ch = 0;
  3211. int i, weight;
  3212. fe_id = ((struct soc_multi_mixer_control *)
  3213. kcontrol->private_value)->shift;
  3214. out_ch = ((struct soc_multi_mixer_control *)
  3215. kcontrol->private_value)->rshift;
  3216. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3217. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3218. return -EINVAL;
  3219. }
  3220. if (out_ch >= ADM_MAX_CHANNELS) {
  3221. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3222. return -EINVAL;
  3223. }
  3224. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3225. __func__, fe_id,
  3226. ucontrol->value.integer.value[0],
  3227. ucontrol->value.integer.value[1],
  3228. ucontrol->value.integer.value[2],
  3229. ucontrol->value.integer.value[3],
  3230. ucontrol->value.integer.value[4],
  3231. ucontrol->value.integer.value[5],
  3232. ucontrol->value.integer.value[6],
  3233. ucontrol->value.integer.value[7]);
  3234. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3235. weight = ucontrol->value.integer.value[i];
  3236. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3237. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3238. __func__, fe_id, out_ch, i,
  3239. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3240. }
  3241. return 0;
  3242. }
  3243. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. u16 fe_id = 0, out_ch = 0;
  3247. int i;
  3248. fe_id = ((struct soc_multi_mixer_control *)
  3249. kcontrol->private_value)->shift;
  3250. out_ch = ((struct soc_multi_mixer_control *)
  3251. kcontrol->private_value)->rshift;
  3252. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3253. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3254. return -EINVAL;
  3255. }
  3256. if (out_ch >= ADM_MAX_CHANNELS) {
  3257. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3258. return -EINVAL;
  3259. }
  3260. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3261. ucontrol->value.integer.value[i] =
  3262. channel_mixer[fe_id].channel_weight[out_ch][i];
  3263. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3264. __func__, fe_id,
  3265. ucontrol->value.integer.value[0],
  3266. ucontrol->value.integer.value[1],
  3267. ucontrol->value.integer.value[2],
  3268. ucontrol->value.integer.value[3],
  3269. ucontrol->value.integer.value[4],
  3270. ucontrol->value.integer.value[5],
  3271. ucontrol->value.integer.value[6],
  3272. ucontrol->value.integer.value[7]);
  3273. return 0;
  3274. }
  3275. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3276. struct snd_ctl_elem_info *uinfo)
  3277. {
  3278. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3279. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3280. /* Valid channel map value ranges from 1 to 64 */
  3281. uinfo->value.integer.min = 0;
  3282. uinfo->value.integer.max = 64;
  3283. return 0;
  3284. }
  3285. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3286. struct snd_ctl_elem_value *ucontrol)
  3287. {
  3288. u16 fe_id = 0;
  3289. int i, ch_map;
  3290. fe_id = ((struct soc_multi_mixer_control *)
  3291. kcontrol->private_value)->shift;
  3292. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3293. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3294. return -EINVAL;
  3295. }
  3296. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3297. ch_map = ucontrol->value.integer.value[i];
  3298. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3299. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3300. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3301. }
  3302. /* Make override_out_ch_map false if ch map is reset */
  3303. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3304. channel_mixer[fe_id].override_out_ch_map = false;
  3305. else
  3306. channel_mixer[fe_id].override_out_ch_map = true;
  3307. return 0;
  3308. }
  3309. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3310. struct snd_ctl_elem_value *ucontrol)
  3311. {
  3312. u16 fe_id = 0;
  3313. int i;
  3314. fe_id = ((struct soc_multi_mixer_control *)
  3315. kcontrol->private_value)->shift;
  3316. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3317. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3318. return -EINVAL;
  3319. }
  3320. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3321. ucontrol->value.integer.value[i] =
  3322. channel_mixer[fe_id].out_ch_map[i];
  3323. return 0;
  3324. }
  3325. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3326. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3327. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3328. msm_pcm_get_channel_rule_index,
  3329. msm_pcm_put_channel_rule_index),
  3330. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3331. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3332. msm_pcm_get_channel_rule_index,
  3333. msm_pcm_put_channel_rule_index),
  3334. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3335. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3336. msm_pcm_get_channel_rule_index,
  3337. msm_pcm_put_channel_rule_index),
  3338. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3339. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3340. msm_pcm_get_channel_rule_index,
  3341. msm_pcm_put_channel_rule_index),
  3342. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3343. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3344. msm_pcm_get_channel_rule_index,
  3345. msm_pcm_put_channel_rule_index),
  3346. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3347. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3348. msm_pcm_get_channel_rule_index,
  3349. msm_pcm_put_channel_rule_index),
  3350. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3351. MSM_FRONTEND_DAI_MULTIMEDIA1, 10, 0,
  3352. msm_pcm_get_out_chs,
  3353. msm_pcm_put_out_chs),
  3354. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3355. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3356. msm_pcm_get_out_chs,
  3357. msm_pcm_put_out_chs),
  3358. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3359. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3360. msm_pcm_get_out_chs,
  3361. msm_pcm_put_out_chs),
  3362. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3363. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3364. msm_pcm_get_out_chs,
  3365. msm_pcm_put_out_chs),
  3366. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3367. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3368. msm_pcm_get_out_chs,
  3369. msm_pcm_put_out_chs),
  3370. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3371. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3372. msm_pcm_get_out_chs,
  3373. msm_pcm_put_out_chs),
  3374. {
  3375. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3376. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3377. .name = "MultiMedia1 Channel Mixer",
  3378. .info = msm_pcm_channel_mixer_info,
  3379. .get = msm_pcm_channel_mixer_get,
  3380. .put = msm_pcm_channel_mixer_put,
  3381. .private_value = (unsigned long)&(mm1_channel_mux)
  3382. },
  3383. {
  3384. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3385. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3386. .name = "MultiMedia2 Channel Mixer",
  3387. .info = msm_pcm_channel_mixer_info,
  3388. .get = msm_pcm_channel_mixer_get,
  3389. .put = msm_pcm_channel_mixer_put,
  3390. .private_value = (unsigned long)&(mm2_channel_mux)
  3391. },
  3392. {
  3393. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3394. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3395. .name = "MultiMedia3 Channel Mixer",
  3396. .info = msm_pcm_channel_mixer_info,
  3397. .get = msm_pcm_channel_mixer_get,
  3398. .put = msm_pcm_channel_mixer_put,
  3399. .private_value = (unsigned long)&(mm3_channel_mux)
  3400. },
  3401. {
  3402. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3403. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3404. .name = "MultiMedia4 Channel Mixer",
  3405. .info = msm_pcm_channel_mixer_info,
  3406. .get = msm_pcm_channel_mixer_get,
  3407. .put = msm_pcm_channel_mixer_put,
  3408. .private_value = (unsigned long)&(mm4_channel_mux)
  3409. },
  3410. {
  3411. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3412. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3413. .name = "MultiMedia1 Output Channel1",
  3414. .info = msm_pcm_channel_weight_info,
  3415. .get = msm_pcm_channel_weight_get,
  3416. .put = msm_pcm_channel_weight_put,
  3417. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3418. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3419. },
  3420. {
  3421. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3422. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3423. .name = "MultiMedia1 Output Channel2",
  3424. .info = msm_pcm_channel_weight_info,
  3425. .get = msm_pcm_channel_weight_get,
  3426. .put = msm_pcm_channel_weight_put,
  3427. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3428. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3429. },
  3430. {
  3431. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3432. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3433. .name = "MultiMedia1 Output Channel3",
  3434. .info = msm_pcm_channel_weight_info,
  3435. .get = msm_pcm_channel_weight_get,
  3436. .put = msm_pcm_channel_weight_put,
  3437. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3438. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3439. },
  3440. {
  3441. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3442. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3443. .name = "MultiMedia1 Output Channel4",
  3444. .info = msm_pcm_channel_weight_info,
  3445. .get = msm_pcm_channel_weight_get,
  3446. .put = msm_pcm_channel_weight_put,
  3447. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3448. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3449. },
  3450. {
  3451. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3452. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3453. .name = "MultiMedia1 Output Channel5",
  3454. .info = msm_pcm_channel_weight_info,
  3455. .get = msm_pcm_channel_weight_get,
  3456. .put = msm_pcm_channel_weight_put,
  3457. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3458. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3459. },
  3460. {
  3461. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3462. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3463. .name = "MultiMedia1 Output Channel6",
  3464. .info = msm_pcm_channel_weight_info,
  3465. .get = msm_pcm_channel_weight_get,
  3466. .put = msm_pcm_channel_weight_put,
  3467. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3468. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3469. },
  3470. {
  3471. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3472. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3473. .name = "MultiMedia1 Output Channel7",
  3474. .info = msm_pcm_channel_weight_info,
  3475. .get = msm_pcm_channel_weight_get,
  3476. .put = msm_pcm_channel_weight_put,
  3477. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3478. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3479. },
  3480. {
  3481. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3482. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3483. .name = "MultiMedia1 Output Channel8",
  3484. .info = msm_pcm_channel_weight_info,
  3485. .get = msm_pcm_channel_weight_get,
  3486. .put = msm_pcm_channel_weight_put,
  3487. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3488. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3489. },
  3490. {
  3491. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3492. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3493. .name = "MultiMedia1 Output Channel9",
  3494. .info = msm_pcm_channel_weight_info,
  3495. .get = msm_pcm_channel_weight_get,
  3496. .put = msm_pcm_channel_weight_put,
  3497. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3498. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3499. },
  3500. {
  3501. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3502. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3503. .name = "MultiMedia1 Output Channel10",
  3504. .info = msm_pcm_channel_weight_info,
  3505. .get = msm_pcm_channel_weight_get,
  3506. .put = msm_pcm_channel_weight_put,
  3507. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3508. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3509. },
  3510. {
  3511. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3512. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3513. .name = "MultiMedia2 Output Channel1",
  3514. .info = msm_pcm_channel_weight_info,
  3515. .get = msm_pcm_channel_weight_get,
  3516. .put = msm_pcm_channel_weight_put,
  3517. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3518. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3519. },
  3520. {
  3521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3523. .name = "MultiMedia2 Output Channel2",
  3524. .info = msm_pcm_channel_weight_info,
  3525. .get = msm_pcm_channel_weight_get,
  3526. .put = msm_pcm_channel_weight_put,
  3527. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3528. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3529. },
  3530. {
  3531. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3532. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3533. .name = "MultiMedia2 Output Channel3",
  3534. .info = msm_pcm_channel_weight_info,
  3535. .get = msm_pcm_channel_weight_get,
  3536. .put = msm_pcm_channel_weight_put,
  3537. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3538. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3539. },
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia3 Output Channel1",
  3544. .info = msm_pcm_channel_weight_info,
  3545. .get = msm_pcm_channel_weight_get,
  3546. .put = msm_pcm_channel_weight_put,
  3547. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3548. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3549. },
  3550. {
  3551. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3552. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3553. .name = "MultiMedia3 Output Channel2",
  3554. .info = msm_pcm_channel_weight_info,
  3555. .get = msm_pcm_channel_weight_get,
  3556. .put = msm_pcm_channel_weight_put,
  3557. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3558. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3559. },
  3560. {
  3561. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3562. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3563. .name = "MultiMedia1 Channel1",
  3564. .info = msm_pcm_channel_input_be_info,
  3565. .get = msm_pcm_channel_input_be_get,
  3566. .put = msm_pcm_channel_input_be_put,
  3567. .private_value = (unsigned long)&(mm1_ch1_enum)
  3568. },
  3569. {
  3570. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3571. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3572. .name = "MultiMedia1 Channel2",
  3573. .info = msm_pcm_channel_input_be_info,
  3574. .get = msm_pcm_channel_input_be_get,
  3575. .put = msm_pcm_channel_input_be_put,
  3576. .private_value = (unsigned long)&(mm1_ch2_enum)
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Channel3",
  3582. .info = msm_pcm_channel_input_be_info,
  3583. .get = msm_pcm_channel_input_be_get,
  3584. .put = msm_pcm_channel_input_be_put,
  3585. .private_value = (unsigned long)&(mm1_ch3_enum)
  3586. },
  3587. {
  3588. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3589. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3590. .name = "MultiMedia1 Channel4",
  3591. .info = msm_pcm_channel_input_be_info,
  3592. .get = msm_pcm_channel_input_be_get,
  3593. .put = msm_pcm_channel_input_be_put,
  3594. .private_value = (unsigned long)&(mm1_ch4_enum)
  3595. },
  3596. {
  3597. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3598. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3599. .name = "MultiMedia1 Channel5",
  3600. .info = msm_pcm_channel_input_be_info,
  3601. .get = msm_pcm_channel_input_be_get,
  3602. .put = msm_pcm_channel_input_be_put,
  3603. .private_value = (unsigned long)&(mm1_ch5_enum)
  3604. },
  3605. {
  3606. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3607. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3608. .name = "MultiMedia1 Channel6",
  3609. .info = msm_pcm_channel_input_be_info,
  3610. .get = msm_pcm_channel_input_be_get,
  3611. .put = msm_pcm_channel_input_be_put,
  3612. .private_value = (unsigned long)&(mm1_ch6_enum)
  3613. },
  3614. {
  3615. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3616. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3617. .name = "MultiMedia1 Channel7",
  3618. .info = msm_pcm_channel_input_be_info,
  3619. .get = msm_pcm_channel_input_be_get,
  3620. .put = msm_pcm_channel_input_be_put,
  3621. .private_value = (unsigned long)&(mm1_ch7_enum)
  3622. },
  3623. {
  3624. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3625. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3626. .name = "MultiMedia1 Channel8",
  3627. .info = msm_pcm_channel_input_be_info,
  3628. .get = msm_pcm_channel_input_be_get,
  3629. .put = msm_pcm_channel_input_be_put,
  3630. .private_value = (unsigned long)&(mm1_ch8_enum)
  3631. },
  3632. {
  3633. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3634. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3635. .name = "MultiMedia1 Output Channel Map",
  3636. .info = msm_pcm_channel_output_map_info,
  3637. .get = msm_pcm_channel_output_map_get,
  3638. .put = msm_pcm_channel_output_map_put,
  3639. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3640. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  3641. },
  3642. {
  3643. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3644. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3645. .name = "MultiMedia2 Output Channel Map",
  3646. .info = msm_pcm_channel_output_map_info,
  3647. .get = msm_pcm_channel_output_map_get,
  3648. .put = msm_pcm_channel_output_map_put,
  3649. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3650. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  3651. },
  3652. {
  3653. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3654. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3655. .name = "MultiMedia3 Output Channel Map",
  3656. .info = msm_pcm_channel_output_map_info,
  3657. .get = msm_pcm_channel_output_map_get,
  3658. .put = msm_pcm_channel_output_map_put,
  3659. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3660. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  3661. },
  3662. {
  3663. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3664. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3665. .name = "MultiMedia4 Output Channel Map",
  3666. .info = msm_pcm_channel_output_map_info,
  3667. .get = msm_pcm_channel_output_map_get,
  3668. .put = msm_pcm_channel_output_map_put,
  3669. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3670. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  3671. },
  3672. {
  3673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3674. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3675. .name = "MultiMedia5 Output Channel Map",
  3676. .info = msm_pcm_channel_output_map_info,
  3677. .get = msm_pcm_channel_output_map_get,
  3678. .put = msm_pcm_channel_output_map_put,
  3679. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3680. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  3681. },
  3682. {
  3683. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3684. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3685. .name = "MultiMedia6 Output Channel Map",
  3686. .info = msm_pcm_channel_output_map_info,
  3687. .get = msm_pcm_channel_output_map_get,
  3688. .put = msm_pcm_channel_output_map_put,
  3689. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3690. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  3691. },
  3692. };
  3693. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3694. struct snd_ctl_elem_value *ucontrol)
  3695. {
  3696. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3697. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3698. ucontrol->value.integer.value[0]);
  3699. return 0;
  3700. }
  3701. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3702. struct snd_ctl_elem_value *ucontrol)
  3703. {
  3704. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3705. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3706. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3707. return 0;
  3708. }
  3709. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  3710. struct snd_ctl_elem_value *ucontrol)
  3711. {
  3712. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  3713. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  3714. ucontrol->value.integer.value[0]);
  3715. return 0;
  3716. }
  3717. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  3718. struct snd_ctl_elem_value *ucontrol)
  3719. {
  3720. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  3721. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  3722. __func__, msm_ec_ref_ch_downmixed);
  3723. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  3724. return 0;
  3725. }
  3726. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  3727. struct snd_ctl_elem_value *ucontrol)
  3728. {
  3729. int i = 0, ret = 0;
  3730. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  3731. int out_channel_idx = ((struct soc_multi_mixer_control *)
  3732. kcontrol->private_value)->shift;
  3733. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  3734. weights[i] = ucontrol->value.integer.value[i];
  3735. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  3736. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  3737. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  3738. return ret;
  3739. }
  3740. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3741. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  3742. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  3743. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3744. struct snd_ctl_elem_value *ucontrol)
  3745. {
  3746. switch (msm_ec_ref_bit_format) {
  3747. case SNDRV_PCM_FORMAT_S24_LE:
  3748. ucontrol->value.integer.value[0] = 2;
  3749. break;
  3750. case SNDRV_PCM_FORMAT_S16_LE:
  3751. ucontrol->value.integer.value[0] = 1;
  3752. break;
  3753. default:
  3754. ucontrol->value.integer.value[0] = 0;
  3755. break;
  3756. }
  3757. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3758. __func__, ucontrol->value.integer.value[0]);
  3759. return 0;
  3760. }
  3761. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3762. struct snd_ctl_elem_value *ucontrol)
  3763. {
  3764. u16 bit_width = 0;
  3765. switch (ucontrol->value.integer.value[0]) {
  3766. case 2:
  3767. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3768. break;
  3769. case 1:
  3770. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3771. break;
  3772. default:
  3773. msm_ec_ref_bit_format = 0;
  3774. break;
  3775. }
  3776. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3777. bit_width = 16;
  3778. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3779. bit_width = 24;
  3780. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3781. __func__, msm_ec_ref_bit_format);
  3782. adm_ec_ref_rx_bit_width(bit_width);
  3783. return 0;
  3784. }
  3785. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3786. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3787. struct snd_ctl_elem_value *ucontrol)
  3788. {
  3789. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3790. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3791. __func__, ucontrol->value.integer.value[0]);
  3792. return 0;
  3793. }
  3794. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3795. struct snd_ctl_elem_value *ucontrol)
  3796. {
  3797. switch (ucontrol->value.integer.value[0]) {
  3798. case 0:
  3799. msm_ec_ref_sampling_rate = 0;
  3800. break;
  3801. case 1:
  3802. msm_ec_ref_sampling_rate = 8000;
  3803. break;
  3804. case 2:
  3805. msm_ec_ref_sampling_rate = 16000;
  3806. break;
  3807. case 3:
  3808. msm_ec_ref_sampling_rate = 32000;
  3809. break;
  3810. case 4:
  3811. msm_ec_ref_sampling_rate = 44100;
  3812. break;
  3813. case 5:
  3814. msm_ec_ref_sampling_rate = 48000;
  3815. break;
  3816. case 6:
  3817. msm_ec_ref_sampling_rate = 96000;
  3818. break;
  3819. case 7:
  3820. msm_ec_ref_sampling_rate = 192000;
  3821. break;
  3822. case 8:
  3823. msm_ec_ref_sampling_rate = 384000;
  3824. break;
  3825. default:
  3826. msm_ec_ref_sampling_rate = 48000;
  3827. break;
  3828. }
  3829. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3830. __func__, msm_ec_ref_sampling_rate);
  3831. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3832. return 0;
  3833. }
  3834. static int get_ec_ref_port_id(int value, int *index)
  3835. {
  3836. int port_id;
  3837. switch (value) {
  3838. case 0:
  3839. *index = 0;
  3840. port_id = AFE_PORT_INVALID;
  3841. break;
  3842. case 1:
  3843. *index = 1;
  3844. port_id = SLIMBUS_0_RX;
  3845. break;
  3846. case 2:
  3847. *index = 2;
  3848. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3849. break;
  3850. case 3:
  3851. *index = 3;
  3852. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3853. break;
  3854. case 4:
  3855. *index = 4;
  3856. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3857. break;
  3858. case 5:
  3859. *index = 5;
  3860. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3861. break;
  3862. case 6:
  3863. *index = 6;
  3864. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3865. break;
  3866. case 7:
  3867. *index = 7;
  3868. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3869. break;
  3870. case 9:
  3871. *index = 9;
  3872. port_id = SLIMBUS_5_RX;
  3873. break;
  3874. case 10:
  3875. *index = 10;
  3876. port_id = SLIMBUS_1_TX;
  3877. break;
  3878. case 11:
  3879. *index = 11;
  3880. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3881. break;
  3882. case 12:
  3883. *index = 12;
  3884. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3885. break;
  3886. case 13:
  3887. *index = 13;
  3888. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3889. break;
  3890. case 14:
  3891. *index = 14;
  3892. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3893. break;
  3894. case 15:
  3895. *index = 15;
  3896. port_id = SLIMBUS_6_RX;
  3897. break;
  3898. case 16:
  3899. *index = 16;
  3900. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3901. break;
  3902. case 17:
  3903. *index = 17;
  3904. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3905. break;
  3906. case 18:
  3907. *index = 18;
  3908. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3909. break;
  3910. case 19:
  3911. *index = 19;
  3912. port_id = AFE_PORT_ID_USB_RX;
  3913. break;
  3914. case 20:
  3915. *index = 20;
  3916. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3917. break;
  3918. case 21:
  3919. *index = 21;
  3920. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3921. break;
  3922. case 22:
  3923. *index = 22;
  3924. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3925. break;
  3926. case 23:
  3927. *index = 23;
  3928. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3929. break;
  3930. case 24:
  3931. *index = 24;
  3932. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3933. break;
  3934. case 25:
  3935. *index = 25;
  3936. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3937. break;
  3938. case 26:
  3939. *index = 26;
  3940. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3941. break;
  3942. case 27:
  3943. *index = 27;
  3944. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3945. break;
  3946. case 28:
  3947. *index = 28;
  3948. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3949. break;
  3950. case 29:
  3951. *index = 29;
  3952. port_id = SLIMBUS_7_RX;
  3953. break;
  3954. case 30:
  3955. *index = 30;
  3956. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  3957. break;
  3958. case 31:
  3959. *index = 31;
  3960. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  3961. break;
  3962. case 32:
  3963. *index = 32;
  3964. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  3965. break;
  3966. case 33:
  3967. *index = 33;
  3968. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  3969. break;
  3970. case 34:
  3971. *index = 34;
  3972. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  3973. break;
  3974. case 35:
  3975. *index = 35;
  3976. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  3977. break;
  3978. case 36:
  3979. *index = 36;
  3980. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  3981. break;
  3982. default:
  3983. *index = 0; /* NONE */
  3984. pr_err("%s: Invalid value %d\n", __func__, value);
  3985. port_id = AFE_PORT_INVALID;
  3986. break;
  3987. }
  3988. return port_id;
  3989. }
  3990. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  3991. struct snd_ctl_elem_value *ucontrol)
  3992. {
  3993. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  3994. mutex_lock(&routing_lock);
  3995. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  3996. mutex_unlock(&routing_lock);
  3997. return 0;
  3998. }
  3999. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  4000. struct snd_ctl_elem_value *ucontrol)
  4001. {
  4002. int value = ucontrol->value.integer.value[0];
  4003. mutex_lock(&routing_lock);
  4004. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  4005. &afe_loopback_tx_port_index);
  4006. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  4007. __func__, afe_loopback_tx_port_index);
  4008. mutex_unlock(&routing_lock);
  4009. return 0;
  4010. }
  4011. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  4012. "32000", "44100", "48000", "96000", "192000", "384000"};
  4013. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  4014. SOC_ENUM_SINGLE_EXT(17, ec_ref_ch_text),
  4015. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  4016. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  4017. };
  4018. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  4019. "PRI_MI2S_TX", "SEC_MI2S_TX",
  4020. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  4021. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  4022. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  4023. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  4024. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  4025. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  4026. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  4027. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  4028. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  4029. };
  4030. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  4031. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  4032. };
  4033. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  4034. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  4035. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  4036. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  4037. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  4038. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  4039. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  4040. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  4041. msm_route_ec_ref_params_enum[0],
  4042. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  4043. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  4044. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4045. msm_ec_ref_chmixer_weights_put),
  4046. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  4047. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4048. msm_ec_ref_chmixer_weights_put),
  4049. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  4050. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4051. msm_ec_ref_chmixer_weights_put),
  4052. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  4053. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4054. msm_ec_ref_chmixer_weights_put),
  4055. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  4056. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4057. msm_ec_ref_chmixer_weights_put),
  4058. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  4059. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  4060. msm_ec_ref_chmixer_weights_put),
  4061. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  4062. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  4063. };
  4064. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  4065. struct snd_ctl_elem_value *ucontrol)
  4066. {
  4067. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  4068. mutex_lock(&routing_lock);
  4069. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  4070. mutex_unlock(&routing_lock);
  4071. return 0;
  4072. }
  4073. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  4074. struct snd_ctl_elem_value *ucontrol)
  4075. {
  4076. int value = ucontrol->value.integer.value[0];
  4077. struct snd_soc_dapm_widget *widget =
  4078. snd_soc_dapm_kcontrol_widget(kcontrol);
  4079. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4080. struct snd_soc_dapm_update *update = NULL;
  4081. mutex_lock(&routing_lock);
  4082. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  4083. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  4084. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  4085. __func__, msm_route_ec_ref_rx);
  4086. mutex_unlock(&routing_lock);
  4087. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  4088. msm_route_ec_ref_rx, e, update);
  4089. return 0;
  4090. }
  4091. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  4092. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  4093. msm_route_ec_ref_rx_enum[0],
  4094. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4095. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  4096. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  4097. msm_route_ec_ref_rx_enum[0],
  4098. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4099. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  4100. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  4101. msm_route_ec_ref_rx_enum[0],
  4102. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4103. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  4104. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  4105. msm_route_ec_ref_rx_enum[0],
  4106. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4107. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  4108. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  4109. msm_route_ec_ref_rx_enum[0],
  4110. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4111. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  4112. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  4113. msm_route_ec_ref_rx_enum[0],
  4114. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4115. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  4116. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  4117. msm_route_ec_ref_rx_enum[0],
  4118. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4119. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  4120. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  4121. msm_route_ec_ref_rx_enum[0],
  4122. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4123. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  4124. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  4125. msm_route_ec_ref_rx_enum[0],
  4126. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4127. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  4128. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  4129. msm_route_ec_ref_rx_enum[0],
  4130. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4131. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  4132. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  4133. msm_route_ec_ref_rx_enum[0],
  4134. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4135. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  4136. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  4137. msm_route_ec_ref_rx_enum[0],
  4138. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4139. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  4140. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  4141. msm_route_ec_ref_rx_enum[0],
  4142. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4143. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  4144. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  4145. msm_route_ec_ref_rx_enum[0],
  4146. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4147. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  4148. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  4149. msm_route_ec_ref_rx_enum[0],
  4150. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  4151. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  4152. struct snd_ctl_elem_value *ucontrol)
  4153. {
  4154. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  4155. mutex_lock(&routing_lock);
  4156. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  4157. mutex_unlock(&routing_lock);
  4158. return 0;
  4159. }
  4160. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  4161. struct snd_ctl_elem_value *ucontrol)
  4162. {
  4163. struct snd_soc_dapm_widget *widget =
  4164. snd_soc_dapm_kcontrol_widget(kcontrol);
  4165. int mux = ucontrol->value.enumerated.item[0];
  4166. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  4167. int ret = 1;
  4168. bool state = true;
  4169. uint16_t ext_ec_ref_port_id;
  4170. struct snd_soc_dapm_update *update = NULL;
  4171. if (mux >= e->items) {
  4172. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  4173. return -EINVAL;
  4174. }
  4175. mutex_lock(&routing_lock);
  4176. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  4177. switch (msm_route_ext_ec_ref) {
  4178. case EXT_EC_REF_PRI_MI2S_TX:
  4179. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4180. break;
  4181. case EXT_EC_REF_SEC_MI2S_TX:
  4182. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4183. break;
  4184. case EXT_EC_REF_TERT_MI2S_TX:
  4185. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4186. break;
  4187. case EXT_EC_REF_QUAT_MI2S_TX:
  4188. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4189. break;
  4190. case EXT_EC_REF_QUIN_MI2S_TX:
  4191. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  4192. break;
  4193. case EXT_EC_REF_SLIM_1_TX:
  4194. ext_ec_ref_port_id = SLIMBUS_1_TX;
  4195. break;
  4196. case EXT_EC_REF_SEC_TDM_TX:
  4197. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  4198. break;
  4199. case EXT_EC_REF_NONE:
  4200. default:
  4201. ext_ec_ref_port_id = AFE_PORT_INVALID;
  4202. state = false;
  4203. break;
  4204. }
  4205. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  4206. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  4207. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  4208. mutex_unlock(&routing_lock);
  4209. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  4210. update);
  4211. } else {
  4212. ret = -EINVAL;
  4213. mutex_unlock(&routing_lock);
  4214. }
  4215. return ret;
  4216. }
  4217. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  4218. "SEC_MI2S_TX", "TERT_MI2S_TX",
  4219. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  4220. "SLIM_1_TX", "SEC_TDM_TX"};
  4221. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  4222. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  4223. };
  4224. static const struct snd_kcontrol_new voc_ext_ec_mux =
  4225. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  4226. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  4227. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  4228. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4229. MSM_BACKEND_DAI_PRI_I2S_RX,
  4230. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4231. msm_routing_put_audio_mixer),
  4232. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4233. MSM_BACKEND_DAI_PRI_I2S_RX,
  4234. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4235. msm_routing_put_audio_mixer),
  4236. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4237. MSM_BACKEND_DAI_PRI_I2S_RX,
  4238. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4239. msm_routing_put_audio_mixer),
  4240. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4241. MSM_BACKEND_DAI_PRI_I2S_RX,
  4242. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4243. msm_routing_put_audio_mixer),
  4244. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4245. MSM_BACKEND_DAI_PRI_I2S_RX,
  4246. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4247. msm_routing_put_audio_mixer),
  4248. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4249. MSM_BACKEND_DAI_PRI_I2S_RX,
  4250. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4251. msm_routing_put_audio_mixer),
  4252. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4253. MSM_BACKEND_DAI_PRI_I2S_RX,
  4254. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4255. msm_routing_put_audio_mixer),
  4256. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4257. MSM_BACKEND_DAI_PRI_I2S_RX,
  4258. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4259. msm_routing_put_audio_mixer),
  4260. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4261. MSM_BACKEND_DAI_PRI_I2S_RX,
  4262. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4263. msm_routing_put_audio_mixer),
  4264. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4265. MSM_BACKEND_DAI_PRI_I2S_RX,
  4266. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4267. msm_routing_put_audio_mixer),
  4268. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4269. MSM_BACKEND_DAI_PRI_I2S_RX,
  4270. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4271. msm_routing_put_audio_mixer),
  4272. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4273. MSM_BACKEND_DAI_PRI_I2S_RX,
  4274. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4275. msm_routing_put_audio_mixer),
  4276. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4277. MSM_BACKEND_DAI_PRI_I2S_RX,
  4278. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4279. msm_routing_put_audio_mixer),
  4280. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4281. MSM_BACKEND_DAI_PRI_I2S_RX,
  4282. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4283. msm_routing_put_audio_mixer),
  4284. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4285. MSM_BACKEND_DAI_PRI_I2S_RX,
  4286. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4287. msm_routing_put_audio_mixer),
  4288. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_PRI_I2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_PRI_I2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_PRI_I2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_PRI_I2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_PRI_I2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_PRI_I2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_PRI_I2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. };
  4317. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  4318. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4319. MSM_BACKEND_DAI_SEC_I2S_RX,
  4320. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4321. msm_routing_put_audio_mixer),
  4322. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4323. MSM_BACKEND_DAI_SEC_I2S_RX,
  4324. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4325. msm_routing_put_audio_mixer),
  4326. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4327. MSM_BACKEND_DAI_SEC_I2S_RX,
  4328. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4329. msm_routing_put_audio_mixer),
  4330. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4331. MSM_BACKEND_DAI_SEC_I2S_RX,
  4332. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4333. msm_routing_put_audio_mixer),
  4334. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4335. MSM_BACKEND_DAI_SEC_I2S_RX,
  4336. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4337. msm_routing_put_audio_mixer),
  4338. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4339. MSM_BACKEND_DAI_SEC_I2S_RX,
  4340. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4341. msm_routing_put_audio_mixer),
  4342. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4343. MSM_BACKEND_DAI_SEC_I2S_RX,
  4344. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4345. msm_routing_put_audio_mixer),
  4346. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4347. MSM_BACKEND_DAI_SEC_I2S_RX,
  4348. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4349. msm_routing_put_audio_mixer),
  4350. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4351. MSM_BACKEND_DAI_SEC_I2S_RX,
  4352. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4353. msm_routing_put_audio_mixer),
  4354. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4355. MSM_BACKEND_DAI_SEC_I2S_RX,
  4356. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4357. msm_routing_put_audio_mixer),
  4358. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4359. MSM_BACKEND_DAI_SEC_I2S_RX,
  4360. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4361. msm_routing_put_audio_mixer),
  4362. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4363. MSM_BACKEND_DAI_SEC_I2S_RX,
  4364. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4365. msm_routing_put_audio_mixer),
  4366. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4367. MSM_BACKEND_DAI_SEC_I2S_RX,
  4368. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4369. msm_routing_put_audio_mixer),
  4370. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4371. MSM_BACKEND_DAI_SEC_I2S_RX,
  4372. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4373. msm_routing_put_audio_mixer),
  4374. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_SEC_I2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_SEC_I2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_SEC_I2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_SEC_I2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_SEC_I2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_SEC_I2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_SEC_I2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_SEC_I2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. };
  4407. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  4408. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4409. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4410. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4411. msm_routing_put_audio_mixer),
  4412. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4413. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4414. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4415. msm_routing_put_audio_mixer),
  4416. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4417. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4418. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4419. msm_routing_put_audio_mixer),
  4420. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4421. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4422. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4423. msm_routing_put_audio_mixer),
  4424. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4425. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4426. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4427. msm_routing_put_audio_mixer),
  4428. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4429. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4430. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4431. msm_routing_put_audio_mixer),
  4432. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4433. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4434. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4435. msm_routing_put_audio_mixer),
  4436. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4437. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4438. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4439. msm_routing_put_audio_mixer),
  4440. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4441. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4442. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4443. msm_routing_put_audio_mixer),
  4444. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4445. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4446. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4447. msm_routing_put_audio_mixer),
  4448. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4449. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4450. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4451. msm_routing_put_audio_mixer),
  4452. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4457. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4458. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4459. msm_routing_put_audio_mixer),
  4460. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4461. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4462. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4463. msm_routing_put_audio_mixer),
  4464. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4465. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4466. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4467. msm_routing_put_audio_mixer),
  4468. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4469. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4470. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4471. msm_routing_put_audio_mixer),
  4472. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4473. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4474. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4475. msm_routing_put_audio_mixer),
  4476. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4477. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4478. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4479. msm_routing_put_audio_mixer),
  4480. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4481. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4482. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4483. msm_routing_put_audio_mixer),
  4484. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4485. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4486. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4487. msm_routing_put_audio_mixer),
  4488. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4489. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4490. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4491. msm_routing_put_audio_mixer),
  4492. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4493. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  4494. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4495. msm_routing_put_audio_mixer),
  4496. };
  4497. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  4498. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4543. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4544. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4545. msm_routing_put_audio_mixer),
  4546. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4547. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4548. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4549. msm_routing_put_audio_mixer),
  4550. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4551. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4552. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4553. msm_routing_put_audio_mixer),
  4554. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4555. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4556. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4557. msm_routing_put_audio_mixer),
  4558. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4559. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4560. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4561. msm_routing_put_audio_mixer),
  4562. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4563. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4564. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4565. msm_routing_put_audio_mixer),
  4566. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4567. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4568. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4569. msm_routing_put_audio_mixer),
  4570. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4571. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4572. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4573. msm_routing_put_audio_mixer),
  4574. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4575. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4576. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4577. msm_routing_put_audio_mixer),
  4578. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4579. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4580. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4581. msm_routing_put_audio_mixer),
  4582. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4583. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  4584. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4585. msm_routing_put_audio_mixer),
  4586. };
  4587. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  4588. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4629. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4630. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4631. msm_routing_put_audio_mixer),
  4632. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4633. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4634. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4635. msm_routing_put_audio_mixer),
  4636. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4637. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4638. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4639. msm_routing_put_audio_mixer),
  4640. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4641. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4642. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4643. msm_routing_put_audio_mixer),
  4644. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4645. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4646. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4647. msm_routing_put_audio_mixer),
  4648. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4649. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4650. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4651. msm_routing_put_audio_mixer),
  4652. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4653. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  4654. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4655. msm_routing_put_audio_mixer),
  4656. };
  4657. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  4658. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4695. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4696. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4697. msm_routing_put_audio_mixer),
  4698. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4699. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4700. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4701. msm_routing_put_audio_mixer),
  4702. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4703. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4704. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4705. msm_routing_put_audio_mixer),
  4706. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4707. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4708. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4709. msm_routing_put_audio_mixer),
  4710. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4711. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4712. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4713. msm_routing_put_audio_mixer),
  4714. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4715. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4716. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4717. msm_routing_put_audio_mixer),
  4718. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4719. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4720. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4721. msm_routing_put_audio_mixer),
  4722. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4723. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4724. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4725. msm_routing_put_audio_mixer),
  4726. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4727. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4728. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4729. msm_routing_put_audio_mixer),
  4730. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4731. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4732. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4733. msm_routing_put_audio_mixer),
  4734. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4735. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4736. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4737. msm_routing_put_audio_mixer),
  4738. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4739. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4740. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4741. msm_routing_put_audio_mixer),
  4742. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4743. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4744. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4745. msm_routing_put_audio_mixer),
  4746. };
  4747. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4748. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4761. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4762. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4763. msm_routing_put_audio_mixer),
  4764. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4765. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4766. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4767. msm_routing_put_audio_mixer),
  4768. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4769. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4770. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4771. msm_routing_put_audio_mixer),
  4772. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4773. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4774. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4775. msm_routing_put_audio_mixer),
  4776. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4777. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4778. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4779. msm_routing_put_audio_mixer),
  4780. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4781. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4782. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4783. msm_routing_put_audio_mixer),
  4784. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4785. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4786. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4787. msm_routing_put_audio_mixer),
  4788. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4789. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4790. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4791. msm_routing_put_audio_mixer),
  4792. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4793. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4794. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4795. msm_routing_put_audio_mixer),
  4796. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4797. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4798. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4799. msm_routing_put_audio_mixer),
  4800. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4801. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4802. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4803. msm_routing_put_audio_mixer),
  4804. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4805. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4806. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4807. msm_routing_put_audio_mixer),
  4808. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4809. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4810. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4811. msm_routing_put_audio_mixer),
  4812. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4813. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4814. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4815. msm_routing_put_audio_mixer),
  4816. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4817. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4818. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4819. msm_routing_put_audio_mixer),
  4820. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4821. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4822. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4823. msm_routing_put_audio_mixer),
  4824. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4825. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4826. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4827. msm_routing_put_audio_mixer),
  4828. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4829. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4830. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4831. msm_routing_put_audio_mixer),
  4832. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4833. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4834. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4835. msm_routing_put_audio_mixer),
  4836. };
  4837. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4838. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_MI2S_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_MI2S_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4847. MSM_BACKEND_DAI_MI2S_RX,
  4848. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4849. msm_routing_put_audio_mixer),
  4850. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4851. MSM_BACKEND_DAI_MI2S_RX,
  4852. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4853. msm_routing_put_audio_mixer),
  4854. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4855. MSM_BACKEND_DAI_MI2S_RX,
  4856. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4857. msm_routing_put_audio_mixer),
  4858. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4859. MSM_BACKEND_DAI_MI2S_RX,
  4860. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4861. msm_routing_put_audio_mixer),
  4862. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4863. MSM_BACKEND_DAI_MI2S_RX,
  4864. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4865. msm_routing_put_audio_mixer),
  4866. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4867. MSM_BACKEND_DAI_MI2S_RX,
  4868. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4869. msm_routing_put_audio_mixer),
  4870. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4871. MSM_BACKEND_DAI_MI2S_RX,
  4872. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4873. msm_routing_put_audio_mixer),
  4874. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4875. MSM_BACKEND_DAI_MI2S_RX,
  4876. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4877. msm_routing_put_audio_mixer),
  4878. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4879. MSM_BACKEND_DAI_MI2S_RX,
  4880. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4881. msm_routing_put_audio_mixer),
  4882. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4883. MSM_BACKEND_DAI_MI2S_RX,
  4884. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4885. msm_routing_put_audio_mixer),
  4886. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4887. MSM_BACKEND_DAI_MI2S_RX,
  4888. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4889. msm_routing_put_audio_mixer),
  4890. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4891. MSM_BACKEND_DAI_MI2S_RX,
  4892. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4893. msm_routing_put_audio_mixer),
  4894. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4895. MSM_BACKEND_DAI_MI2S_RX,
  4896. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4897. msm_routing_put_audio_mixer),
  4898. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4899. MSM_BACKEND_DAI_MI2S_RX,
  4900. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4901. msm_routing_put_audio_mixer),
  4902. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4903. MSM_BACKEND_DAI_MI2S_RX,
  4904. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4905. msm_routing_put_audio_mixer),
  4906. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4907. MSM_BACKEND_DAI_MI2S_RX,
  4908. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4909. msm_routing_put_audio_mixer),
  4910. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4911. MSM_BACKEND_DAI_MI2S_RX,
  4912. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4913. msm_routing_put_audio_mixer),
  4914. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_MI2S_RX,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_MI2S_RX,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_MI2S_RX,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. };
  4927. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4928. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4929. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4930. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4931. msm_routing_put_audio_mixer),
  4932. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4933. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4934. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4935. msm_routing_put_audio_mixer),
  4936. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4937. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4938. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4939. msm_routing_put_audio_mixer),
  4940. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4941. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4942. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4943. msm_routing_put_audio_mixer),
  4944. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4945. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4946. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4947. msm_routing_put_audio_mixer),
  4948. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4949. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4950. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4951. msm_routing_put_audio_mixer),
  4952. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4953. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4954. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4955. msm_routing_put_audio_mixer),
  4956. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4957. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4958. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4959. msm_routing_put_audio_mixer),
  4960. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4961. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4962. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4963. msm_routing_put_audio_mixer),
  4964. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4965. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4966. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4967. msm_routing_put_audio_mixer),
  4968. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4969. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4970. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4971. msm_routing_put_audio_mixer),
  4972. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4973. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4974. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4975. msm_routing_put_audio_mixer),
  4976. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4977. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4978. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4979. msm_routing_put_audio_mixer),
  4980. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4981. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4982. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4983. msm_routing_put_audio_mixer),
  4984. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4985. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4986. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4987. msm_routing_put_audio_mixer),
  4988. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4989. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4990. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4991. msm_routing_put_audio_mixer),
  4992. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4993. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4994. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4995. msm_routing_put_audio_mixer),
  4996. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4997. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4998. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4999. msm_routing_put_audio_mixer),
  5000. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5001. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5002. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5003. msm_routing_put_audio_mixer),
  5004. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5005. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5006. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5007. msm_routing_put_audio_mixer),
  5008. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5009. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5010. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5011. msm_routing_put_audio_mixer),
  5012. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5013. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5014. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5015. msm_routing_put_audio_mixer),
  5016. };
  5017. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  5018. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5019. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5020. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5021. msm_routing_put_audio_mixer),
  5022. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5023. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5024. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5025. msm_routing_put_audio_mixer),
  5026. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5027. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5028. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5029. msm_routing_put_audio_mixer),
  5030. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5031. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5032. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5033. msm_routing_put_audio_mixer),
  5034. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5035. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5036. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5037. msm_routing_put_audio_mixer),
  5038. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5039. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5040. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5041. msm_routing_put_audio_mixer),
  5042. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5043. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5044. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5045. msm_routing_put_audio_mixer),
  5046. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5047. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5048. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5049. msm_routing_put_audio_mixer),
  5050. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5051. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5052. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5053. msm_routing_put_audio_mixer),
  5054. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5055. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5056. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5057. msm_routing_put_audio_mixer),
  5058. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5059. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5060. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5061. msm_routing_put_audio_mixer),
  5062. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5063. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5064. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5065. msm_routing_put_audio_mixer),
  5066. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5067. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5068. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5069. msm_routing_put_audio_mixer),
  5070. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5071. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5072. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5073. msm_routing_put_audio_mixer),
  5074. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5075. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5076. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5077. msm_routing_put_audio_mixer),
  5078. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5079. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5080. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5081. msm_routing_put_audio_mixer),
  5082. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5083. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5084. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5085. msm_routing_put_audio_mixer),
  5086. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5087. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5088. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5089. msm_routing_put_audio_mixer),
  5090. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5091. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5092. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5093. msm_routing_put_audio_mixer),
  5094. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5095. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5096. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5097. msm_routing_put_audio_mixer),
  5098. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5099. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5100. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5101. msm_routing_put_audio_mixer),
  5102. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5103. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  5104. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5105. msm_routing_put_audio_mixer),
  5106. };
  5107. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  5108. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5109. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5110. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5111. msm_routing_put_audio_mixer),
  5112. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5113. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5114. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5115. msm_routing_put_audio_mixer),
  5116. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5117. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5118. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5119. msm_routing_put_audio_mixer),
  5120. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5121. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5122. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5123. msm_routing_put_audio_mixer),
  5124. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5125. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5126. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5127. msm_routing_put_audio_mixer),
  5128. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5129. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5130. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5131. msm_routing_put_audio_mixer),
  5132. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5133. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5134. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5135. msm_routing_put_audio_mixer),
  5136. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5137. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5138. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5139. msm_routing_put_audio_mixer),
  5140. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5141. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5142. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5143. msm_routing_put_audio_mixer),
  5144. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5145. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5146. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5147. msm_routing_put_audio_mixer),
  5148. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5149. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5150. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5151. msm_routing_put_audio_mixer),
  5152. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5153. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5154. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5155. msm_routing_put_audio_mixer),
  5156. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5157. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5158. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5159. msm_routing_put_audio_mixer),
  5160. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5161. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5162. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5163. msm_routing_put_audio_mixer),
  5164. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5165. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5166. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5167. msm_routing_put_audio_mixer),
  5168. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5169. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5170. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5171. msm_routing_put_audio_mixer),
  5172. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5173. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5174. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5175. msm_routing_put_audio_mixer),
  5176. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5177. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5178. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5179. msm_routing_put_audio_mixer),
  5180. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5181. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5182. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5183. msm_routing_put_audio_mixer),
  5184. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5185. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5186. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5187. msm_routing_put_audio_mixer),
  5188. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5189. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5190. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5191. msm_routing_put_audio_mixer),
  5192. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5193. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  5194. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5195. msm_routing_put_audio_mixer),
  5196. };
  5197. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  5198. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5199. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5200. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5201. msm_routing_put_audio_mixer),
  5202. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5203. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5204. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5205. msm_routing_put_audio_mixer),
  5206. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5207. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5208. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5209. msm_routing_put_audio_mixer),
  5210. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5211. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5212. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5213. msm_routing_put_audio_mixer),
  5214. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5215. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5216. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5217. msm_routing_put_audio_mixer),
  5218. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5219. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5220. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5221. msm_routing_put_audio_mixer),
  5222. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5223. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5224. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5225. msm_routing_put_audio_mixer),
  5226. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5227. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5228. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5229. msm_routing_put_audio_mixer),
  5230. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5231. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5232. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5233. msm_routing_put_audio_mixer),
  5234. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5235. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5236. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5237. msm_routing_put_audio_mixer),
  5238. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5239. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5240. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5241. msm_routing_put_audio_mixer),
  5242. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5243. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5244. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5245. msm_routing_put_audio_mixer),
  5246. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5247. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5248. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5249. msm_routing_put_audio_mixer),
  5250. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5251. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5252. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5253. msm_routing_put_audio_mixer),
  5254. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5255. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5256. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5257. msm_routing_put_audio_mixer),
  5258. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5259. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5261. msm_routing_put_audio_mixer),
  5262. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5263. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5264. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5265. msm_routing_put_audio_mixer),
  5266. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. };
  5279. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  5280. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5281. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  5282. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5283. msm_routing_put_audio_mixer),
  5284. };
  5285. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  5286. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5359. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5360. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5361. msm_routing_put_audio_mixer),
  5362. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5363. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5364. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5365. msm_routing_put_audio_mixer),
  5366. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5367. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5368. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5369. msm_routing_put_audio_mixer),
  5370. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5371. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  5372. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5373. msm_routing_put_audio_mixer),
  5374. };
  5375. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  5376. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5453. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5454. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5455. msm_routing_put_audio_mixer),
  5456. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5457. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5458. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5459. msm_routing_put_audio_mixer),
  5460. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5461. MSM_BACKEND_DAI_PRI_MI2S_RX,
  5462. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5463. msm_routing_put_audio_mixer),
  5464. };
  5465. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  5466. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_INT0_MI2S_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. };
  5531. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  5532. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5533. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5534. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5535. msm_routing_put_audio_mixer),
  5536. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5537. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5538. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5539. msm_routing_put_audio_mixer),
  5540. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5541. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5542. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5543. msm_routing_put_audio_mixer),
  5544. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5545. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5546. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5547. msm_routing_put_audio_mixer),
  5548. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_INT4_MI2S_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. };
  5597. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  5598. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5599. MSM_BACKEND_DAI_HDMI_RX,
  5600. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5601. msm_routing_put_audio_mixer),
  5602. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5603. MSM_BACKEND_DAI_HDMI_RX,
  5604. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5605. msm_routing_put_audio_mixer),
  5606. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5607. MSM_BACKEND_DAI_HDMI_RX,
  5608. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5609. msm_routing_put_audio_mixer),
  5610. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5611. MSM_BACKEND_DAI_HDMI_RX,
  5612. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5613. msm_routing_put_audio_mixer),
  5614. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5615. MSM_BACKEND_DAI_HDMI_RX,
  5616. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5617. msm_routing_put_audio_mixer),
  5618. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5619. MSM_BACKEND_DAI_HDMI_RX,
  5620. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5621. msm_routing_put_audio_mixer),
  5622. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5623. MSM_BACKEND_DAI_HDMI_RX,
  5624. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5625. msm_routing_put_audio_mixer),
  5626. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5627. MSM_BACKEND_DAI_HDMI_RX,
  5628. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5629. msm_routing_put_audio_mixer),
  5630. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5631. MSM_BACKEND_DAI_HDMI_RX,
  5632. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5633. msm_routing_put_audio_mixer),
  5634. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5635. MSM_BACKEND_DAI_HDMI_RX,
  5636. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5637. msm_routing_put_audio_mixer),
  5638. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5639. MSM_BACKEND_DAI_HDMI_RX,
  5640. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5641. msm_routing_put_audio_mixer),
  5642. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_HDMI_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_HDMI_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_HDMI_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_HDMI_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_HDMI_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_HDMI_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_HDMI_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_HDMI_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_HDMI_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_HDMI_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_HDMI_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. };
  5687. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  5688. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5689. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5690. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5691. msm_routing_put_audio_mixer),
  5692. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5693. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5694. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5695. msm_routing_put_audio_mixer),
  5696. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5697. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5698. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5699. msm_routing_put_audio_mixer),
  5700. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5701. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5702. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5703. msm_routing_put_audio_mixer),
  5704. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5705. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5706. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5707. msm_routing_put_audio_mixer),
  5708. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5709. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5710. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5711. msm_routing_put_audio_mixer),
  5712. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. };
  5757. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  5758. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5759. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5760. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5761. msm_routing_put_audio_mixer),
  5762. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5763. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5764. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5765. msm_routing_put_audio_mixer),
  5766. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5767. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5768. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5769. msm_routing_put_audio_mixer),
  5770. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5771. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5772. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5773. msm_routing_put_audio_mixer),
  5774. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5775. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5776. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5777. msm_routing_put_audio_mixer),
  5778. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5779. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5780. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5781. msm_routing_put_audio_mixer),
  5782. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5783. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5784. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5785. msm_routing_put_audio_mixer),
  5786. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5787. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5788. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5789. msm_routing_put_audio_mixer),
  5790. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5791. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5792. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5793. msm_routing_put_audio_mixer),
  5794. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5795. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5796. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5797. msm_routing_put_audio_mixer),
  5798. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5799. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5800. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5801. msm_routing_put_audio_mixer),
  5802. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5803. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5804. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5805. msm_routing_put_audio_mixer),
  5806. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. };
  5827. /* incall music delivery mixer */
  5828. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  5829. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5830. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5831. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5832. msm_routing_put_audio_mixer),
  5833. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5834. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5835. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5836. msm_routing_put_audio_mixer),
  5837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5838. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5840. msm_routing_put_audio_mixer),
  5841. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5842. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  5843. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5844. msm_routing_put_audio_mixer),
  5845. };
  5846. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  5847. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5860. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5862. msm_routing_put_audio_mixer),
  5863. };
  5864. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5865. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. };
  5882. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5883. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5884. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5886. msm_routing_put_audio_mixer),
  5887. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5888. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5890. msm_routing_put_audio_mixer),
  5891. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5892. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5893. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5894. msm_routing_put_audio_mixer),
  5895. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5896. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5897. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5898. msm_routing_put_audio_mixer),
  5899. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5900. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5901. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5902. msm_routing_put_audio_mixer),
  5903. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5904. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5905. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5906. msm_routing_put_audio_mixer),
  5907. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5908. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5909. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5910. msm_routing_put_audio_mixer),
  5911. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5912. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5914. msm_routing_put_audio_mixer),
  5915. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5916. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5917. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5918. msm_routing_put_audio_mixer),
  5919. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5920. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5921. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5922. msm_routing_put_audio_mixer),
  5923. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5924. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5925. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5926. msm_routing_put_audio_mixer),
  5927. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. };
  5952. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5954. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5956. msm_routing_put_audio_mixer),
  5957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5958. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5960. msm_routing_put_audio_mixer),
  5961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5962. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5964. msm_routing_put_audio_mixer),
  5965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5966. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5968. msm_routing_put_audio_mixer),
  5969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5970. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5972. msm_routing_put_audio_mixer),
  5973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5974. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5976. msm_routing_put_audio_mixer),
  5977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5978. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5980. msm_routing_put_audio_mixer),
  5981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5982. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5984. msm_routing_put_audio_mixer),
  5985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5986. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5988. msm_routing_put_audio_mixer),
  5989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5990. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5992. msm_routing_put_audio_mixer),
  5993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. };
  6022. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  6023. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6024. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6026. msm_routing_put_audio_mixer),
  6027. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6028. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6030. msm_routing_put_audio_mixer),
  6031. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6032. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6034. msm_routing_put_audio_mixer),
  6035. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6036. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6038. msm_routing_put_audio_mixer),
  6039. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6040. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6042. msm_routing_put_audio_mixer),
  6043. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6044. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6046. msm_routing_put_audio_mixer),
  6047. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6048. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6049. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6050. msm_routing_put_audio_mixer),
  6051. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6052. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6054. msm_routing_put_audio_mixer),
  6055. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6056. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6058. msm_routing_put_audio_mixer),
  6059. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. };
  6092. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  6093. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6094. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6096. msm_routing_put_audio_mixer),
  6097. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6098. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6100. msm_routing_put_audio_mixer),
  6101. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6102. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6104. msm_routing_put_audio_mixer),
  6105. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6106. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6107. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6108. msm_routing_put_audio_mixer),
  6109. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6110. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6111. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6112. msm_routing_put_audio_mixer),
  6113. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6114. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6115. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6116. msm_routing_put_audio_mixer),
  6117. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6118. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6119. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6120. msm_routing_put_audio_mixer),
  6121. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6122. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6123. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6124. msm_routing_put_audio_mixer),
  6125. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. };
  6162. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  6163. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6164. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6165. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6166. msm_routing_put_audio_mixer),
  6167. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6168. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6170. msm_routing_put_audio_mixer),
  6171. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6172. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6174. msm_routing_put_audio_mixer),
  6175. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6176. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6178. msm_routing_put_audio_mixer),
  6179. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6180. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6181. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6182. msm_routing_put_audio_mixer),
  6183. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6184. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6186. msm_routing_put_audio_mixer),
  6187. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6188. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6189. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6190. msm_routing_put_audio_mixer),
  6191. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. };
  6232. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  6233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6234. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6236. msm_routing_put_audio_mixer),
  6237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6238. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6240. msm_routing_put_audio_mixer),
  6241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6242. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6244. msm_routing_put_audio_mixer),
  6245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6246. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6248. msm_routing_put_audio_mixer),
  6249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6250. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6252. msm_routing_put_audio_mixer),
  6253. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6254. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6256. msm_routing_put_audio_mixer),
  6257. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. };
  6302. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  6303. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6304. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6305. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6306. msm_routing_put_audio_mixer),
  6307. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6308. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6310. msm_routing_put_audio_mixer),
  6311. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6312. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6314. msm_routing_put_audio_mixer),
  6315. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6316. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6318. msm_routing_put_audio_mixer),
  6319. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6320. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6321. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6322. msm_routing_put_audio_mixer),
  6323. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. };
  6372. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  6373. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6374. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6375. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6376. msm_routing_put_audio_mixer),
  6377. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6378. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6379. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6380. msm_routing_put_audio_mixer),
  6381. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6382. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6384. msm_routing_put_audio_mixer),
  6385. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6386. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6388. msm_routing_put_audio_mixer),
  6389. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. };
  6442. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  6443. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6444. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6445. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6446. msm_routing_put_audio_mixer),
  6447. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6448. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6449. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6450. msm_routing_put_audio_mixer),
  6451. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6452. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6453. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6454. msm_routing_put_audio_mixer),
  6455. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. };
  6512. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  6513. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6514. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6516. msm_routing_put_audio_mixer),
  6517. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6518. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6519. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6520. msm_routing_put_audio_mixer),
  6521. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. };
  6582. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  6583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6584. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6586. msm_routing_put_audio_mixer),
  6587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. };
  6652. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  6653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6656. msm_routing_put_audio_mixer),
  6657. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6658. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6659. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6660. msm_routing_put_audio_mixer),
  6661. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6662. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6663. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6664. msm_routing_put_audio_mixer),
  6665. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6666. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6667. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6668. msm_routing_put_audio_mixer),
  6669. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6670. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6671. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6672. msm_routing_put_audio_mixer),
  6673. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6674. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6676. msm_routing_put_audio_mixer),
  6677. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6678. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6679. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6680. msm_routing_put_audio_mixer),
  6681. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6682. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6683. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6684. msm_routing_put_audio_mixer),
  6685. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6686. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6687. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6688. msm_routing_put_audio_mixer),
  6689. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6690. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6691. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6692. msm_routing_put_audio_mixer),
  6693. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6694. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6695. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6696. msm_routing_put_audio_mixer),
  6697. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6698. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6699. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6700. msm_routing_put_audio_mixer),
  6701. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6702. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6703. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6704. msm_routing_put_audio_mixer),
  6705. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6706. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6707. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6708. msm_routing_put_audio_mixer),
  6709. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6710. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6711. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6712. msm_routing_put_audio_mixer),
  6713. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6714. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6718. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  6719. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6720. msm_routing_put_audio_mixer),
  6721. };
  6722. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  6723. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6784. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6785. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6786. msm_routing_put_audio_mixer),
  6787. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6788. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  6789. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6790. msm_routing_put_audio_mixer),
  6791. };
  6792. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  6793. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_USB_RX,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_USB_RX,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_USB_RX,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_USB_RX,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_USB_RX,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_USB_RX,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_USB_RX,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_USB_RX,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_USB_RX,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_USB_RX,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_USB_RX,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_USB_RX,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_USB_RX,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_USB_RX,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6850. MSM_BACKEND_DAI_USB_RX,
  6851. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6852. msm_routing_put_audio_mixer),
  6853. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6854. MSM_BACKEND_DAI_USB_RX,
  6855. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6856. msm_routing_put_audio_mixer),
  6857. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6858. MSM_BACKEND_DAI_USB_RX,
  6859. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6860. msm_routing_put_audio_mixer),
  6861. };
  6862. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  6863. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6916. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6917. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6918. msm_routing_put_audio_mixer),
  6919. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6920. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6921. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6922. msm_routing_put_audio_mixer),
  6923. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6924. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6925. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6926. msm_routing_put_audio_mixer),
  6927. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6928. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6929. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6930. msm_routing_put_audio_mixer),
  6931. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6932. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6933. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6934. msm_routing_put_audio_mixer),
  6935. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6936. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6937. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6938. msm_routing_put_audio_mixer),
  6939. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6940. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6941. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6942. msm_routing_put_audio_mixer),
  6943. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6944. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6945. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6946. msm_routing_put_audio_mixer),
  6947. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6948. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  6949. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6950. msm_routing_put_audio_mixer),
  6951. };
  6952. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  6953. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6982. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6984. msm_routing_put_audio_mixer),
  6985. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6986. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6987. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6988. msm_routing_put_audio_mixer),
  6989. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6990. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6992. msm_routing_put_audio_mixer),
  6993. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6994. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6995. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6996. msm_routing_put_audio_mixer),
  6997. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6998. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  6999. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7000. msm_routing_put_audio_mixer),
  7001. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7002. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7003. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7004. msm_routing_put_audio_mixer),
  7005. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7006. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7007. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7008. msm_routing_put_audio_mixer),
  7009. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7010. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7011. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7012. msm_routing_put_audio_mixer),
  7013. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7014. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7016. msm_routing_put_audio_mixer),
  7017. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7018. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  7019. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7020. msm_routing_put_audio_mixer),
  7021. };
  7022. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  7023. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_INT_FM_RX,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_INT_FM_RX,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_INT_FM_RX,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_INT_FM_RX,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_INT_FM_RX,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_INT_FM_RX,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7048. MSM_BACKEND_DAI_INT_FM_RX,
  7049. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7050. msm_routing_put_audio_mixer),
  7051. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7052. MSM_BACKEND_DAI_INT_FM_RX,
  7053. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7054. msm_routing_put_audio_mixer),
  7055. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7056. MSM_BACKEND_DAI_INT_FM_RX,
  7057. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7058. msm_routing_put_audio_mixer),
  7059. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7060. MSM_BACKEND_DAI_INT_FM_RX,
  7061. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7062. msm_routing_put_audio_mixer),
  7063. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7064. MSM_BACKEND_DAI_INT_FM_RX,
  7065. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7066. msm_routing_put_audio_mixer),
  7067. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7068. MSM_BACKEND_DAI_INT_FM_RX,
  7069. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7070. msm_routing_put_audio_mixer),
  7071. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7072. MSM_BACKEND_DAI_INT_FM_RX,
  7073. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7074. msm_routing_put_audio_mixer),
  7075. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7076. MSM_BACKEND_DAI_INT_FM_RX,
  7077. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7078. msm_routing_put_audio_mixer),
  7079. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7080. MSM_BACKEND_DAI_INT_FM_RX,
  7081. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7082. msm_routing_put_audio_mixer),
  7083. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7084. MSM_BACKEND_DAI_INT_FM_RX,
  7085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7086. msm_routing_put_audio_mixer),
  7087. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7088. MSM_BACKEND_DAI_INT_FM_RX,
  7089. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7090. msm_routing_put_audio_mixer),
  7091. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7092. MSM_BACKEND_DAI_INT_FM_RX,
  7093. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7094. msm_routing_put_audio_mixer),
  7095. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7096. MSM_BACKEND_DAI_INT_FM_RX,
  7097. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7098. msm_routing_put_audio_mixer),
  7099. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_INT_FM_RX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_INT_FM_RX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_INT_FM_RX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. };
  7112. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  7113. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7114. MSM_BACKEND_DAI_AFE_PCM_RX,
  7115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7116. msm_routing_put_audio_mixer),
  7117. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_AFE_PCM_RX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_AFE_PCM_RX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_AFE_PCM_RX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_AFE_PCM_RX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7134. MSM_BACKEND_DAI_AFE_PCM_RX,
  7135. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7136. msm_routing_put_audio_mixer),
  7137. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7138. MSM_BACKEND_DAI_AFE_PCM_RX,
  7139. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7140. msm_routing_put_audio_mixer),
  7141. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7142. MSM_BACKEND_DAI_AFE_PCM_RX,
  7143. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7144. msm_routing_put_audio_mixer),
  7145. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7146. MSM_BACKEND_DAI_AFE_PCM_RX,
  7147. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7148. msm_routing_put_audio_mixer),
  7149. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7150. MSM_BACKEND_DAI_AFE_PCM_RX,
  7151. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7152. msm_routing_put_audio_mixer),
  7153. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_AFE_PCM_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_AFE_PCM_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_AFE_PCM_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_AFE_PCM_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_AFE_PCM_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_AFE_PCM_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_AFE_PCM_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_AFE_PCM_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_AFE_PCM_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_AFE_PCM_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_AFE_PCM_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_AFE_PCM_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. };
  7202. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  7203. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7204. MSM_BACKEND_DAI_AUXPCM_RX,
  7205. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7206. msm_routing_put_audio_mixer),
  7207. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7208. MSM_BACKEND_DAI_AUXPCM_RX,
  7209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7210. msm_routing_put_audio_mixer),
  7211. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7212. MSM_BACKEND_DAI_AUXPCM_RX,
  7213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7214. msm_routing_put_audio_mixer),
  7215. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7216. MSM_BACKEND_DAI_AUXPCM_RX,
  7217. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7218. msm_routing_put_audio_mixer),
  7219. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7220. MSM_BACKEND_DAI_AUXPCM_RX,
  7221. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7222. msm_routing_put_audio_mixer),
  7223. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_AUXPCM_RX,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_AUXPCM_RX,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_AUXPCM_RX,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_AUXPCM_RX,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_AUXPCM_RX,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_AUXPCM_RX,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_AUXPCM_RX,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_AUXPCM_RX,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_AUXPCM_RX,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_AUXPCM_RX,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_AUXPCM_RX,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_AUXPCM_RX,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_AUXPCM_RX,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_AUXPCM_RX,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_AUXPCM_RX,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_AUXPCM_RX,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_AUXPCM_RX,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_AUXPCM_RX,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. };
  7296. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  7297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. };
  7390. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  7391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7432. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7433. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7434. msm_routing_put_audio_mixer),
  7435. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7436. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7437. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7438. msm_routing_put_audio_mixer),
  7439. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7440. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7441. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7442. msm_routing_put_audio_mixer),
  7443. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7444. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7445. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7446. msm_routing_put_audio_mixer),
  7447. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7448. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7449. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7450. msm_routing_put_audio_mixer),
  7451. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7452. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. };
  7460. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  7461. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7502. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7503. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7504. msm_routing_put_audio_mixer),
  7505. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7506. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7507. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7508. msm_routing_put_audio_mixer),
  7509. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7510. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7511. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7512. msm_routing_put_audio_mixer),
  7513. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7514. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7515. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7516. msm_routing_put_audio_mixer),
  7517. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7518. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7519. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7520. msm_routing_put_audio_mixer),
  7521. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7522. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. };
  7530. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  7531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7572. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7573. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7574. msm_routing_put_audio_mixer),
  7575. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7576. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7577. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7578. msm_routing_put_audio_mixer),
  7579. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7580. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7581. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7582. msm_routing_put_audio_mixer),
  7583. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7584. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7585. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7586. msm_routing_put_audio_mixer),
  7587. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7588. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7589. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7590. msm_routing_put_audio_mixer),
  7591. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7592. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7596. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  7597. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7598. msm_routing_put_audio_mixer),
  7599. };
  7600. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  7601. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7666. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  7667. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7668. msm_routing_put_audio_mixer),
  7669. };
  7670. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  7671. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7736. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  7737. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7738. msm_routing_put_audio_mixer),
  7739. };
  7740. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  7741. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7806. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  7807. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7808. msm_routing_put_audio_mixer),
  7809. };
  7810. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  7811. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. };
  7880. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  7881. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7922. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7923. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7924. msm_routing_put_audio_mixer),
  7925. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7926. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7927. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7928. msm_routing_put_audio_mixer),
  7929. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7930. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7931. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7932. msm_routing_put_audio_mixer),
  7933. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7934. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7935. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7936. msm_routing_put_audio_mixer),
  7937. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7938. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7939. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7940. msm_routing_put_audio_mixer),
  7941. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7942. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7943. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7944. msm_routing_put_audio_mixer),
  7945. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  7946. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  7947. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  7948. msm_routing_put_audio_mixer),
  7949. };
  7950. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  7951. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8008. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8009. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8010. msm_routing_put_audio_mixer),
  8011. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8012. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8013. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8014. msm_routing_put_audio_mixer),
  8015. };
  8016. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  8017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. };
  8086. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  8087. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8132. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8133. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8134. msm_routing_put_audio_mixer),
  8135. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8136. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8137. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8138. msm_routing_put_audio_mixer),
  8139. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8140. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8141. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8142. msm_routing_put_audio_mixer),
  8143. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8144. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8145. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8146. msm_routing_put_audio_mixer),
  8147. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8150. msm_routing_put_audio_mixer),
  8151. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8152. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  8153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8154. msm_routing_put_audio_mixer),
  8155. };
  8156. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  8157. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. };
  8226. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  8227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. };
  8296. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  8297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. };
  8362. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  8363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8364. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8366. msm_routing_put_audio_mixer),
  8367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8368. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8370. msm_routing_put_audio_mixer),
  8371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8372. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8374. msm_routing_put_audio_mixer),
  8375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8376. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8378. msm_routing_put_audio_mixer),
  8379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8380. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8382. msm_routing_put_audio_mixer),
  8383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8384. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8386. msm_routing_put_audio_mixer),
  8387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8388. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8390. msm_routing_put_audio_mixer),
  8391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. };
  8432. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  8433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8478. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8480. msm_routing_put_audio_mixer),
  8481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8482. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8484. msm_routing_put_audio_mixer),
  8485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. };
  8498. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  8499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. };
  8568. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  8569. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8582. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8583. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8584. msm_routing_put_audio_mixer),
  8585. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8586. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8588. msm_routing_put_audio_mixer),
  8589. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8590. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8591. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8592. msm_routing_put_audio_mixer),
  8593. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8594. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8595. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8596. msm_routing_put_audio_mixer),
  8597. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8598. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8599. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8600. msm_routing_put_audio_mixer),
  8601. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8602. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8603. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8604. msm_routing_put_audio_mixer),
  8605. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8606. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8607. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8608. msm_routing_put_audio_mixer),
  8609. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8610. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8611. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8612. msm_routing_put_audio_mixer),
  8613. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8614. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8615. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8616. msm_routing_put_audio_mixer),
  8617. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8618. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8619. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8620. msm_routing_put_audio_mixer),
  8621. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8622. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8623. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8624. msm_routing_put_audio_mixer),
  8625. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8626. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8627. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8628. msm_routing_put_audio_mixer),
  8629. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8630. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8631. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8632. msm_routing_put_audio_mixer),
  8633. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8634. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  8635. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8636. msm_routing_put_audio_mixer),
  8637. };
  8638. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  8639. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8680. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8681. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8682. msm_routing_put_audio_mixer),
  8683. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8684. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8685. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8686. msm_routing_put_audio_mixer),
  8687. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8688. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8689. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8690. msm_routing_put_audio_mixer),
  8691. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8692. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8693. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8694. msm_routing_put_audio_mixer),
  8695. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8696. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8697. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8698. msm_routing_put_audio_mixer),
  8699. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8700. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8701. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8702. msm_routing_put_audio_mixer),
  8703. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8704. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  8705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8706. msm_routing_put_audio_mixer),
  8707. };
  8708. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  8709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. };
  8778. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  8779. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. };
  8852. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  8853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8890. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8892. msm_routing_put_audio_mixer),
  8893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8894. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8896. msm_routing_put_audio_mixer),
  8897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8898. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8900. msm_routing_put_audio_mixer),
  8901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8902. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8904. msm_routing_put_audio_mixer),
  8905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8906. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8908. msm_routing_put_audio_mixer),
  8909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8910. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8912. msm_routing_put_audio_mixer),
  8913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8914. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8916. msm_routing_put_audio_mixer),
  8917. };
  8918. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  8919. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8976. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8977. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8978. msm_routing_put_audio_mixer),
  8979. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8980. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8981. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8982. msm_routing_put_audio_mixer),
  8983. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  8984. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8985. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  8986. msm_routing_put_audio_mixer),
  8987. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8988. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  8989. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8990. msm_routing_put_audio_mixer),
  8991. };
  8992. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  8993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. };
  9066. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  9067. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9108. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9109. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9110. msm_routing_put_audio_mixer),
  9111. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9112. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9113. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9114. msm_routing_put_audio_mixer),
  9115. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9116. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9117. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9118. msm_routing_put_audio_mixer),
  9119. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9120. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9121. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9122. msm_routing_put_audio_mixer),
  9123. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9124. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9125. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9126. msm_routing_put_audio_mixer),
  9127. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9128. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9130. msm_routing_put_audio_mixer),
  9131. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9132. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9133. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9134. msm_routing_put_audio_mixer),
  9135. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9136. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  9137. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9138. msm_routing_put_audio_mixer),
  9139. };
  9140. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  9141. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9182. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9183. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9184. msm_routing_put_audio_mixer),
  9185. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9186. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9187. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9188. msm_routing_put_audio_mixer),
  9189. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9190. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9191. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9192. msm_routing_put_audio_mixer),
  9193. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9194. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9195. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9196. msm_routing_put_audio_mixer),
  9197. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9198. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9199. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9200. msm_routing_put_audio_mixer),
  9201. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9202. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9203. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9204. msm_routing_put_audio_mixer),
  9205. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9206. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9207. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9208. msm_routing_put_audio_mixer),
  9209. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9210. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  9211. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9212. msm_routing_put_audio_mixer),
  9213. };
  9214. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  9215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9256. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9258. msm_routing_put_audio_mixer),
  9259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9260. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9262. msm_routing_put_audio_mixer),
  9263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9264. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9266. msm_routing_put_audio_mixer),
  9267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9268. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9270. msm_routing_put_audio_mixer),
  9271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9272. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9274. msm_routing_put_audio_mixer),
  9275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9276. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9278. msm_routing_put_audio_mixer),
  9279. };
  9280. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  9281. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. };
  9354. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  9355. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. };
  9428. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  9429. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9490. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9491. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9492. msm_routing_put_audio_mixer),
  9493. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9494. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9496. msm_routing_put_audio_mixer),
  9497. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9498. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  9499. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9500. msm_routing_put_audio_mixer),
  9501. };
  9502. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  9503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9552. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9554. msm_routing_put_audio_mixer),
  9555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9556. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9558. msm_routing_put_audio_mixer),
  9559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9560. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9562. msm_routing_put_audio_mixer),
  9563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9564. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9566. msm_routing_put_audio_mixer),
  9567. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9568. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9569. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9570. msm_routing_put_audio_mixer),
  9571. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9572. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  9573. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9574. msm_routing_put_audio_mixer),
  9575. };
  9576. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  9577. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. };
  9642. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  9643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. };
  9716. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  9717. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. };
  9790. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  9791. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9824. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9826. msm_routing_put_audio_mixer),
  9827. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9828. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9829. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9830. msm_routing_put_audio_mixer),
  9831. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9832. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9833. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9834. msm_routing_put_audio_mixer),
  9835. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9837. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9838. msm_routing_put_audio_mixer),
  9839. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9841. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9842. msm_routing_put_audio_mixer),
  9843. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9845. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9846. msm_routing_put_audio_mixer),
  9847. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9849. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9850. msm_routing_put_audio_mixer),
  9851. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9853. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9854. msm_routing_put_audio_mixer),
  9855. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  9856. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9857. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9858. msm_routing_put_audio_mixer),
  9859. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9860. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  9861. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9862. msm_routing_put_audio_mixer),
  9863. };
  9864. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  9865. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_PRI_I2S_TX,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_MI2S_TX,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9898. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9899. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9900. msm_routing_put_audio_mixer),
  9901. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  9903. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9904. msm_routing_put_audio_mixer),
  9905. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_AUXPCM_TX,
  9907. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9908. msm_routing_put_audio_mixer),
  9909. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9911. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9912. msm_routing_put_audio_mixer),
  9913. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9915. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9916. msm_routing_put_audio_mixer),
  9917. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9920. msm_routing_put_audio_mixer),
  9921. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9922. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  9923. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9924. msm_routing_put_audio_mixer),
  9925. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  9926. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  9927. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9928. msm_routing_put_audio_mixer),
  9929. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9930. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9931. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9932. msm_routing_put_audio_mixer),
  9933. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9934. MSM_BACKEND_DAI_INT_FM_TX,
  9935. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9936. msm_routing_put_audio_mixer),
  9937. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9938. MSM_BACKEND_DAI_AFE_PCM_TX,
  9939. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9940. msm_routing_put_audio_mixer),
  9941. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9942. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9943. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9944. msm_routing_put_audio_mixer),
  9945. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9947. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9948. msm_routing_put_audio_mixer),
  9949. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  9951. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9952. msm_routing_put_audio_mixer),
  9953. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9955. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9956. msm_routing_put_audio_mixer),
  9957. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9959. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9960. msm_routing_put_audio_mixer),
  9961. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  9963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9964. msm_routing_put_audio_mixer),
  9965. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9966. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9967. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9968. msm_routing_put_audio_mixer),
  9969. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9970. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9971. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9972. msm_routing_put_audio_mixer),
  9973. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10047. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10048. msm_routing_put_audio_mixer),
  10049. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10052. msm_routing_put_audio_mixer),
  10053. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10054. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10055. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10056. msm_routing_put_audio_mixer),
  10057. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10058. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10059. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10060. msm_routing_put_audio_mixer),
  10061. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10062. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10063. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10064. msm_routing_put_audio_mixer),
  10065. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10066. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10067. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10068. msm_routing_put_audio_mixer),
  10069. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10070. MSM_BACKEND_DAI_USB_TX,
  10071. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10072. msm_routing_put_audio_mixer),
  10073. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10074. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10075. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10076. msm_routing_put_audio_mixer),
  10077. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10079. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10080. msm_routing_put_audio_mixer),
  10081. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10083. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10084. msm_routing_put_audio_mixer),
  10085. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10087. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10088. msm_routing_put_audio_mixer),
  10089. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10091. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10092. msm_routing_put_audio_mixer),
  10093. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10095. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10096. msm_routing_put_audio_mixer),
  10097. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10098. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10099. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10100. msm_routing_put_audio_mixer),
  10101. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10102. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10104. msm_routing_put_audio_mixer),
  10105. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10106. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10107. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10108. msm_routing_put_audio_mixer),
  10109. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10110. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10112. msm_routing_put_audio_mixer),
  10113. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10114. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10115. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10116. msm_routing_put_audio_mixer),
  10117. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10118. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10120. msm_routing_put_audio_mixer),
  10121. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. };
  10138. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  10139. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10140. MSM_BACKEND_DAI_INT_FM_TX,
  10141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10142. msm_routing_put_audio_mixer),
  10143. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_MI2S_TX,
  10145. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10146. msm_routing_put_audio_mixer),
  10147. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10149. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10150. msm_routing_put_audio_mixer),
  10151. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10153. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10154. msm_routing_put_audio_mixer),
  10155. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10157. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10158. msm_routing_put_audio_mixer),
  10159. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10161. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10162. msm_routing_put_audio_mixer),
  10163. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10164. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10165. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10166. msm_routing_put_audio_mixer),
  10167. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10168. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10169. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10170. msm_routing_put_audio_mixer),
  10171. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10172. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10174. msm_routing_put_audio_mixer),
  10175. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  10176. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  10177. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10178. msm_routing_put_audio_mixer),
  10179. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10180. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10181. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10182. msm_routing_put_audio_mixer),
  10183. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10184. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  10185. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10186. msm_routing_put_audio_mixer),
  10187. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  10189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10190. msm_routing_put_audio_mixer),
  10191. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10193. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10194. msm_routing_put_audio_mixer),
  10195. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10198. msm_routing_put_audio_mixer),
  10199. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10264. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10265. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10266. msm_routing_put_audio_mixer),
  10267. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10268. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10269. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10270. msm_routing_put_audio_mixer),
  10271. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10272. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10273. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10274. msm_routing_put_audio_mixer),
  10275. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10277. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10278. msm_routing_put_audio_mixer),
  10279. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10281. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10282. msm_routing_put_audio_mixer),
  10283. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10285. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10286. msm_routing_put_audio_mixer),
  10287. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10289. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10290. msm_routing_put_audio_mixer),
  10291. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_USB_TX,
  10293. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10294. msm_routing_put_audio_mixer),
  10295. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10296. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10297. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10298. msm_routing_put_audio_mixer),
  10299. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10300. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10301. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10302. msm_routing_put_audio_mixer),
  10303. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10304. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10306. msm_routing_put_audio_mixer),
  10307. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10308. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10309. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10310. msm_routing_put_audio_mixer),
  10311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10313. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10314. msm_routing_put_audio_mixer),
  10315. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10316. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10317. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10318. msm_routing_put_audio_mixer),
  10319. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10321. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10322. msm_routing_put_audio_mixer),
  10323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10325. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10326. msm_routing_put_audio_mixer),
  10327. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10330. msm_routing_put_audio_mixer),
  10331. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10333. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10334. msm_routing_put_audio_mixer),
  10335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10337. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10338. msm_routing_put_audio_mixer),
  10339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10341. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10342. msm_routing_put_audio_mixer),
  10343. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. };
  10360. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  10361. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10362. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10363. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10364. msm_routing_put_audio_mixer),
  10365. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10366. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10367. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10368. msm_routing_put_audio_mixer),
  10369. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_INT_FM_TX,
  10371. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10372. msm_routing_put_audio_mixer),
  10373. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_MI2S_TX,
  10375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10376. msm_routing_put_audio_mixer),
  10377. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_AFE_PCM_TX,
  10379. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10380. msm_routing_put_audio_mixer),
  10381. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10383. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10384. msm_routing_put_audio_mixer),
  10385. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_AUXPCM_TX,
  10387. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10388. msm_routing_put_audio_mixer),
  10389. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10390. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10391. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10392. msm_routing_put_audio_mixer),
  10393. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10394. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10395. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10396. msm_routing_put_audio_mixer),
  10397. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10398. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10400. msm_routing_put_audio_mixer),
  10401. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10403. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10404. msm_routing_put_audio_mixer),
  10405. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10408. msm_routing_put_audio_mixer),
  10409. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10410. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10411. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10412. msm_routing_put_audio_mixer),
  10413. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10414. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10415. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10416. msm_routing_put_audio_mixer),
  10417. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10418. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10419. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10420. msm_routing_put_audio_mixer),
  10421. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10499. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10500. msm_routing_put_audio_mixer),
  10501. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10502. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10503. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10504. msm_routing_put_audio_mixer),
  10505. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10506. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10507. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10508. msm_routing_put_audio_mixer),
  10509. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10511. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10512. msm_routing_put_audio_mixer),
  10513. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10514. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10515. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10516. msm_routing_put_audio_mixer),
  10517. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10518. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10519. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10520. msm_routing_put_audio_mixer),
  10521. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10523. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10524. msm_routing_put_audio_mixer),
  10525. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10526. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10528. msm_routing_put_audio_mixer),
  10529. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10530. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10532. msm_routing_put_audio_mixer),
  10533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10535. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10536. msm_routing_put_audio_mixer),
  10537. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10538. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10539. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10540. msm_routing_put_audio_mixer),
  10541. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10543. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10544. msm_routing_put_audio_mixer),
  10545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10547. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10548. msm_routing_put_audio_mixer),
  10549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10551. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10552. msm_routing_put_audio_mixer),
  10553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10556. msm_routing_put_audio_mixer),
  10557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10559. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10560. msm_routing_put_audio_mixer),
  10561. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10563. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10564. msm_routing_put_audio_mixer),
  10565. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10567. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10568. msm_routing_put_audio_mixer),
  10569. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10571. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10572. msm_routing_put_audio_mixer),
  10573. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10575. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10576. msm_routing_put_audio_mixer),
  10577. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. };
  10582. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  10583. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10584. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10585. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10586. msm_routing_put_audio_mixer),
  10587. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10588. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10589. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10590. msm_routing_put_audio_mixer),
  10591. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10592. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10593. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10594. msm_routing_put_audio_mixer),
  10595. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10596. MSM_BACKEND_DAI_INT_FM_TX,
  10597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10598. msm_routing_put_audio_mixer),
  10599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10600. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10602. msm_routing_put_audio_mixer),
  10603. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10604. MSM_BACKEND_DAI_AFE_PCM_TX,
  10605. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10606. msm_routing_put_audio_mixer),
  10607. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  10608. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  10609. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10610. msm_routing_put_audio_mixer),
  10611. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  10612. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  10613. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10614. msm_routing_put_audio_mixer),
  10615. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10616. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10618. msm_routing_put_audio_mixer),
  10619. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10620. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10621. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10622. msm_routing_put_audio_mixer),
  10623. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10624. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10625. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10626. msm_routing_put_audio_mixer),
  10627. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10628. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10629. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10630. msm_routing_put_audio_mixer),
  10631. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10632. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10634. msm_routing_put_audio_mixer),
  10635. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10637. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10638. msm_routing_put_audio_mixer),
  10639. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10640. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10641. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10642. msm_routing_put_audio_mixer),
  10643. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10709. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10710. msm_routing_put_audio_mixer),
  10711. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10713. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10714. msm_routing_put_audio_mixer),
  10715. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10717. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10718. msm_routing_put_audio_mixer),
  10719. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10721. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10722. msm_routing_put_audio_mixer),
  10723. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10725. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10726. msm_routing_put_audio_mixer),
  10727. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10729. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10730. msm_routing_put_audio_mixer),
  10731. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_USB_TX,
  10733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10734. msm_routing_put_audio_mixer),
  10735. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10737. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10738. msm_routing_put_audio_mixer),
  10739. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10741. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10742. msm_routing_put_audio_mixer),
  10743. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10745. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10746. msm_routing_put_audio_mixer),
  10747. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10749. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10750. msm_routing_put_audio_mixer),
  10751. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10753. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10754. msm_routing_put_audio_mixer),
  10755. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10757. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10758. msm_routing_put_audio_mixer),
  10759. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  10761. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10762. msm_routing_put_audio_mixer),
  10763. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  10765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10766. msm_routing_put_audio_mixer),
  10767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  10768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  10769. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10770. msm_routing_put_audio_mixer),
  10771. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  10772. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  10773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10774. msm_routing_put_audio_mixer),
  10775. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  10776. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  10777. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10778. msm_routing_put_audio_mixer),
  10779. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  10780. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  10781. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10782. msm_routing_put_audio_mixer),
  10783. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  10784. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  10785. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10786. msm_routing_put_audio_mixer),
  10787. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. };
  10796. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  10797. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10799. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10800. msm_routing_put_audio_mixer),
  10801. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10804. msm_routing_put_audio_mixer),
  10805. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_INT_FM_TX,
  10807. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10808. msm_routing_put_audio_mixer),
  10809. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_MI2S_TX,
  10811. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10812. msm_routing_put_audio_mixer),
  10813. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_AFE_PCM_TX,
  10815. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10816. msm_routing_put_audio_mixer),
  10817. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10819. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10820. msm_routing_put_audio_mixer),
  10821. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_AUXPCM_TX,
  10823. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10824. msm_routing_put_audio_mixer),
  10825. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10827. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10828. msm_routing_put_audio_mixer),
  10829. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10831. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10832. msm_routing_put_audio_mixer),
  10833. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10835. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10836. msm_routing_put_audio_mixer),
  10837. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  10838. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10840. msm_routing_put_audio_mixer),
  10841. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  10842. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  10843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10844. msm_routing_put_audio_mixer),
  10845. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10846. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10847. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10848. msm_routing_put_audio_mixer),
  10849. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10850. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10851. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10852. msm_routing_put_audio_mixer),
  10853. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_INT2_MI2S_TX,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  10930. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10931. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10932. msm_routing_put_audio_mixer),
  10933. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  10934. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10936. msm_routing_put_audio_mixer),
  10937. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  10938. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10939. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10940. msm_routing_put_audio_mixer),
  10941. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  10942. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  10943. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10944. msm_routing_put_audio_mixer),
  10945. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  10946. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  10947. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10948. msm_routing_put_audio_mixer),
  10949. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  10950. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  10951. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10952. msm_routing_put_audio_mixer),
  10953. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  10955. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10956. msm_routing_put_audio_mixer),
  10957. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  10959. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10960. msm_routing_put_audio_mixer),
  10961. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10963. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10964. msm_routing_put_audio_mixer),
  10965. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10967. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10968. msm_routing_put_audio_mixer),
  10969. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10971. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10972. msm_routing_put_audio_mixer),
  10973. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_USB_TX,
  10975. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10976. msm_routing_put_audio_mixer),
  10977. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  10979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10980. msm_routing_put_audio_mixer),
  10981. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  10983. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10984. msm_routing_put_audio_mixer),
  10985. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  10987. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10988. msm_routing_put_audio_mixer),
  10989. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  10991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10992. msm_routing_put_audio_mixer),
  10993. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10994. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  10995. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10996. msm_routing_put_audio_mixer),
  10997. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. };
  11042. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  11043. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_INT_FM_TX,
  11045. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11046. msm_routing_put_audio_mixer),
  11047. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11049. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11050. msm_routing_put_audio_mixer),
  11051. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11053. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11054. msm_routing_put_audio_mixer),
  11055. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11058. msm_routing_put_audio_mixer),
  11059. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11061. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11062. msm_routing_put_audio_mixer),
  11063. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11065. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11066. msm_routing_put_audio_mixer),
  11067. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11070. msm_routing_put_audio_mixer),
  11071. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11073. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11074. msm_routing_put_audio_mixer),
  11075. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_AUXPCM_TX,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11149. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11150. msm_routing_put_audio_mixer),
  11151. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11153. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11154. msm_routing_put_audio_mixer),
  11155. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11156. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11157. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11158. msm_routing_put_audio_mixer),
  11159. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11160. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11161. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11162. msm_routing_put_audio_mixer),
  11163. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11164. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11165. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11166. msm_routing_put_audio_mixer),
  11167. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11168. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11169. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11170. msm_routing_put_audio_mixer),
  11171. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11173. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11174. msm_routing_put_audio_mixer),
  11175. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11177. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11178. msm_routing_put_audio_mixer),
  11179. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11181. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11182. msm_routing_put_audio_mixer),
  11183. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11185. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11186. msm_routing_put_audio_mixer),
  11187. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11190. msm_routing_put_audio_mixer),
  11191. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11193. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11194. msm_routing_put_audio_mixer),
  11195. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11196. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11197. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11198. msm_routing_put_audio_mixer),
  11199. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11200. MSM_BACKEND_DAI_USB_TX,
  11201. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11202. msm_routing_put_audio_mixer),
  11203. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11204. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11206. msm_routing_put_audio_mixer),
  11207. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11208. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11209. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11210. msm_routing_put_audio_mixer),
  11211. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11212. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11214. msm_routing_put_audio_mixer),
  11215. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. };
  11264. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  11265. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11266. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11267. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11268. msm_routing_put_audio_mixer),
  11269. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11271. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11272. msm_routing_put_audio_mixer),
  11273. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11275. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11276. msm_routing_put_audio_mixer),
  11277. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11278. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11279. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11280. msm_routing_put_audio_mixer),
  11281. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11282. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11283. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11284. msm_routing_put_audio_mixer),
  11285. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11286. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11288. msm_routing_put_audio_mixer),
  11289. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_INT_FM_TX,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_AFE_PCM_TX,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11362. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11363. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11364. msm_routing_put_audio_mixer),
  11365. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11367. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11368. msm_routing_put_audio_mixer),
  11369. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11370. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11371. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11372. msm_routing_put_audio_mixer),
  11373. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11374. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11375. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11376. msm_routing_put_audio_mixer),
  11377. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11378. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11379. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11380. msm_routing_put_audio_mixer),
  11381. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11382. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11383. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11384. msm_routing_put_audio_mixer),
  11385. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11386. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11387. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11388. msm_routing_put_audio_mixer),
  11389. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11390. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11391. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11392. msm_routing_put_audio_mixer),
  11393. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11394. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11396. msm_routing_put_audio_mixer),
  11397. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11398. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11399. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11400. msm_routing_put_audio_mixer),
  11401. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11402. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11403. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11404. msm_routing_put_audio_mixer),
  11405. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11406. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11407. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11408. msm_routing_put_audio_mixer),
  11409. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11411. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11412. msm_routing_put_audio_mixer),
  11413. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11415. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11416. msm_routing_put_audio_mixer),
  11417. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11420. msm_routing_put_audio_mixer),
  11421. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_USB_TX,
  11423. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11424. msm_routing_put_audio_mixer),
  11425. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11428. msm_routing_put_audio_mixer),
  11429. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11431. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11432. msm_routing_put_audio_mixer),
  11433. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11435. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11436. msm_routing_put_audio_mixer),
  11437. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. };
  11490. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  11491. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11492. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11493. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11494. msm_routing_put_audio_mixer),
  11495. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11496. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11497. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11498. msm_routing_put_audio_mixer),
  11499. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11501. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11502. msm_routing_put_audio_mixer),
  11503. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11504. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11505. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11506. msm_routing_put_audio_mixer),
  11507. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11508. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11509. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11510. msm_routing_put_audio_mixer),
  11511. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11512. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11514. msm_routing_put_audio_mixer),
  11515. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11516. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11518. msm_routing_put_audio_mixer),
  11519. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11521. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11522. msm_routing_put_audio_mixer),
  11523. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11524. MSM_BACKEND_DAI_INT_FM_TX,
  11525. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11526. msm_routing_put_audio_mixer),
  11527. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11528. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11529. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11530. msm_routing_put_audio_mixer),
  11531. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11532. MSM_BACKEND_DAI_AFE_PCM_TX,
  11533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11534. msm_routing_put_audio_mixer),
  11535. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11536. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11537. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11538. msm_routing_put_audio_mixer),
  11539. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11540. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11541. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11542. msm_routing_put_audio_mixer),
  11543. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11544. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11545. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11546. msm_routing_put_audio_mixer),
  11547. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11548. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11549. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11550. msm_routing_put_audio_mixer),
  11551. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11553. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11554. msm_routing_put_audio_mixer),
  11555. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11556. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11557. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11558. msm_routing_put_audio_mixer),
  11559. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11560. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11562. msm_routing_put_audio_mixer),
  11563. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11564. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11566. msm_routing_put_audio_mixer),
  11567. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11568. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11569. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11570. msm_routing_put_audio_mixer),
  11571. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11573. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11574. msm_routing_put_audio_mixer),
  11575. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11576. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11577. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11578. msm_routing_put_audio_mixer),
  11579. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11580. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11581. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11582. msm_routing_put_audio_mixer),
  11583. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11584. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11585. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11586. msm_routing_put_audio_mixer),
  11587. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11588. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11589. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11590. msm_routing_put_audio_mixer),
  11591. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11594. msm_routing_put_audio_mixer),
  11595. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11596. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11597. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11598. msm_routing_put_audio_mixer),
  11599. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11600. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11601. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11602. msm_routing_put_audio_mixer),
  11603. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11604. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11605. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11606. msm_routing_put_audio_mixer),
  11607. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11608. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11609. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11610. msm_routing_put_audio_mixer),
  11611. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11613. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11614. msm_routing_put_audio_mixer),
  11615. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11616. MSM_BACKEND_DAI_USB_TX,
  11617. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11618. msm_routing_put_audio_mixer),
  11619. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11620. MSM_BACKEND_DAI_MI2S_TX,
  11621. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11622. msm_routing_put_audio_mixer),
  11623. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11624. MSM_BACKEND_DAI_AUXPCM_TX,
  11625. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11626. msm_routing_put_audio_mixer),
  11627. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11628. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11629. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11630. msm_routing_put_audio_mixer),
  11631. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11633. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11634. msm_routing_put_audio_mixer),
  11635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11637. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11638. msm_routing_put_audio_mixer),
  11639. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11640. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11641. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11642. msm_routing_put_audio_mixer),
  11643. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11646. msm_routing_put_audio_mixer),
  11647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11650. msm_routing_put_audio_mixer),
  11651. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11652. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11653. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11654. msm_routing_put_audio_mixer),
  11655. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11656. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11657. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11658. msm_routing_put_audio_mixer),
  11659. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11660. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11661. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11662. msm_routing_get_audio_mixer,
  11663. msm_routing_put_audio_mixer),
  11664. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11665. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11666. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11667. msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11672. msm_routing_get_audio_mixer,
  11673. msm_routing_put_audio_mixer),
  11674. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11675. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11676. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11677. msm_routing_get_audio_mixer,
  11678. msm_routing_put_audio_mixer),
  11679. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11680. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11682. msm_routing_get_audio_mixer,
  11683. msm_routing_put_audio_mixer),
  11684. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11685. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11686. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  11687. msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. };
  11706. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  11707. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11708. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11709. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11710. msm_routing_put_audio_mixer),
  11711. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_INT_FM_TX,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_AFE_PCM_TX,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. };
  11868. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  11869. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11870. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11871. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11872. msm_routing_put_audio_mixer),
  11873. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11874. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11875. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11876. msm_routing_put_audio_mixer),
  11877. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11879. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11880. msm_routing_put_audio_mixer),
  11881. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11882. MSM_BACKEND_DAI_INT_FM_TX,
  11883. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11884. msm_routing_put_audio_mixer),
  11885. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11886. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11887. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11888. msm_routing_put_audio_mixer),
  11889. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11890. MSM_BACKEND_DAI_AFE_PCM_TX,
  11891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11892. msm_routing_put_audio_mixer),
  11893. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11894. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11895. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11896. msm_routing_put_audio_mixer),
  11897. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11900. msm_routing_put_audio_mixer),
  11901. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11902. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11903. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11904. msm_routing_put_audio_mixer),
  11905. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11906. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11907. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11908. msm_routing_put_audio_mixer),
  11909. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11910. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11911. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11912. msm_routing_put_audio_mixer),
  11913. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11914. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11915. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11916. msm_routing_put_audio_mixer),
  11917. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11919. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11920. msm_routing_put_audio_mixer),
  11921. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11922. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11923. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11924. msm_routing_put_audio_mixer),
  11925. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11926. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11927. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11928. msm_routing_put_audio_mixer),
  11929. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11930. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11931. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11932. msm_routing_put_audio_mixer),
  11933. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11934. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11935. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11936. msm_routing_put_audio_mixer),
  11937. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_USB_TX,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_MI2S_TX,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_AUXPCM_TX,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12004. msm_routing_get_audio_mixer,
  12005. msm_routing_put_audio_mixer),
  12006. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12007. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12008. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12009. msm_routing_get_audio_mixer,
  12010. msm_routing_put_audio_mixer),
  12011. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12012. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12013. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12014. msm_routing_get_audio_mixer,
  12015. msm_routing_put_audio_mixer),
  12016. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12017. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12018. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12019. msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12024. msm_routing_get_audio_mixer,
  12025. msm_routing_put_audio_mixer),
  12026. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12027. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12028. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  12029. msm_routing_get_audio_mixer,
  12030. msm_routing_put_audio_mixer),
  12031. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12032. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12033. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12034. msm_routing_put_audio_mixer),
  12035. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12036. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12037. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12038. msm_routing_put_audio_mixer),
  12039. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12041. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12042. msm_routing_put_audio_mixer),
  12043. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12044. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12045. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  12046. msm_routing_put_audio_mixer),
  12047. };
  12048. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  12049. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_INT_FM_TX,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_AFE_PCM_TX,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12120. msm_routing_get_audio_mixer,
  12121. msm_routing_put_audio_mixer),
  12122. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12123. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12124. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12125. msm_routing_get_audio_mixer,
  12126. msm_routing_put_audio_mixer),
  12127. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12128. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12129. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12130. msm_routing_get_audio_mixer,
  12131. msm_routing_put_audio_mixer),
  12132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12134. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12135. msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12140. msm_routing_get_audio_mixer,
  12141. msm_routing_put_audio_mixer),
  12142. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12143. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12144. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  12145. msm_routing_get_audio_mixer,
  12146. msm_routing_put_audio_mixer),
  12147. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12148. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12149. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12150. msm_routing_put_audio_mixer),
  12151. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12152. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12153. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12154. msm_routing_put_audio_mixer),
  12155. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12156. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12157. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  12158. msm_routing_put_audio_mixer),
  12159. };
  12160. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  12161. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12162. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12163. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12164. msm_routing_put_audio_mixer),
  12165. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12166. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12167. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12168. msm_routing_put_audio_mixer),
  12169. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12170. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12171. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12172. msm_routing_put_audio_mixer),
  12173. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12175. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12176. msm_routing_put_audio_mixer),
  12177. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12178. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12179. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12180. msm_routing_put_audio_mixer),
  12181. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12182. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12183. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12184. msm_routing_put_audio_mixer),
  12185. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12186. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12187. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12188. msm_routing_put_audio_mixer),
  12189. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12190. MSM_BACKEND_DAI_INT_FM_TX,
  12191. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12192. msm_routing_put_audio_mixer),
  12193. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12195. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12196. msm_routing_put_audio_mixer),
  12197. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12198. MSM_BACKEND_DAI_AFE_PCM_TX,
  12199. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12200. msm_routing_put_audio_mixer),
  12201. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12202. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12203. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12204. msm_routing_put_audio_mixer),
  12205. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12206. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12207. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12208. msm_routing_put_audio_mixer),
  12209. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12210. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12211. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12212. msm_routing_put_audio_mixer),
  12213. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12215. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12216. msm_routing_put_audio_mixer),
  12217. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12218. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12219. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12220. msm_routing_put_audio_mixer),
  12221. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12222. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12223. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12224. msm_routing_put_audio_mixer),
  12225. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12226. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12227. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12228. msm_routing_put_audio_mixer),
  12229. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12230. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12231. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12232. msm_routing_put_audio_mixer),
  12233. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12235. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12236. msm_routing_get_audio_mixer,
  12237. msm_routing_put_audio_mixer),
  12238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12240. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12241. msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12246. msm_routing_get_audio_mixer,
  12247. msm_routing_put_audio_mixer),
  12248. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12250. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12251. msm_routing_get_audio_mixer,
  12252. msm_routing_put_audio_mixer),
  12253. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12254. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12255. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12256. msm_routing_get_audio_mixer,
  12257. msm_routing_put_audio_mixer),
  12258. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12259. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12260. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  12261. msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. };
  12276. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  12277. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12278. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12279. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12280. msm_routing_put_audio_mixer),
  12281. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12282. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12283. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12284. msm_routing_put_audio_mixer),
  12285. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12287. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12288. msm_routing_put_audio_mixer),
  12289. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12290. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12291. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12292. msm_routing_put_audio_mixer),
  12293. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12294. MSM_BACKEND_DAI_INT_FM_TX,
  12295. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12296. msm_routing_put_audio_mixer),
  12297. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12298. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12299. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12300. msm_routing_put_audio_mixer),
  12301. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12302. MSM_BACKEND_DAI_AFE_PCM_TX,
  12303. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12304. msm_routing_put_audio_mixer),
  12305. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12307. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12308. msm_routing_put_audio_mixer),
  12309. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12310. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12311. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12312. msm_routing_put_audio_mixer),
  12313. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12314. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12315. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12316. msm_routing_put_audio_mixer),
  12317. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12318. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12319. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12320. msm_routing_put_audio_mixer),
  12321. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12322. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12323. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12324. msm_routing_put_audio_mixer),
  12325. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12327. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12328. msm_routing_put_audio_mixer),
  12329. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12330. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12331. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12332. msm_routing_put_audio_mixer),
  12333. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12334. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12335. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12336. msm_routing_put_audio_mixer),
  12337. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12338. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12339. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12340. msm_routing_put_audio_mixer),
  12341. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12342. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12343. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12344. msm_routing_put_audio_mixer),
  12345. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12347. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12348. msm_routing_put_audio_mixer),
  12349. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12350. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12351. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12352. msm_routing_get_audio_mixer,
  12353. msm_routing_put_audio_mixer),
  12354. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12355. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12356. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12357. msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12362. msm_routing_get_audio_mixer,
  12363. msm_routing_put_audio_mixer),
  12364. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12365. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12366. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12367. msm_routing_get_audio_mixer,
  12368. msm_routing_put_audio_mixer),
  12369. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12370. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12372. msm_routing_get_audio_mixer,
  12373. msm_routing_put_audio_mixer),
  12374. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12375. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12376. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  12377. msm_routing_get_audio_mixer,
  12378. msm_routing_put_audio_mixer),
  12379. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12380. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12381. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12382. msm_routing_put_audio_mixer),
  12383. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12384. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12385. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12386. msm_routing_put_audio_mixer),
  12387. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12389. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  12390. msm_routing_put_audio_mixer),
  12391. };
  12392. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  12393. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. };
  12574. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  12575. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12576. MSM_BACKEND_DAI_AUXPCM_TX,
  12577. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12578. msm_routing_put_audio_mixer),
  12579. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12580. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12581. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12582. msm_routing_put_audio_mixer),
  12583. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12584. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12585. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12586. msm_routing_put_audio_mixer),
  12587. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12588. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12589. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12590. msm_routing_put_audio_mixer),
  12591. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12593. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12594. msm_routing_put_audio_mixer),
  12595. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12596. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12597. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12598. msm_routing_put_audio_mixer),
  12599. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12600. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12601. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12602. msm_routing_put_audio_mixer),
  12603. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12604. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12605. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12606. msm_routing_put_audio_mixer),
  12607. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12608. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12609. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12610. msm_routing_put_audio_mixer),
  12611. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12613. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12614. msm_routing_put_audio_mixer),
  12615. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12616. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12617. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12618. msm_routing_put_audio_mixer),
  12619. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. };
  12740. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  12741. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12742. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12743. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12744. msm_routing_put_audio_mixer),
  12745. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12746. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12747. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12748. msm_routing_put_audio_mixer),
  12749. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12750. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12751. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12752. msm_routing_put_audio_mixer),
  12753. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12755. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12756. msm_routing_put_audio_mixer),
  12757. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12758. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12759. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12760. msm_routing_put_audio_mixer),
  12761. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12762. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12763. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12764. msm_routing_put_audio_mixer),
  12765. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12767. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12768. msm_routing_put_audio_mixer),
  12769. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12770. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12771. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12772. msm_routing_put_audio_mixer),
  12773. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12774. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12775. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12776. msm_routing_put_audio_mixer),
  12777. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12778. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12779. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12780. msm_routing_put_audio_mixer),
  12781. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12782. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12783. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12784. msm_routing_put_audio_mixer),
  12785. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12787. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12788. msm_routing_put_audio_mixer),
  12789. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12790. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12791. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12792. msm_routing_put_audio_mixer),
  12793. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12794. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12795. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  12796. msm_routing_put_audio_mixer),
  12797. };
  12798. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  12799. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_INT_FM_TX,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_AFE_PCM_TX,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12840. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12841. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12842. msm_routing_put_audio_mixer),
  12843. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12844. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12845. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12846. msm_routing_put_audio_mixer),
  12847. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12848. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12849. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12850. msm_routing_put_audio_mixer),
  12851. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12852. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12853. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12854. msm_routing_put_audio_mixer),
  12855. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12857. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12858. msm_routing_put_audio_mixer),
  12859. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12860. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12861. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12862. msm_routing_put_audio_mixer),
  12863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12864. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12865. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12866. msm_routing_put_audio_mixer),
  12867. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12869. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12870. msm_routing_put_audio_mixer),
  12871. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12872. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12873. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12874. msm_routing_get_audio_mixer,
  12875. msm_routing_put_audio_mixer),
  12876. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12877. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12878. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12879. msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12884. msm_routing_get_audio_mixer,
  12885. msm_routing_put_audio_mixer),
  12886. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12887. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12889. msm_routing_get_audio_mixer,
  12890. msm_routing_put_audio_mixer),
  12891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12893. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12894. msm_routing_get_audio_mixer,
  12895. msm_routing_put_audio_mixer),
  12896. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12897. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12898. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  12899. msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. };
  12914. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  12915. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12916. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12917. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12918. msm_routing_put_audio_mixer),
  12919. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12920. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12921. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12922. msm_routing_put_audio_mixer),
  12923. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12924. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12925. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12926. msm_routing_put_audio_mixer),
  12927. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12929. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12930. msm_routing_put_audio_mixer),
  12931. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12932. MSM_BACKEND_DAI_INT_FM_TX,
  12933. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12934. msm_routing_put_audio_mixer),
  12935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12936. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12937. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12938. msm_routing_put_audio_mixer),
  12939. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12940. MSM_BACKEND_DAI_AFE_PCM_TX,
  12941. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12942. msm_routing_put_audio_mixer),
  12943. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12944. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12945. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12946. msm_routing_put_audio_mixer),
  12947. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12949. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12950. msm_routing_put_audio_mixer),
  12951. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12953. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12954. msm_routing_put_audio_mixer),
  12955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12956. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12957. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12958. msm_routing_put_audio_mixer),
  12959. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12960. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12961. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12962. msm_routing_put_audio_mixer),
  12963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12965. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12966. msm_routing_put_audio_mixer),
  12967. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12968. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12969. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12970. msm_routing_put_audio_mixer),
  12971. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12972. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12973. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12974. msm_routing_put_audio_mixer),
  12975. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12976. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12977. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12978. msm_routing_put_audio_mixer),
  12979. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12981. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12982. msm_routing_put_audio_mixer),
  12983. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12984. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12985. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  12986. msm_routing_put_audio_mixer),
  12987. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12988. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12989. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12990. msm_routing_get_audio_mixer,
  12991. msm_routing_put_audio_mixer),
  12992. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12993. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12994. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  12995. msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13000. msm_routing_get_audio_mixer,
  13001. msm_routing_put_audio_mixer),
  13002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13004. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13005. msm_routing_get_audio_mixer,
  13006. msm_routing_put_audio_mixer),
  13007. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13008. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13009. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13010. msm_routing_get_audio_mixer,
  13011. msm_routing_put_audio_mixer),
  13012. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13013. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13014. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  13015. msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. };
  13030. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  13031. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13032. MSM_BACKEND_DAI_PRI_I2S_RX,
  13033. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13034. msm_routing_put_voice_mixer),
  13035. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13036. MSM_BACKEND_DAI_PRI_I2S_RX,
  13037. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13038. msm_routing_put_voice_mixer),
  13039. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_PRI_I2S_RX,
  13041. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13042. msm_routing_put_voice_mixer),
  13043. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13044. MSM_BACKEND_DAI_PRI_I2S_RX,
  13045. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13046. msm_routing_put_voice_mixer),
  13047. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13048. MSM_BACKEND_DAI_PRI_I2S_RX,
  13049. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13050. msm_routing_put_voice_mixer),
  13051. };
  13052. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  13053. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_SEC_I2S_RX,
  13055. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13056. msm_routing_put_voice_mixer),
  13057. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_SEC_I2S_RX,
  13059. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13060. msm_routing_put_voice_mixer),
  13061. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_SEC_I2S_RX,
  13063. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13064. msm_routing_put_voice_mixer),
  13065. };
  13066. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  13067. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13069. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13070. msm_routing_put_voice_mixer),
  13071. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13073. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13074. msm_routing_put_voice_mixer),
  13075. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13077. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13078. msm_routing_put_voice_mixer),
  13079. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13081. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13082. msm_routing_put_voice_mixer),
  13083. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13085. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13086. msm_routing_put_voice_mixer),
  13087. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13089. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13090. msm_routing_put_voice_mixer),
  13091. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13093. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13094. msm_routing_put_voice_mixer),
  13095. };
  13096. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  13097. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13098. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13099. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13100. msm_routing_put_voice_mixer),
  13101. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13103. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13104. msm_routing_put_voice_mixer),
  13105. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13106. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13107. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13108. msm_routing_put_voice_mixer),
  13109. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13110. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13111. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13112. msm_routing_put_voice_mixer),
  13113. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13114. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  13115. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13116. msm_routing_put_voice_mixer),
  13117. };
  13118. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  13119. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13121. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13122. msm_routing_put_voice_mixer),
  13123. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13125. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13126. msm_routing_put_voice_mixer),
  13127. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13129. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13130. msm_routing_put_voice_mixer),
  13131. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13133. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13134. msm_routing_put_voice_mixer),
  13135. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  13137. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13138. msm_routing_put_voice_mixer),
  13139. };
  13140. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  13141. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_USB_RX,
  13143. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13144. msm_routing_put_voice_mixer),
  13145. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13146. MSM_BACKEND_DAI_USB_RX,
  13147. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13148. msm_routing_put_voice_mixer),
  13149. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13150. MSM_BACKEND_DAI_USB_RX,
  13151. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13152. msm_routing_put_voice_mixer),
  13153. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13154. MSM_BACKEND_DAI_USB_RX,
  13155. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13156. msm_routing_put_voice_mixer),
  13157. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13158. MSM_BACKEND_DAI_USB_RX,
  13159. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13160. msm_routing_put_voice_mixer),
  13161. };
  13162. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  13163. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13165. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13166. msm_routing_put_voice_mixer),
  13167. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13169. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13170. msm_routing_put_voice_mixer),
  13171. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13173. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13174. msm_routing_put_voice_mixer),
  13175. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13177. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13178. msm_routing_put_voice_mixer),
  13179. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  13181. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13182. msm_routing_put_voice_mixer),
  13183. };
  13184. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  13185. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13186. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13187. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13188. msm_routing_put_voice_mixer),
  13189. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13190. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13191. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13192. msm_routing_put_voice_mixer),
  13193. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13195. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13196. msm_routing_put_voice_mixer),
  13197. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13198. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13199. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13200. msm_routing_put_voice_mixer),
  13201. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13202. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  13203. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13204. msm_routing_put_voice_mixer),
  13205. };
  13206. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  13207. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13209. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13210. msm_routing_put_voice_mixer),
  13211. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13213. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13214. msm_routing_put_voice_mixer),
  13215. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13217. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13218. msm_routing_put_voice_mixer),
  13219. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13221. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13222. msm_routing_put_voice_mixer),
  13223. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  13225. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13226. msm_routing_put_voice_mixer),
  13227. };
  13228. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  13229. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13230. MSM_BACKEND_DAI_MI2S_RX,
  13231. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13232. msm_routing_put_voice_mixer),
  13233. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_MI2S_RX,
  13235. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13236. msm_routing_put_voice_mixer),
  13237. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13238. MSM_BACKEND_DAI_MI2S_RX,
  13239. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13240. msm_routing_put_voice_mixer),
  13241. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13242. MSM_BACKEND_DAI_MI2S_RX,
  13243. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13244. msm_routing_put_voice_mixer),
  13245. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_MI2S_RX,
  13247. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13248. msm_routing_put_voice_mixer),
  13249. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13250. MSM_BACKEND_DAI_MI2S_RX,
  13251. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13252. msm_routing_put_voice_mixer),
  13253. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_MI2S_RX,
  13255. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13256. msm_routing_put_voice_mixer),
  13257. };
  13258. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  13259. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13260. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13261. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13262. msm_routing_put_voice_mixer),
  13263. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13265. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13266. msm_routing_put_voice_mixer),
  13267. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13268. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13269. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13270. msm_routing_put_voice_mixer),
  13271. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13272. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13273. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13274. msm_routing_put_voice_mixer),
  13275. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13277. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13278. msm_routing_put_voice_mixer),
  13279. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13280. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13281. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13282. msm_routing_put_voice_mixer),
  13283. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_PRI_MI2S_RX,
  13285. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13286. msm_routing_put_voice_mixer),
  13287. };
  13288. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  13289. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13290. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13291. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13292. msm_routing_put_voice_mixer),
  13293. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13294. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13295. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13296. msm_routing_put_voice_mixer),
  13297. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13298. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13299. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13300. msm_routing_put_voice_mixer),
  13301. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13302. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13303. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13304. msm_routing_put_voice_mixer),
  13305. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_INT0_MI2S_RX,
  13307. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13308. msm_routing_put_voice_mixer),
  13309. };
  13310. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  13311. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13313. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13314. msm_routing_put_voice_mixer),
  13315. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13317. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13318. msm_routing_put_voice_mixer),
  13319. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13321. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13322. msm_routing_put_voice_mixer),
  13323. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13325. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13326. msm_routing_put_voice_mixer),
  13327. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_INT4_MI2S_RX,
  13329. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13330. msm_routing_put_voice_mixer),
  13331. };
  13332. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  13333. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13334. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13335. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13336. msm_routing_put_voice_mixer),
  13337. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13338. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13339. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13340. msm_routing_put_voice_mixer),
  13341. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13342. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13343. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13344. msm_routing_put_voice_mixer),
  13345. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13347. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13348. msm_routing_put_voice_mixer),
  13349. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13350. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13351. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13352. msm_routing_put_voice_mixer),
  13353. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13354. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13355. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13356. msm_routing_put_voice_mixer),
  13357. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13358. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13359. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13360. msm_routing_put_voice_mixer),
  13361. };
  13362. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  13363. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13365. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13366. msm_routing_put_voice_mixer),
  13367. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13369. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13370. msm_routing_put_voice_mixer),
  13371. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13373. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  13374. msm_routing_put_voice_mixer),
  13375. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13377. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13378. msm_routing_put_voice_mixer),
  13379. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13381. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13382. msm_routing_put_voice_mixer),
  13383. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13385. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13386. msm_routing_put_voice_mixer),
  13387. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  13389. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13390. msm_routing_put_voice_mixer),
  13391. };
  13392. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  13393. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13394. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13395. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13396. msm_routing_put_voice_mixer),
  13397. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13399. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13400. msm_routing_put_voice_stub_mixer),
  13401. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13402. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13403. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13404. msm_routing_put_voice_stub_mixer),
  13405. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13406. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13407. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13408. msm_routing_put_voice_mixer),
  13409. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13411. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13412. msm_routing_put_voice_mixer),
  13413. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13415. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13416. msm_routing_put_voice_mixer),
  13417. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  13419. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13420. msm_routing_put_voice_mixer),
  13421. };
  13422. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  13423. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13425. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13426. msm_routing_put_voice_mixer),
  13427. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13429. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13430. msm_routing_put_voice_mixer),
  13431. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13433. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13434. msm_routing_put_voice_mixer),
  13435. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13437. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13438. msm_routing_put_voice_mixer),
  13439. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  13441. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13442. msm_routing_put_voice_mixer),
  13443. };
  13444. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  13445. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_AFE_PCM_RX,
  13447. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13448. msm_routing_put_voice_mixer),
  13449. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_AFE_PCM_RX,
  13451. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13452. msm_routing_put_voice_mixer),
  13453. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_AFE_PCM_RX,
  13455. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13456. msm_routing_put_voice_mixer),
  13457. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_AFE_PCM_RX,
  13459. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13460. msm_routing_put_voice_mixer),
  13461. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_AFE_PCM_RX,
  13463. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13464. msm_routing_put_voice_mixer),
  13465. };
  13466. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  13467. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_AUXPCM_RX,
  13469. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13470. msm_routing_put_voice_mixer),
  13471. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13472. MSM_BACKEND_DAI_AUXPCM_RX,
  13473. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13474. msm_routing_put_voice_mixer),
  13475. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13476. MSM_BACKEND_DAI_AUXPCM_RX,
  13477. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13478. msm_routing_put_voice_mixer),
  13479. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_AUXPCM_RX,
  13481. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13482. msm_routing_put_voice_mixer),
  13483. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_AUXPCM_RX,
  13485. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13486. msm_routing_put_voice_mixer),
  13487. };
  13488. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  13489. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13491. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13492. msm_routing_put_voice_mixer),
  13493. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13495. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13496. msm_routing_put_voice_mixer),
  13497. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13499. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13500. msm_routing_put_voice_mixer),
  13501. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13503. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13504. msm_routing_put_voice_mixer),
  13505. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  13507. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13508. msm_routing_put_voice_mixer),
  13509. };
  13510. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  13511. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13512. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13513. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13514. msm_routing_put_voice_mixer),
  13515. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13516. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13517. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13518. msm_routing_put_voice_mixer),
  13519. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13520. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13521. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13522. msm_routing_put_voice_mixer),
  13523. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13524. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13525. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13526. msm_routing_put_voice_mixer),
  13527. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13528. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  13529. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13530. msm_routing_put_voice_mixer),
  13531. };
  13532. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  13533. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13535. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13536. msm_routing_put_voice_mixer),
  13537. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13539. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13540. msm_routing_put_voice_mixer),
  13541. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13543. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13544. msm_routing_put_voice_mixer),
  13545. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13547. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13548. msm_routing_put_voice_mixer),
  13549. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  13551. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13552. msm_routing_put_voice_mixer),
  13553. };
  13554. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  13555. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13557. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13558. msm_routing_put_voice_mixer),
  13559. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13561. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13562. msm_routing_put_voice_mixer),
  13563. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13565. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13566. msm_routing_put_voice_mixer),
  13567. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13569. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13570. msm_routing_put_voice_mixer),
  13571. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  13573. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13574. msm_routing_put_voice_mixer),
  13575. };
  13576. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  13577. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13579. msm_routing_put_voice_mixer),
  13580. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  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, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13584. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13585. msm_routing_put_voice_mixer),
  13586. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13587. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13588. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13589. msm_routing_put_voice_mixer),
  13590. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13591. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  13592. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13593. msm_routing_put_voice_mixer),
  13594. };
  13595. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  13596. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13597. MSM_BACKEND_DAI_HDMI_RX,
  13598. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13599. msm_routing_put_voice_mixer),
  13600. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13601. MSM_BACKEND_DAI_HDMI_RX,
  13602. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13603. msm_routing_put_voice_mixer),
  13604. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13605. MSM_BACKEND_DAI_HDMI_RX,
  13606. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13607. msm_routing_put_voice_mixer),
  13608. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13609. MSM_BACKEND_DAI_HDMI_RX,
  13610. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13611. msm_routing_put_voice_mixer),
  13612. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13613. MSM_BACKEND_DAI_HDMI_RX,
  13614. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13615. msm_routing_put_voice_mixer),
  13616. };
  13617. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  13618. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13620. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13621. msm_routing_put_voice_mixer),
  13622. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13624. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13625. msm_routing_put_voice_mixer),
  13626. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13628. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13629. msm_routing_put_voice_mixer),
  13630. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13631. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13632. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13633. msm_routing_put_voice_mixer),
  13634. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13635. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  13636. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13637. msm_routing_put_voice_mixer),
  13638. };
  13639. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  13640. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13642. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13643. msm_routing_put_voice_mixer),
  13644. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13646. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13647. msm_routing_put_voice_mixer),
  13648. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13650. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13651. msm_routing_put_voice_mixer),
  13652. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13654. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13655. msm_routing_put_voice_mixer),
  13656. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  13658. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13659. msm_routing_put_voice_mixer),
  13660. };
  13661. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  13662. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13663. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  13664. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13665. msm_routing_put_voice_mixer),
  13666. };
  13667. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  13668. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13670. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13671. msm_routing_put_voice_mixer),
  13672. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13673. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13674. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13675. msm_routing_put_voice_mixer),
  13676. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13677. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13678. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13679. msm_routing_put_voice_mixer),
  13680. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13681. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13682. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13683. msm_routing_put_voice_mixer),
  13684. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13685. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  13686. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13687. msm_routing_put_voice_mixer),
  13688. };
  13689. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  13690. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13692. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13693. msm_routing_put_voice_mixer),
  13694. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13696. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13697. msm_routing_put_voice_mixer),
  13698. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13700. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13701. msm_routing_put_voice_mixer),
  13702. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13704. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13705. msm_routing_put_voice_mixer),
  13706. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  13708. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13709. msm_routing_put_voice_mixer),
  13710. };
  13711. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  13712. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13713. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13714. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13715. msm_routing_put_voice_mixer),
  13716. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13718. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13719. msm_routing_put_voice_mixer),
  13720. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13722. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13723. msm_routing_put_voice_mixer),
  13724. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13726. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13727. msm_routing_put_voice_mixer),
  13728. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  13730. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13731. msm_routing_put_voice_mixer),
  13732. };
  13733. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  13734. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13735. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13736. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13737. msm_routing_put_voice_mixer),
  13738. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13739. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13740. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13741. msm_routing_put_voice_mixer),
  13742. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13743. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13744. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13745. msm_routing_put_voice_mixer),
  13746. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13747. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13748. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13749. msm_routing_put_voice_mixer),
  13750. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13751. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  13752. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13753. msm_routing_put_voice_mixer),
  13754. };
  13755. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  13756. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13757. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13758. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13759. msm_routing_put_voice_mixer),
  13760. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13761. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13762. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13763. msm_routing_put_voice_mixer),
  13764. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13765. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13766. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13767. msm_routing_put_voice_mixer),
  13768. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13769. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13770. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13771. msm_routing_put_voice_mixer),
  13772. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13773. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  13774. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13775. msm_routing_put_voice_mixer),
  13776. };
  13777. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  13778. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13780. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13781. msm_routing_put_voice_mixer),
  13782. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13784. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13785. msm_routing_put_voice_mixer),
  13786. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13788. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13789. msm_routing_put_voice_mixer),
  13790. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13792. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13793. msm_routing_put_voice_mixer),
  13794. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  13796. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13797. msm_routing_put_voice_mixer),
  13798. };
  13799. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  13800. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13802. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13803. msm_routing_put_voice_mixer),
  13804. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13806. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13807. msm_routing_put_voice_mixer),
  13808. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13810. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13811. msm_routing_put_voice_mixer),
  13812. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13814. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13815. msm_routing_put_voice_mixer),
  13816. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  13818. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13819. msm_routing_put_voice_mixer),
  13820. };
  13821. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  13822. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13823. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13824. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13825. msm_routing_put_voice_mixer),
  13826. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13827. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13828. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13829. msm_routing_put_voice_mixer),
  13830. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13831. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13832. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13833. msm_routing_put_voice_mixer),
  13834. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13836. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13837. msm_routing_put_voice_mixer),
  13838. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13839. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  13840. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13841. msm_routing_put_voice_mixer),
  13842. };
  13843. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  13844. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13845. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13846. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13847. msm_routing_put_voice_mixer),
  13848. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13849. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13850. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13851. msm_routing_put_voice_mixer),
  13852. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13853. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13854. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13855. msm_routing_put_voice_mixer),
  13856. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13857. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13858. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13859. msm_routing_put_voice_mixer),
  13860. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13861. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  13862. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13863. msm_routing_put_voice_mixer),
  13864. };
  13865. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  13866. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13868. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13869. msm_routing_put_voice_mixer),
  13870. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13872. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13873. msm_routing_put_voice_mixer),
  13874. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13876. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13877. msm_routing_put_voice_mixer),
  13878. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13880. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13881. msm_routing_put_voice_mixer),
  13882. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13883. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  13884. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13885. msm_routing_put_voice_mixer),
  13886. };
  13887. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  13888. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13889. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13890. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13891. msm_routing_put_voice_mixer),
  13892. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13893. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13894. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13895. msm_routing_put_voice_stub_mixer),
  13896. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13897. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13898. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13899. msm_routing_put_voice_stub_mixer),
  13900. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13901. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13902. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13903. msm_routing_put_voice_mixer),
  13904. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13905. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13906. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13907. msm_routing_put_voice_mixer),
  13908. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13909. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13910. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13911. msm_routing_put_voice_mixer),
  13912. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13913. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13914. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13915. msm_routing_put_voice_mixer),
  13916. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13917. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  13918. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13919. msm_routing_put_voice_mixer),
  13920. };
  13921. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  13922. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13923. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13924. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13925. msm_routing_put_voice_mixer),
  13926. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13927. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13928. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13929. msm_routing_put_voice_stub_mixer),
  13930. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13932. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13933. msm_routing_put_voice_stub_mixer),
  13934. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13935. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13936. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13937. msm_routing_put_voice_mixer),
  13938. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13939. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13940. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13941. msm_routing_put_voice_mixer),
  13942. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13943. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13944. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13945. msm_routing_put_voice_mixer),
  13946. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13947. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13948. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13949. msm_routing_put_voice_mixer),
  13950. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  13952. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13953. msm_routing_put_voice_mixer),
  13954. };
  13955. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  13956. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13957. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13958. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13959. msm_routing_put_voice_mixer),
  13960. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13961. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13962. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13963. msm_routing_put_voice_stub_mixer),
  13964. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13965. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13966. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13967. msm_routing_put_voice_stub_mixer),
  13968. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  13969. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13970. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  13971. msm_routing_put_voice_mixer),
  13972. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  13973. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13974. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  13975. msm_routing_put_voice_mixer),
  13976. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  13977. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13978. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  13979. msm_routing_put_voice_mixer),
  13980. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  13981. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13982. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  13983. msm_routing_put_voice_mixer),
  13984. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  13985. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  13986. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  13987. msm_routing_put_voice_mixer),
  13988. };
  13989. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  13990. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  13991. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13992. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  13993. msm_routing_put_voice_mixer),
  13994. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  13995. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  13996. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  13997. msm_routing_put_voice_stub_mixer),
  13998. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  13999. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14000. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14001. msm_routing_put_voice_stub_mixer),
  14002. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  14003. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14004. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14005. msm_routing_put_voice_mixer),
  14006. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14007. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14008. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14009. msm_routing_put_voice_mixer),
  14010. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14011. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14012. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14013. msm_routing_put_voice_mixer),
  14014. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14015. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14016. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14017. msm_routing_put_voice_mixer),
  14018. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14019. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  14020. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14021. msm_routing_put_voice_mixer),
  14022. };
  14023. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  14024. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14025. MSM_BACKEND_DAI_EXTPROC_RX,
  14026. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14027. msm_routing_put_voice_mixer),
  14028. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14029. MSM_BACKEND_DAI_EXTPROC_RX,
  14030. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14031. msm_routing_put_voice_mixer),
  14032. };
  14033. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  14034. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14035. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14036. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14037. msm_routing_put_voice_mixer),
  14038. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14039. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  14040. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14041. msm_routing_put_voice_mixer),
  14042. };
  14043. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  14044. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14045. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14046. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14047. msm_routing_put_voice_mixer),
  14048. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14049. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  14050. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14051. msm_routing_put_voice_mixer),
  14052. };
  14053. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  14054. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  14055. MSM_BACKEND_DAI_PRI_I2S_TX,
  14056. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14057. msm_routing_put_voice_mixer),
  14058. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  14059. MSM_BACKEND_DAI_MI2S_TX,
  14060. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14061. msm_routing_put_voice_mixer),
  14062. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  14063. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14064. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14065. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14067. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14068. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  14069. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14070. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14071. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14072. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14073. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14074. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14075. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14076. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14077. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14079. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14080. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14081. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14082. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14083. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14084. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14085. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14086. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  14087. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14088. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14089. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  14091. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14092. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14093. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14094. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14095. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  14096. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14097. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14098. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  14099. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14100. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14101. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  14103. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14104. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  14105. MSM_BACKEND_DAI_USB_TX,
  14106. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14107. msm_routing_put_voice_mixer),
  14108. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  14109. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14110. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14111. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14112. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14113. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14114. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14115. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14116. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14117. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14119. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14120. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  14121. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  14122. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14123. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  14124. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  14125. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14126. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  14127. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  14128. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14131. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14132. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  14133. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  14134. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14135. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  14136. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  14137. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14138. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  14139. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14140. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14141. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  14143. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14144. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  14145. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  14146. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14147. };
  14148. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  14149. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  14150. MSM_BACKEND_DAI_PRI_I2S_TX,
  14151. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14152. msm_routing_put_voice_mixer),
  14153. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  14154. MSM_BACKEND_DAI_MI2S_TX,
  14155. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14156. msm_routing_put_voice_mixer),
  14157. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  14158. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14159. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14160. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  14161. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14162. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14163. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14165. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14166. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14167. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14168. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14169. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14170. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14171. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14172. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14173. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14174. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14175. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14177. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14178. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14179. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14180. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14181. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  14182. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14183. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14184. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  14185. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  14186. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14187. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14189. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14190. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  14191. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14192. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14193. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  14194. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14195. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14196. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  14197. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14198. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14199. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  14201. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14202. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14203. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14204. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14205. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14206. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14207. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14208. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14209. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14210. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14211. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  14213. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14214. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  14215. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  14216. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14217. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  14218. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  14219. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14220. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  14221. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14222. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14223. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  14225. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  14227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  14228. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14229. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  14230. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14231. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14232. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  14233. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  14234. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14235. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  14237. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14238. };
  14239. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  14240. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  14241. MSM_BACKEND_DAI_PRI_I2S_TX,
  14242. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14243. msm_routing_put_voice_mixer),
  14244. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  14245. MSM_BACKEND_DAI_MI2S_TX,
  14246. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14247. msm_routing_put_voice_mixer),
  14248. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  14249. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14250. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14251. msm_routing_put_voice_mixer),
  14252. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  14253. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14254. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14255. msm_routing_put_voice_mixer),
  14256. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  14257. MSM_BACKEND_DAI_AFE_PCM_TX,
  14258. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14259. msm_routing_put_voice_mixer),
  14260. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14261. MSM_BACKEND_DAI_AUXPCM_TX,
  14262. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14263. msm_routing_put_voice_mixer),
  14264. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14265. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14266. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14267. msm_routing_put_voice_mixer),
  14268. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14269. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14270. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14271. msm_routing_put_voice_mixer),
  14272. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14273. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14274. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14275. msm_routing_put_voice_mixer),
  14276. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14277. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14278. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14279. msm_routing_put_voice_mixer),
  14280. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  14281. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14282. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14283. msm_routing_put_voice_mixer),
  14284. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  14285. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14286. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14287. msm_routing_put_voice_mixer),
  14288. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  14289. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14290. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14291. msm_routing_put_voice_mixer),
  14292. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  14293. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14294. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14295. msm_routing_put_voice_mixer),
  14296. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  14297. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14298. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14299. msm_routing_put_voice_mixer),
  14300. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  14301. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14302. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14303. msm_routing_put_voice_mixer),
  14304. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  14305. MSM_BACKEND_DAI_USB_TX,
  14306. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14307. msm_routing_put_voice_mixer),
  14308. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14309. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14310. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14311. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14313. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14314. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14315. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14316. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14317. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  14319. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14320. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  14321. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  14322. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14323. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  14324. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  14325. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14326. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  14327. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  14328. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14329. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  14331. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  14333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  14334. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14335. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14336. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14337. msm_routing_put_voice_mixer),
  14338. };
  14339. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  14340. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14341. MSM_BACKEND_DAI_EXTPROC_TX,
  14342. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14343. msm_routing_put_voice_stub_mixer),
  14344. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14345. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14346. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14347. msm_routing_put_voice_stub_mixer),
  14348. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14349. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14350. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14351. msm_routing_put_voice_stub_mixer),
  14352. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14353. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14354. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14355. msm_routing_put_voice_stub_mixer),
  14356. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14357. MSM_BACKEND_DAI_MI2S_TX,
  14358. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14359. msm_routing_put_voice_stub_mixer),
  14360. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14361. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14362. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14363. msm_routing_put_voice_stub_mixer),
  14364. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14365. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14366. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14367. msm_routing_put_voice_stub_mixer),
  14368. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14369. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14370. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14371. msm_routing_put_voice_stub_mixer),
  14372. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14373. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14374. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14375. msm_routing_put_voice_stub_mixer),
  14376. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14377. MSM_BACKEND_DAI_AUXPCM_TX,
  14378. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14379. msm_routing_put_voice_stub_mixer),
  14380. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14381. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14382. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14383. msm_routing_put_voice_stub_mixer),
  14384. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14385. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14386. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14387. msm_routing_put_voice_stub_mixer),
  14388. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14389. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14390. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14391. msm_routing_put_voice_stub_mixer),
  14392. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14393. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14394. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14395. msm_routing_put_voice_stub_mixer),
  14396. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14397. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14398. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14399. msm_routing_put_voice_stub_mixer),
  14400. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14401. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14402. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14403. msm_routing_put_voice_stub_mixer),
  14404. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14405. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14406. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14407. msm_routing_put_voice_stub_mixer),
  14408. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14409. MSM_BACKEND_DAI_AFE_PCM_TX,
  14410. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14411. msm_routing_put_voice_stub_mixer),
  14412. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14413. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14414. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14415. msm_routing_put_voice_stub_mixer),
  14416. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14417. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14418. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14419. msm_routing_put_voice_stub_mixer),
  14420. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14421. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14422. 1, 0, msm_routing_get_voice_stub_mixer,
  14423. msm_routing_put_voice_stub_mixer),
  14424. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14425. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14426. 1, 0, msm_routing_get_voice_stub_mixer,
  14427. msm_routing_put_voice_stub_mixer),
  14428. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14429. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14430. 1, 0, msm_routing_get_voice_stub_mixer,
  14431. msm_routing_put_voice_stub_mixer),
  14432. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14433. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  14434. 1, 0, msm_routing_get_voice_stub_mixer,
  14435. msm_routing_put_voice_stub_mixer),
  14436. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14437. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  14438. 1, 0, msm_routing_get_voice_stub_mixer,
  14439. msm_routing_put_voice_stub_mixer),
  14440. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14441. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  14442. 1, 0, msm_routing_get_voice_stub_mixer,
  14443. msm_routing_put_voice_stub_mixer),
  14444. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14445. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  14446. 1, 0, msm_routing_get_voice_stub_mixer,
  14447. msm_routing_put_voice_stub_mixer),
  14448. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14449. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  14450. 1, 0, msm_routing_get_voice_stub_mixer,
  14451. msm_routing_put_voice_stub_mixer),
  14452. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14453. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  14454. 1, 0, msm_routing_get_voice_stub_mixer,
  14455. msm_routing_put_voice_stub_mixer),
  14456. };
  14457. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  14458. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14459. MSM_BACKEND_DAI_EXTPROC_TX,
  14460. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14461. msm_routing_put_voice_stub_mixer),
  14462. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14463. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14464. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14465. msm_routing_put_voice_stub_mixer),
  14466. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14467. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14468. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14469. msm_routing_put_voice_stub_mixer),
  14470. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14471. MSM_BACKEND_DAI_AUXPCM_TX,
  14472. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14473. msm_routing_put_voice_stub_mixer),
  14474. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14475. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14476. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14477. msm_routing_put_voice_stub_mixer),
  14478. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14479. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14480. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14481. msm_routing_put_voice_stub_mixer),
  14482. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14483. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14484. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14485. msm_routing_put_voice_stub_mixer),
  14486. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14487. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14488. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14489. msm_routing_put_voice_stub_mixer),
  14490. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14491. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14492. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14493. msm_routing_put_voice_stub_mixer),
  14494. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14495. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14496. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14497. msm_routing_put_voice_stub_mixer),
  14498. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14499. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14500. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14501. msm_routing_put_voice_stub_mixer),
  14502. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14503. MSM_BACKEND_DAI_AFE_PCM_TX,
  14504. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14505. msm_routing_put_voice_stub_mixer),
  14506. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14507. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14508. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14509. msm_routing_put_voice_stub_mixer),
  14510. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14511. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14512. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14513. msm_routing_put_voice_stub_mixer),
  14514. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14515. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14516. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14517. msm_routing_put_voice_stub_mixer),
  14518. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14519. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14520. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14521. msm_routing_put_voice_stub_mixer),
  14522. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14523. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14524. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14525. msm_routing_put_voice_stub_mixer),
  14526. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14527. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14528. 1, 0, msm_routing_get_voice_stub_mixer,
  14529. msm_routing_put_voice_stub_mixer),
  14530. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14531. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14532. 1, 0, msm_routing_get_voice_stub_mixer,
  14533. msm_routing_put_voice_stub_mixer),
  14534. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14536. 1, 0, msm_routing_get_voice_stub_mixer,
  14537. msm_routing_put_voice_stub_mixer),
  14538. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14539. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  14540. 1, 0, msm_routing_get_voice_stub_mixer,
  14541. msm_routing_put_voice_stub_mixer),
  14542. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14543. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  14544. 1, 0, msm_routing_get_voice_stub_mixer,
  14545. msm_routing_put_voice_stub_mixer),
  14546. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14547. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  14548. 1, 0, msm_routing_get_voice_stub_mixer,
  14549. msm_routing_put_voice_stub_mixer),
  14550. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14551. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  14552. 1, 0, msm_routing_get_voice_stub_mixer,
  14553. msm_routing_put_voice_stub_mixer),
  14554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  14556. 1, 0, msm_routing_get_voice_stub_mixer,
  14557. msm_routing_put_voice_stub_mixer),
  14558. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14559. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  14560. 1, 0, msm_routing_get_voice_stub_mixer,
  14561. msm_routing_put_voice_stub_mixer),
  14562. };
  14563. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  14564. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  14565. MSM_BACKEND_DAI_EXTPROC_TX,
  14566. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14567. msm_routing_put_voice_stub_mixer),
  14568. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14569. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14570. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14571. msm_routing_put_voice_stub_mixer),
  14572. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  14573. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  14574. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14575. msm_routing_put_voice_stub_mixer),
  14576. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14577. MSM_BACKEND_DAI_AUXPCM_TX,
  14578. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14579. msm_routing_put_voice_stub_mixer),
  14580. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14581. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14582. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14583. msm_routing_put_voice_stub_mixer),
  14584. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14585. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14586. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14587. msm_routing_put_voice_stub_mixer),
  14588. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14589. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14590. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14591. msm_routing_put_voice_stub_mixer),
  14592. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14593. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14594. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14595. msm_routing_put_voice_stub_mixer),
  14596. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14597. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14598. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14599. msm_routing_put_voice_stub_mixer),
  14600. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14601. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14602. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14603. msm_routing_put_voice_stub_mixer),
  14604. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  14605. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  14606. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14607. msm_routing_put_voice_stub_mixer),
  14608. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14609. MSM_BACKEND_DAI_AFE_PCM_TX,
  14610. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14611. msm_routing_put_voice_stub_mixer),
  14612. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14613. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14614. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14615. msm_routing_put_voice_stub_mixer),
  14616. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14617. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14618. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14619. msm_routing_put_voice_stub_mixer),
  14620. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14621. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14622. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14623. msm_routing_put_voice_stub_mixer),
  14624. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14625. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14626. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  14627. msm_routing_put_voice_stub_mixer),
  14628. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14629. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14630. 1, 0, msm_routing_get_voice_stub_mixer,
  14631. msm_routing_put_voice_stub_mixer),
  14632. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14633. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14634. 1, 0, msm_routing_get_voice_stub_mixer,
  14635. msm_routing_put_voice_stub_mixer),
  14636. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14637. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14638. 1, 0, msm_routing_get_voice_stub_mixer,
  14639. msm_routing_put_voice_stub_mixer),
  14640. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14641. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  14642. 1, 0, msm_routing_get_voice_stub_mixer,
  14643. msm_routing_put_voice_stub_mixer),
  14644. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14645. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  14646. 1, 0, msm_routing_get_voice_stub_mixer,
  14647. msm_routing_put_voice_stub_mixer),
  14648. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14649. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  14650. 1, 0, msm_routing_get_voice_stub_mixer,
  14651. msm_routing_put_voice_stub_mixer),
  14652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  14654. 1, 0, msm_routing_get_voice_stub_mixer,
  14655. msm_routing_put_voice_stub_mixer),
  14656. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14657. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  14658. 1, 0, msm_routing_get_voice_stub_mixer,
  14659. msm_routing_put_voice_stub_mixer),
  14660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  14662. 1, 0, msm_routing_get_voice_stub_mixer,
  14663. msm_routing_put_voice_stub_mixer),
  14664. };
  14665. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  14666. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  14667. MSM_BACKEND_DAI_PRI_I2S_TX,
  14668. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14669. msm_routing_put_voice_mixer),
  14670. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14672. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14673. msm_routing_put_voice_mixer),
  14674. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  14675. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14676. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  14677. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14678. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  14679. MSM_BACKEND_DAI_AFE_PCM_TX,
  14680. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14681. msm_routing_put_voice_mixer),
  14682. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14683. MSM_BACKEND_DAI_AUXPCM_TX,
  14684. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14685. msm_routing_put_voice_mixer),
  14686. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14687. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14688. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14689. msm_routing_put_voice_mixer),
  14690. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14691. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  14692. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14693. msm_routing_put_voice_mixer),
  14694. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14695. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  14696. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14697. msm_routing_put_voice_mixer),
  14698. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14699. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  14700. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14701. msm_routing_put_voice_mixer),
  14702. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  14703. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  14704. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14705. msm_routing_put_voice_mixer),
  14706. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  14707. MSM_BACKEND_DAI_MI2S_TX,
  14708. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14709. msm_routing_put_voice_mixer),
  14710. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14711. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14712. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14713. msm_routing_put_voice_mixer),
  14714. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14715. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14716. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14717. msm_routing_put_voice_mixer),
  14718. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  14719. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14721. msm_routing_put_voice_mixer),
  14722. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  14723. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14724. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14725. msm_routing_put_voice_mixer),
  14726. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  14727. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  14728. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14729. msm_routing_put_voice_mixer),
  14730. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  14731. MSM_BACKEND_DAI_USB_TX,
  14732. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14733. msm_routing_put_voice_mixer),
  14734. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14735. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14736. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14737. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14739. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14740. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14741. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14742. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14743. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  14744. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  14745. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14746. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  14747. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  14748. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14749. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  14751. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14752. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  14753. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  14754. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14755. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  14756. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  14757. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14758. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  14759. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  14760. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  14761. };
  14762. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  14763. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14764. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14765. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14766. msm_routing_put_port_mixer),
  14767. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14769. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14770. msm_routing_put_port_mixer),
  14771. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14772. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14773. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14774. msm_routing_put_port_mixer),
  14775. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14776. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14777. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14778. msm_routing_put_port_mixer),
  14779. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14780. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14781. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14782. msm_routing_put_port_mixer),
  14783. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14784. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14785. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14786. msm_routing_put_port_mixer),
  14787. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14789. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14790. msm_routing_put_port_mixer),
  14791. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14793. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14794. msm_routing_put_port_mixer),
  14795. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14797. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14798. msm_routing_put_port_mixer),
  14799. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14800. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14801. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14802. msm_routing_put_port_mixer),
  14803. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14804. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14805. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14806. msm_routing_put_port_mixer),
  14807. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14808. MSM_BACKEND_DAI_INT0_MI2S_RX,
  14809. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14810. msm_routing_put_port_mixer),
  14811. };
  14812. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  14813. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14815. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14816. msm_routing_put_port_mixer),
  14817. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14819. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14820. msm_routing_put_port_mixer),
  14821. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14822. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14823. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14824. msm_routing_put_port_mixer),
  14825. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14826. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14827. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14828. msm_routing_put_port_mixer),
  14829. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14830. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14831. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14832. msm_routing_put_port_mixer),
  14833. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14834. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14835. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14836. msm_routing_put_port_mixer),
  14837. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14839. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14840. msm_routing_put_port_mixer),
  14841. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14843. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14844. msm_routing_put_port_mixer),
  14845. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14847. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14848. msm_routing_put_port_mixer),
  14849. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14851. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14852. msm_routing_put_port_mixer),
  14853. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14855. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14856. msm_routing_put_port_mixer),
  14857. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_INT4_MI2S_RX,
  14859. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14860. msm_routing_put_port_mixer),
  14861. };
  14862. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  14863. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14864. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14865. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  14866. msm_routing_put_port_mixer),
  14867. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14869. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14870. msm_routing_put_port_mixer),
  14871. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14873. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14874. msm_routing_put_port_mixer),
  14875. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  14877. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14878. msm_routing_put_port_mixer),
  14879. };
  14880. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  14881. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14883. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  14884. msm_routing_put_port_mixer),
  14885. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14887. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14888. msm_routing_put_port_mixer),
  14889. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14891. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  14892. msm_routing_put_port_mixer),
  14893. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  14895. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14896. msm_routing_put_port_mixer),
  14897. };
  14898. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  14899. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14900. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14901. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  14902. msm_routing_put_port_mixer),
  14903. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14904. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14905. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  14906. msm_routing_put_port_mixer),
  14907. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14908. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14909. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  14910. msm_routing_put_port_mixer),
  14911. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14913. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  14914. msm_routing_put_port_mixer),
  14915. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14917. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  14918. msm_routing_put_port_mixer),
  14919. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14921. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14922. msm_routing_put_port_mixer),
  14923. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14925. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14926. msm_routing_put_port_mixer),
  14927. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14929. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14930. msm_routing_put_port_mixer),
  14931. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  14932. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14933. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14934. msm_routing_put_port_mixer),
  14935. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14936. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14937. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14938. msm_routing_put_port_mixer),
  14939. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  14940. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14941. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  14942. msm_routing_put_port_mixer),
  14943. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  14944. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14945. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14946. msm_routing_put_port_mixer),
  14947. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14948. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14949. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14950. msm_routing_put_port_mixer),
  14951. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14952. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14953. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14954. msm_routing_put_port_mixer),
  14955. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14957. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14958. msm_routing_put_port_mixer),
  14959. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14961. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14962. msm_routing_put_port_mixer),
  14963. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14965. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14966. msm_routing_put_port_mixer),
  14967. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14969. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  14970. msm_routing_put_port_mixer),
  14971. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14973. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  14974. msm_routing_put_port_mixer),
  14975. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  14976. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14977. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14978. msm_routing_put_port_mixer),
  14979. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  14980. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14981. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14982. msm_routing_put_port_mixer),
  14983. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  14984. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14985. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14986. msm_routing_put_port_mixer),
  14987. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  14988. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14989. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14990. msm_routing_put_port_mixer),
  14991. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  14992. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14993. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14994. msm_routing_put_port_mixer),
  14995. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  14996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14997. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  14998. msm_routing_put_port_mixer),
  14999. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  15001. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15002. msm_routing_put_port_mixer),
  15003. };
  15004. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  15005. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15006. MSM_BACKEND_DAI_AUXPCM_RX,
  15007. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15008. msm_routing_put_port_mixer),
  15009. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15010. MSM_BACKEND_DAI_AUXPCM_RX,
  15011. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15012. msm_routing_put_port_mixer),
  15013. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15014. MSM_BACKEND_DAI_AUXPCM_RX,
  15015. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15016. msm_routing_put_port_mixer),
  15017. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15018. MSM_BACKEND_DAI_AUXPCM_RX,
  15019. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15020. msm_routing_put_port_mixer),
  15021. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15022. MSM_BACKEND_DAI_AUXPCM_RX,
  15023. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  15024. msm_routing_put_port_mixer),
  15025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15026. MSM_BACKEND_DAI_AUXPCM_RX,
  15027. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15028. msm_routing_put_port_mixer),
  15029. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_AUXPCM_RX,
  15031. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  15032. msm_routing_put_port_mixer),
  15033. };
  15034. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  15035. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15036. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15037. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15038. msm_routing_put_port_mixer),
  15039. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15040. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15041. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15042. msm_routing_put_port_mixer),
  15043. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15044. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15045. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15046. msm_routing_put_port_mixer),
  15047. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15048. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15049. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15050. msm_routing_put_port_mixer),
  15051. };
  15052. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  15053. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15055. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15056. msm_routing_put_port_mixer),
  15057. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15058. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15059. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15060. msm_routing_put_port_mixer),
  15061. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15062. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15063. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15064. msm_routing_put_port_mixer),
  15065. };
  15066. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  15067. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15069. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15070. msm_routing_put_port_mixer),
  15071. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15073. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15074. msm_routing_put_port_mixer),
  15075. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15077. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15078. msm_routing_put_port_mixer),
  15079. };
  15080. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  15081. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15083. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15084. msm_routing_put_port_mixer),
  15085. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15087. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15088. msm_routing_put_port_mixer),
  15089. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15091. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15092. msm_routing_put_port_mixer),
  15093. };
  15094. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  15095. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  15096. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15097. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15098. msm_routing_put_port_mixer),
  15099. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15100. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15101. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15102. msm_routing_put_port_mixer),
  15103. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15105. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15106. msm_routing_put_port_mixer),
  15107. };
  15108. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  15109. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15110. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15111. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15112. msm_routing_put_port_mixer),
  15113. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15114. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15115. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  15116. msm_routing_put_port_mixer),
  15117. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15118. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15119. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15120. msm_routing_put_port_mixer),
  15121. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15122. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15123. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15124. msm_routing_put_port_mixer),
  15125. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15126. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15127. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15128. msm_routing_put_port_mixer),
  15129. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  15130. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15131. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15132. msm_routing_put_port_mixer),
  15133. };
  15134. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  15135. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  15136. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15137. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  15138. msm_routing_put_port_mixer),
  15139. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15140. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15141. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15142. msm_routing_put_port_mixer),
  15143. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  15144. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15145. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  15146. msm_routing_put_port_mixer),
  15147. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  15148. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15149. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  15150. msm_routing_put_port_mixer),
  15151. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  15152. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15153. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  15154. msm_routing_put_port_mixer),
  15155. };
  15156. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  15157. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15159. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15160. msm_routing_put_port_mixer),
  15161. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15162. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15163. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15164. msm_routing_put_port_mixer),
  15165. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15167. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15168. msm_routing_put_port_mixer),
  15169. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  15170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15171. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  15172. msm_routing_put_port_mixer),
  15173. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15175. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15176. msm_routing_put_port_mixer),
  15177. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15179. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15180. msm_routing_put_port_mixer),
  15181. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15183. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15184. msm_routing_put_port_mixer),
  15185. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15186. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15187. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15188. msm_routing_put_port_mixer),
  15189. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15191. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15192. msm_routing_put_port_mixer),
  15193. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15195. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15196. msm_routing_put_port_mixer),
  15197. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15199. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15200. msm_routing_put_port_mixer),
  15201. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15203. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15204. msm_routing_put_port_mixer),
  15205. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  15207. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  15208. msm_routing_put_port_mixer),
  15209. };
  15210. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  15211. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15212. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15213. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15214. msm_routing_put_port_mixer),
  15215. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  15217. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15218. msm_routing_put_port_mixer),
  15219. };
  15220. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  15221. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15222. MSM_BACKEND_DAI_AFE_PCM_RX,
  15223. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15224. msm_routing_put_port_mixer),
  15225. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15226. MSM_BACKEND_DAI_AFE_PCM_RX,
  15227. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15228. msm_routing_put_port_mixer),
  15229. };
  15230. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  15231. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_HDMI_RX,
  15233. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15234. msm_routing_put_port_mixer),
  15235. };
  15236. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  15237. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  15239. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15240. msm_routing_put_port_mixer),
  15241. };
  15242. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  15243. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15244. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  15245. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15246. msm_routing_put_port_mixer),
  15247. };
  15248. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  15249. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_SEC_I2S_RX,
  15251. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15252. msm_routing_put_port_mixer),
  15253. };
  15254. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  15255. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  15256. MSM_BACKEND_DAI_MI2S_RX,
  15257. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  15258. msm_routing_put_port_mixer),
  15259. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_MI2S_RX,
  15261. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15262. msm_routing_put_port_mixer),
  15263. };
  15264. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  15265. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15266. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15267. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15268. msm_routing_put_port_mixer),
  15269. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15270. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15271. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15272. msm_routing_put_port_mixer),
  15273. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15274. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15275. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15276. msm_routing_put_port_mixer),
  15277. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15278. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15279. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15280. msm_routing_put_port_mixer),
  15281. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15283. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  15284. msm_routing_put_port_mixer),
  15285. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15287. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15288. msm_routing_put_port_mixer),
  15289. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15291. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15292. msm_routing_put_port_mixer),
  15293. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15295. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15296. msm_routing_put_port_mixer),
  15297. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15299. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15300. msm_routing_put_port_mixer),
  15301. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15302. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15303. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15304. msm_routing_put_port_mixer),
  15305. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15306. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15307. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15308. msm_routing_put_port_mixer),
  15309. };
  15310. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  15311. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_USB_RX,
  15313. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  15314. msm_routing_put_port_mixer),
  15315. };
  15316. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  15317. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15318. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15319. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15320. msm_routing_put_port_mixer),
  15321. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15322. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15323. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15324. msm_routing_put_port_mixer),
  15325. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15327. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  15328. msm_routing_put_port_mixer),
  15329. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15331. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  15332. msm_routing_put_port_mixer),
  15333. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15335. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15336. msm_routing_put_port_mixer),
  15337. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15339. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15340. msm_routing_put_port_mixer),
  15341. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15343. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15344. msm_routing_put_port_mixer),
  15345. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15346. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15347. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15348. msm_routing_put_port_mixer),
  15349. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15350. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15351. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15352. msm_routing_put_port_mixer),
  15353. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15354. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15355. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15356. msm_routing_put_port_mixer),
  15357. };
  15358. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  15359. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15360. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15361. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15362. msm_routing_put_port_mixer),
  15363. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15364. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15365. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15366. msm_routing_put_port_mixer),
  15367. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15368. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15369. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15370. msm_routing_put_port_mixer),
  15371. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15372. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15373. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15374. msm_routing_put_port_mixer),
  15375. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15376. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15377. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15378. msm_routing_put_port_mixer),
  15379. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15380. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15381. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15382. msm_routing_put_port_mixer),
  15383. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15384. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15385. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15386. msm_routing_put_port_mixer),
  15387. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15388. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15389. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15390. msm_routing_put_port_mixer),
  15391. };
  15392. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  15393. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15394. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15395. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15396. msm_routing_put_port_mixer),
  15397. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  15398. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15399. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15400. msm_routing_put_port_mixer),
  15401. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  15402. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15403. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  15404. msm_routing_put_port_mixer),
  15405. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15406. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15407. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15408. msm_routing_put_port_mixer),
  15409. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  15410. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15411. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15412. msm_routing_put_port_mixer),
  15413. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  15414. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15415. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15416. msm_routing_put_port_mixer),
  15417. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15418. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15419. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  15420. msm_routing_put_port_mixer),
  15421. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  15422. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15423. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  15424. msm_routing_put_port_mixer),
  15425. };
  15426. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  15427. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15428. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15429. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15430. msm_routing_get_port_mixer,
  15431. msm_routing_put_port_mixer),
  15432. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15435. msm_routing_get_port_mixer,
  15436. msm_routing_put_port_mixer),
  15437. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15438. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15439. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15440. msm_routing_get_port_mixer,
  15441. msm_routing_put_port_mixer),
  15442. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15443. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15444. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15445. msm_routing_get_port_mixer,
  15446. msm_routing_put_port_mixer),
  15447. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15448. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15449. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15450. msm_routing_get_port_mixer,
  15451. msm_routing_put_port_mixer),
  15452. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15454. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15455. msm_routing_get_port_mixer,
  15456. msm_routing_put_port_mixer),
  15457. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15458. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15459. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15460. msm_routing_get_port_mixer,
  15461. msm_routing_put_port_mixer),
  15462. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15463. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15464. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15465. msm_routing_get_port_mixer,
  15466. msm_routing_put_port_mixer),
  15467. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15468. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15469. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15470. msm_routing_get_port_mixer,
  15471. msm_routing_put_port_mixer),
  15472. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15473. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15474. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15475. msm_routing_get_port_mixer,
  15476. msm_routing_put_port_mixer),
  15477. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15478. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15479. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15480. msm_routing_get_port_mixer,
  15481. msm_routing_put_port_mixer),
  15482. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15484. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15485. msm_routing_get_port_mixer,
  15486. msm_routing_put_port_mixer),
  15487. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15488. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15489. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15490. msm_routing_get_port_mixer,
  15491. msm_routing_put_port_mixer),
  15492. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15494. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15495. msm_routing_get_port_mixer,
  15496. msm_routing_put_port_mixer),
  15497. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15498. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15499. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15500. msm_routing_get_port_mixer,
  15501. msm_routing_put_port_mixer),
  15502. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15503. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15504. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15505. msm_routing_get_port_mixer,
  15506. msm_routing_put_port_mixer),
  15507. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15508. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15509. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15510. msm_routing_get_port_mixer,
  15511. msm_routing_put_port_mixer),
  15512. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15513. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15514. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15515. msm_routing_get_port_mixer,
  15516. msm_routing_put_port_mixer),
  15517. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15518. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15519. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15520. msm_routing_get_port_mixer,
  15521. msm_routing_put_port_mixer),
  15522. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15524. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15525. msm_routing_get_port_mixer,
  15526. msm_routing_put_port_mixer),
  15527. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15528. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15529. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15530. msm_routing_get_port_mixer,
  15531. msm_routing_put_port_mixer),
  15532. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15534. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15535. msm_routing_get_port_mixer,
  15536. msm_routing_put_port_mixer),
  15537. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15538. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15539. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15540. msm_routing_get_port_mixer,
  15541. msm_routing_put_port_mixer),
  15542. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15543. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15544. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15545. msm_routing_get_port_mixer,
  15546. msm_routing_put_port_mixer),
  15547. };
  15548. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  15549. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15550. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15551. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15552. msm_routing_get_port_mixer,
  15553. msm_routing_put_port_mixer),
  15554. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15556. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15557. msm_routing_get_port_mixer,
  15558. msm_routing_put_port_mixer),
  15559. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15560. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15561. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15562. msm_routing_get_port_mixer,
  15563. msm_routing_put_port_mixer),
  15564. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15565. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15566. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15567. msm_routing_get_port_mixer,
  15568. msm_routing_put_port_mixer),
  15569. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15570. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15571. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15572. msm_routing_get_port_mixer,
  15573. msm_routing_put_port_mixer),
  15574. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15575. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15576. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15577. msm_routing_get_port_mixer,
  15578. msm_routing_put_port_mixer),
  15579. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15580. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15581. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15582. msm_routing_get_port_mixer,
  15583. msm_routing_put_port_mixer),
  15584. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15586. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15587. msm_routing_get_port_mixer,
  15588. msm_routing_put_port_mixer),
  15589. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15590. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15591. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15592. msm_routing_get_port_mixer,
  15593. msm_routing_put_port_mixer),
  15594. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15595. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15596. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15597. msm_routing_get_port_mixer,
  15598. msm_routing_put_port_mixer),
  15599. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15600. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15601. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15602. msm_routing_get_port_mixer,
  15603. msm_routing_put_port_mixer),
  15604. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15605. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15606. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15607. msm_routing_get_port_mixer,
  15608. msm_routing_put_port_mixer),
  15609. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15610. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15611. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15612. msm_routing_get_port_mixer,
  15613. msm_routing_put_port_mixer),
  15614. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15616. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15617. msm_routing_get_port_mixer,
  15618. msm_routing_put_port_mixer),
  15619. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15620. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15621. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15622. msm_routing_get_port_mixer,
  15623. msm_routing_put_port_mixer),
  15624. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15626. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15627. msm_routing_get_port_mixer,
  15628. msm_routing_put_port_mixer),
  15629. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15630. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15631. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15632. msm_routing_get_port_mixer,
  15633. msm_routing_put_port_mixer),
  15634. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15635. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15636. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15637. msm_routing_get_port_mixer,
  15638. msm_routing_put_port_mixer),
  15639. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15640. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15641. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15642. msm_routing_get_port_mixer,
  15643. msm_routing_put_port_mixer),
  15644. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15645. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15646. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15647. msm_routing_get_port_mixer,
  15648. msm_routing_put_port_mixer),
  15649. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15650. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15651. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15652. msm_routing_get_port_mixer,
  15653. msm_routing_put_port_mixer),
  15654. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15656. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15657. msm_routing_get_port_mixer,
  15658. msm_routing_put_port_mixer),
  15659. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15660. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15661. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15662. msm_routing_get_port_mixer,
  15663. msm_routing_put_port_mixer),
  15664. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15666. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15667. msm_routing_get_port_mixer,
  15668. msm_routing_put_port_mixer),
  15669. };
  15670. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  15671. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15672. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15673. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15674. msm_routing_get_port_mixer,
  15675. msm_routing_put_port_mixer),
  15676. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15678. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15679. msm_routing_get_port_mixer,
  15680. msm_routing_put_port_mixer),
  15681. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15682. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15683. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15684. msm_routing_get_port_mixer,
  15685. msm_routing_put_port_mixer),
  15686. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15687. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15688. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15689. msm_routing_get_port_mixer,
  15690. msm_routing_put_port_mixer),
  15691. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15692. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15693. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15694. msm_routing_get_port_mixer,
  15695. msm_routing_put_port_mixer),
  15696. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15697. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15698. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15699. msm_routing_get_port_mixer,
  15700. msm_routing_put_port_mixer),
  15701. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15702. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15703. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15704. msm_routing_get_port_mixer,
  15705. msm_routing_put_port_mixer),
  15706. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15708. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15709. msm_routing_get_port_mixer,
  15710. msm_routing_put_port_mixer),
  15711. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15712. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15713. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15714. msm_routing_get_port_mixer,
  15715. msm_routing_put_port_mixer),
  15716. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15717. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15718. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15719. msm_routing_get_port_mixer,
  15720. msm_routing_put_port_mixer),
  15721. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15722. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15723. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15724. msm_routing_get_port_mixer,
  15725. msm_routing_put_port_mixer),
  15726. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15728. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15729. msm_routing_get_port_mixer,
  15730. msm_routing_put_port_mixer),
  15731. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15732. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15733. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15734. msm_routing_get_port_mixer,
  15735. msm_routing_put_port_mixer),
  15736. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15738. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15739. msm_routing_get_port_mixer,
  15740. msm_routing_put_port_mixer),
  15741. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15742. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15743. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15744. msm_routing_get_port_mixer,
  15745. msm_routing_put_port_mixer),
  15746. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15747. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15748. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15749. msm_routing_get_port_mixer,
  15750. msm_routing_put_port_mixer),
  15751. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15752. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15753. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15754. msm_routing_get_port_mixer,
  15755. msm_routing_put_port_mixer),
  15756. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15758. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15759. msm_routing_get_port_mixer,
  15760. msm_routing_put_port_mixer),
  15761. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15762. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15763. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15764. msm_routing_get_port_mixer,
  15765. msm_routing_put_port_mixer),
  15766. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15768. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15769. msm_routing_get_port_mixer,
  15770. msm_routing_put_port_mixer),
  15771. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15772. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15773. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15774. msm_routing_get_port_mixer,
  15775. msm_routing_put_port_mixer),
  15776. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15777. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15778. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15779. msm_routing_get_port_mixer,
  15780. msm_routing_put_port_mixer),
  15781. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15782. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15783. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15784. msm_routing_get_port_mixer,
  15785. msm_routing_put_port_mixer),
  15786. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15788. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15789. msm_routing_get_port_mixer,
  15790. msm_routing_put_port_mixer),
  15791. };
  15792. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  15793. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15794. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15795. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15796. msm_routing_get_port_mixer,
  15797. msm_routing_put_port_mixer),
  15798. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15799. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15800. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15801. msm_routing_get_port_mixer,
  15802. msm_routing_put_port_mixer),
  15803. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15804. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15805. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15806. msm_routing_get_port_mixer,
  15807. msm_routing_put_port_mixer),
  15808. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15809. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15810. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15811. msm_routing_get_port_mixer,
  15812. msm_routing_put_port_mixer),
  15813. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15814. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15815. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15816. msm_routing_get_port_mixer,
  15817. msm_routing_put_port_mixer),
  15818. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15819. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15820. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15821. msm_routing_get_port_mixer,
  15822. msm_routing_put_port_mixer),
  15823. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15824. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15825. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15826. msm_routing_get_port_mixer,
  15827. msm_routing_put_port_mixer),
  15828. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15829. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15830. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15831. msm_routing_get_port_mixer,
  15832. msm_routing_put_port_mixer),
  15833. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  15834. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15835. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  15836. msm_routing_get_port_mixer,
  15837. msm_routing_put_port_mixer),
  15838. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15840. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  15841. msm_routing_get_port_mixer,
  15842. msm_routing_put_port_mixer),
  15843. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  15844. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15845. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  15846. msm_routing_get_port_mixer,
  15847. msm_routing_put_port_mixer),
  15848. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  15849. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15850. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  15851. msm_routing_get_port_mixer,
  15852. msm_routing_put_port_mixer),
  15853. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15855. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15856. msm_routing_get_port_mixer,
  15857. msm_routing_put_port_mixer),
  15858. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15859. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15860. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15861. msm_routing_get_port_mixer,
  15862. msm_routing_put_port_mixer),
  15863. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15864. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15865. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15866. msm_routing_get_port_mixer,
  15867. msm_routing_put_port_mixer),
  15868. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15870. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15871. msm_routing_get_port_mixer,
  15872. msm_routing_put_port_mixer),
  15873. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15874. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15875. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15876. msm_routing_get_port_mixer,
  15877. msm_routing_put_port_mixer),
  15878. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  15879. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15880. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  15881. msm_routing_get_port_mixer,
  15882. msm_routing_put_port_mixer),
  15883. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15885. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  15886. msm_routing_get_port_mixer,
  15887. msm_routing_put_port_mixer),
  15888. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  15889. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15890. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  15891. msm_routing_get_port_mixer,
  15892. msm_routing_put_port_mixer),
  15893. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15895. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  15896. msm_routing_get_port_mixer,
  15897. msm_routing_put_port_mixer),
  15898. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  15899. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15900. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  15901. msm_routing_get_port_mixer,
  15902. msm_routing_put_port_mixer),
  15903. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  15904. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15905. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  15906. msm_routing_get_port_mixer,
  15907. msm_routing_put_port_mixer),
  15908. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15910. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  15911. msm_routing_get_port_mixer,
  15912. msm_routing_put_port_mixer),
  15913. };
  15914. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  15915. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  15916. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15917. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  15918. msm_routing_get_port_mixer,
  15919. msm_routing_put_port_mixer),
  15920. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15922. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  15923. msm_routing_get_port_mixer,
  15924. msm_routing_put_port_mixer),
  15925. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  15926. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15927. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  15928. msm_routing_get_port_mixer,
  15929. msm_routing_put_port_mixer),
  15930. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  15931. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15932. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  15933. msm_routing_get_port_mixer,
  15934. msm_routing_put_port_mixer),
  15935. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  15936. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15937. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  15938. msm_routing_get_port_mixer,
  15939. msm_routing_put_port_mixer),
  15940. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  15941. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15942. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  15943. msm_routing_get_port_mixer,
  15944. msm_routing_put_port_mixer),
  15945. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15947. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  15948. msm_routing_get_port_mixer,
  15949. msm_routing_put_port_mixer),
  15950. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  15951. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15952. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  15953. msm_routing_get_port_mixer,
  15954. msm_routing_put_port_mixer),
  15955. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  15956. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15957. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  15958. msm_routing_get_port_mixer,
  15959. msm_routing_put_port_mixer),
  15960. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15962. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  15963. msm_routing_get_port_mixer,
  15964. msm_routing_put_port_mixer),
  15965. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  15966. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15967. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  15968. msm_routing_get_port_mixer,
  15969. msm_routing_put_port_mixer),
  15970. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  15971. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15972. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  15973. msm_routing_get_port_mixer,
  15974. msm_routing_put_port_mixer),
  15975. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15977. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  15978. msm_routing_get_port_mixer,
  15979. msm_routing_put_port_mixer),
  15980. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  15981. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15982. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  15983. msm_routing_get_port_mixer,
  15984. msm_routing_put_port_mixer),
  15985. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  15986. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15987. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  15988. msm_routing_get_port_mixer,
  15989. msm_routing_put_port_mixer),
  15990. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15992. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  15993. msm_routing_get_port_mixer,
  15994. msm_routing_put_port_mixer),
  15995. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  15996. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  15997. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  15998. msm_routing_get_port_mixer,
  15999. msm_routing_put_port_mixer),
  16000. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16001. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16002. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16003. msm_routing_get_port_mixer,
  16004. msm_routing_put_port_mixer),
  16005. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16007. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16008. msm_routing_get_port_mixer,
  16009. msm_routing_put_port_mixer),
  16010. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16011. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16012. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16013. msm_routing_get_port_mixer,
  16014. msm_routing_put_port_mixer),
  16015. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16016. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16017. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16018. msm_routing_get_port_mixer,
  16019. msm_routing_put_port_mixer),
  16020. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16021. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16022. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16023. msm_routing_get_port_mixer,
  16024. msm_routing_put_port_mixer),
  16025. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16026. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16027. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16028. msm_routing_get_port_mixer,
  16029. msm_routing_put_port_mixer),
  16030. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  16032. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16033. msm_routing_get_port_mixer,
  16034. msm_routing_put_port_mixer),
  16035. };
  16036. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  16037. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16038. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16039. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16040. msm_routing_get_port_mixer,
  16041. msm_routing_put_port_mixer),
  16042. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16044. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16045. msm_routing_get_port_mixer,
  16046. msm_routing_put_port_mixer),
  16047. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16048. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16049. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16050. msm_routing_get_port_mixer,
  16051. msm_routing_put_port_mixer),
  16052. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16053. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16054. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16055. msm_routing_get_port_mixer,
  16056. msm_routing_put_port_mixer),
  16057. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16058. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16059. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16060. msm_routing_get_port_mixer,
  16061. msm_routing_put_port_mixer),
  16062. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16064. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16065. msm_routing_get_port_mixer,
  16066. msm_routing_put_port_mixer),
  16067. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16068. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16069. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16070. msm_routing_get_port_mixer,
  16071. msm_routing_put_port_mixer),
  16072. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16073. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16074. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16075. msm_routing_get_port_mixer,
  16076. msm_routing_put_port_mixer),
  16077. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16078. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16079. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16080. msm_routing_get_port_mixer,
  16081. msm_routing_put_port_mixer),
  16082. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16084. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16085. msm_routing_get_port_mixer,
  16086. msm_routing_put_port_mixer),
  16087. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16088. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16089. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16090. msm_routing_get_port_mixer,
  16091. msm_routing_put_port_mixer),
  16092. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16093. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16094. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16095. msm_routing_get_port_mixer,
  16096. msm_routing_put_port_mixer),
  16097. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16099. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16100. msm_routing_get_port_mixer,
  16101. msm_routing_put_port_mixer),
  16102. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16103. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16104. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16105. msm_routing_get_port_mixer,
  16106. msm_routing_put_port_mixer),
  16107. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16108. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16109. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16110. msm_routing_get_port_mixer,
  16111. msm_routing_put_port_mixer),
  16112. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16114. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16115. msm_routing_get_port_mixer,
  16116. msm_routing_put_port_mixer),
  16117. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16118. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16119. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16120. msm_routing_get_port_mixer,
  16121. msm_routing_put_port_mixer),
  16122. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16123. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16124. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16125. msm_routing_get_port_mixer,
  16126. msm_routing_put_port_mixer),
  16127. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16128. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16129. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16130. msm_routing_get_port_mixer,
  16131. msm_routing_put_port_mixer),
  16132. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16133. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16134. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16135. msm_routing_get_port_mixer,
  16136. msm_routing_put_port_mixer),
  16137. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16138. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16139. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16140. msm_routing_get_port_mixer,
  16141. msm_routing_put_port_mixer),
  16142. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16144. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16145. msm_routing_get_port_mixer,
  16146. msm_routing_put_port_mixer),
  16147. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16148. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16149. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16150. msm_routing_get_port_mixer,
  16151. msm_routing_put_port_mixer),
  16152. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16153. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  16154. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16155. msm_routing_get_port_mixer,
  16156. msm_routing_put_port_mixer),
  16157. };
  16158. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  16159. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16160. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16161. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16162. msm_routing_get_port_mixer,
  16163. msm_routing_put_port_mixer),
  16164. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16165. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16166. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16167. msm_routing_get_port_mixer,
  16168. msm_routing_put_port_mixer),
  16169. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16170. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16171. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16172. msm_routing_get_port_mixer,
  16173. msm_routing_put_port_mixer),
  16174. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16176. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16177. msm_routing_get_port_mixer,
  16178. msm_routing_put_port_mixer),
  16179. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16180. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16181. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16182. msm_routing_get_port_mixer,
  16183. msm_routing_put_port_mixer),
  16184. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16185. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16186. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16187. msm_routing_get_port_mixer,
  16188. msm_routing_put_port_mixer),
  16189. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16190. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16191. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16192. msm_routing_get_port_mixer,
  16193. msm_routing_put_port_mixer),
  16194. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16196. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16197. msm_routing_get_port_mixer,
  16198. msm_routing_put_port_mixer),
  16199. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16200. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16201. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16202. msm_routing_get_port_mixer,
  16203. msm_routing_put_port_mixer),
  16204. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16205. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16206. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16207. msm_routing_get_port_mixer,
  16208. msm_routing_put_port_mixer),
  16209. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16210. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16211. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16212. msm_routing_get_port_mixer,
  16213. msm_routing_put_port_mixer),
  16214. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16216. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16217. msm_routing_get_port_mixer,
  16218. msm_routing_put_port_mixer),
  16219. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16220. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16221. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16222. msm_routing_get_port_mixer,
  16223. msm_routing_put_port_mixer),
  16224. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16225. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16226. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16227. msm_routing_get_port_mixer,
  16228. msm_routing_put_port_mixer),
  16229. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16230. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16231. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16232. msm_routing_get_port_mixer,
  16233. msm_routing_put_port_mixer),
  16234. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16236. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16237. msm_routing_get_port_mixer,
  16238. msm_routing_put_port_mixer),
  16239. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16240. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16241. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16242. msm_routing_get_port_mixer,
  16243. msm_routing_put_port_mixer),
  16244. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16246. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16247. msm_routing_get_port_mixer,
  16248. msm_routing_put_port_mixer),
  16249. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16250. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16251. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16252. msm_routing_get_port_mixer,
  16253. msm_routing_put_port_mixer),
  16254. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16255. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16256. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16257. msm_routing_get_port_mixer,
  16258. msm_routing_put_port_mixer),
  16259. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16260. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16261. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16262. msm_routing_get_port_mixer,
  16263. msm_routing_put_port_mixer),
  16264. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16266. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16267. msm_routing_get_port_mixer,
  16268. msm_routing_put_port_mixer),
  16269. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16270. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16271. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16272. msm_routing_get_port_mixer,
  16273. msm_routing_put_port_mixer),
  16274. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16275. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  16276. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16277. msm_routing_get_port_mixer,
  16278. msm_routing_put_port_mixer),
  16279. };
  16280. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  16281. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16282. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16283. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16284. msm_routing_get_port_mixer,
  16285. msm_routing_put_port_mixer),
  16286. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16287. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16288. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16289. msm_routing_get_port_mixer,
  16290. msm_routing_put_port_mixer),
  16291. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16292. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16293. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16294. msm_routing_get_port_mixer,
  16295. msm_routing_put_port_mixer),
  16296. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16298. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16299. msm_routing_get_port_mixer,
  16300. msm_routing_put_port_mixer),
  16301. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16302. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16303. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16304. msm_routing_get_port_mixer,
  16305. msm_routing_put_port_mixer),
  16306. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16307. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16308. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16309. msm_routing_get_port_mixer,
  16310. msm_routing_put_port_mixer),
  16311. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16312. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16313. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16314. msm_routing_get_port_mixer,
  16315. msm_routing_put_port_mixer),
  16316. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16318. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16319. msm_routing_get_port_mixer,
  16320. msm_routing_put_port_mixer),
  16321. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  16322. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16323. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  16324. msm_routing_get_port_mixer,
  16325. msm_routing_put_port_mixer),
  16326. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  16327. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16328. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  16329. msm_routing_get_port_mixer,
  16330. msm_routing_put_port_mixer),
  16331. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  16332. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16333. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  16334. msm_routing_get_port_mixer,
  16335. msm_routing_put_port_mixer),
  16336. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16338. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  16339. msm_routing_get_port_mixer,
  16340. msm_routing_put_port_mixer),
  16341. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16342. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16343. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16344. msm_routing_get_port_mixer,
  16345. msm_routing_put_port_mixer),
  16346. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16347. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16348. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16349. msm_routing_get_port_mixer,
  16350. msm_routing_put_port_mixer),
  16351. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16352. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16353. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16354. msm_routing_get_port_mixer,
  16355. msm_routing_put_port_mixer),
  16356. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16357. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16358. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16359. msm_routing_get_port_mixer,
  16360. msm_routing_put_port_mixer),
  16361. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16362. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16363. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16364. msm_routing_get_port_mixer,
  16365. msm_routing_put_port_mixer),
  16366. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16368. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16369. msm_routing_get_port_mixer,
  16370. msm_routing_put_port_mixer),
  16371. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16372. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16373. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16374. msm_routing_get_port_mixer,
  16375. msm_routing_put_port_mixer),
  16376. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16377. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16378. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16379. msm_routing_get_port_mixer,
  16380. msm_routing_put_port_mixer),
  16381. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16382. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16383. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16384. msm_routing_get_port_mixer,
  16385. msm_routing_put_port_mixer),
  16386. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16388. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16389. msm_routing_get_port_mixer,
  16390. msm_routing_put_port_mixer),
  16391. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16392. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16393. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16394. msm_routing_get_port_mixer,
  16395. msm_routing_put_port_mixer),
  16396. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16397. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  16398. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16399. msm_routing_get_port_mixer,
  16400. msm_routing_put_port_mixer),
  16401. };
  16402. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  16403. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  16404. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  16405. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  16406. msm_routing_get_port_mixer,
  16407. msm_routing_put_port_mixer),
  16408. };
  16409. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  16410. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16412. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16413. msm_routing_get_port_mixer,
  16414. msm_routing_put_port_mixer),
  16415. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16416. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16417. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16418. msm_routing_get_port_mixer,
  16419. msm_routing_put_port_mixer),
  16420. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16421. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16422. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16423. msm_routing_get_port_mixer,
  16424. msm_routing_put_port_mixer),
  16425. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16426. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16427. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16428. msm_routing_get_port_mixer,
  16429. msm_routing_put_port_mixer),
  16430. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16431. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16432. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16433. msm_routing_get_port_mixer,
  16434. msm_routing_put_port_mixer),
  16435. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16436. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16437. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16438. msm_routing_get_port_mixer,
  16439. msm_routing_put_port_mixer),
  16440. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16441. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16442. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16443. msm_routing_get_port_mixer,
  16444. msm_routing_put_port_mixer),
  16445. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16446. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16447. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16448. msm_routing_get_port_mixer,
  16449. msm_routing_put_port_mixer),
  16450. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16451. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16452. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16453. msm_routing_get_port_mixer,
  16454. msm_routing_put_port_mixer),
  16455. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16456. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16457. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16458. msm_routing_get_port_mixer,
  16459. msm_routing_put_port_mixer),
  16460. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16462. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16463. msm_routing_get_port_mixer,
  16464. msm_routing_put_port_mixer),
  16465. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16466. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16467. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16468. msm_routing_get_port_mixer,
  16469. msm_routing_put_port_mixer),
  16470. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16471. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16472. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16473. msm_routing_get_port_mixer,
  16474. msm_routing_put_port_mixer),
  16475. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16476. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16477. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16478. msm_routing_get_port_mixer,
  16479. msm_routing_put_port_mixer),
  16480. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16482. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16483. msm_routing_get_port_mixer,
  16484. msm_routing_put_port_mixer),
  16485. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16486. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16487. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16488. msm_routing_get_port_mixer,
  16489. msm_routing_put_port_mixer),
  16490. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16491. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16492. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16493. msm_routing_get_port_mixer,
  16494. msm_routing_put_port_mixer),
  16495. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16496. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16497. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16498. msm_routing_get_port_mixer,
  16499. msm_routing_put_port_mixer),
  16500. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16501. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16502. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16503. msm_routing_get_port_mixer,
  16504. msm_routing_put_port_mixer),
  16505. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16506. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16507. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16508. msm_routing_get_port_mixer,
  16509. msm_routing_put_port_mixer),
  16510. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16511. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16512. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16513. msm_routing_get_port_mixer,
  16514. msm_routing_put_port_mixer),
  16515. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16516. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16517. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16518. msm_routing_get_port_mixer,
  16519. msm_routing_put_port_mixer),
  16520. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16522. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16523. msm_routing_get_port_mixer,
  16524. msm_routing_put_port_mixer),
  16525. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16526. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  16527. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16528. msm_routing_get_port_mixer,
  16529. msm_routing_put_port_mixer),
  16530. };
  16531. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  16532. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16534. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16535. msm_routing_get_port_mixer,
  16536. msm_routing_put_port_mixer),
  16537. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16538. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16539. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16540. msm_routing_get_port_mixer,
  16541. msm_routing_put_port_mixer),
  16542. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16543. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16544. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16545. msm_routing_get_port_mixer,
  16546. msm_routing_put_port_mixer),
  16547. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16548. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16549. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16550. msm_routing_get_port_mixer,
  16551. msm_routing_put_port_mixer),
  16552. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16553. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16554. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16555. msm_routing_get_port_mixer,
  16556. msm_routing_put_port_mixer),
  16557. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16559. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16560. msm_routing_get_port_mixer,
  16561. msm_routing_put_port_mixer),
  16562. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16563. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16564. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16565. msm_routing_get_port_mixer,
  16566. msm_routing_put_port_mixer),
  16567. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16568. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16569. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16570. msm_routing_get_port_mixer,
  16571. msm_routing_put_port_mixer),
  16572. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16573. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16574. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16575. msm_routing_get_port_mixer,
  16576. msm_routing_put_port_mixer),
  16577. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16579. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16580. msm_routing_get_port_mixer,
  16581. msm_routing_put_port_mixer),
  16582. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16583. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16584. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16585. msm_routing_get_port_mixer,
  16586. msm_routing_put_port_mixer),
  16587. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16588. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16589. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16590. msm_routing_get_port_mixer,
  16591. msm_routing_put_port_mixer),
  16592. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16593. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16594. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16595. msm_routing_get_port_mixer,
  16596. msm_routing_put_port_mixer),
  16597. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16598. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16599. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16600. msm_routing_get_port_mixer,
  16601. msm_routing_put_port_mixer),
  16602. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16603. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16604. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16605. msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16609. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16610. msm_routing_get_port_mixer,
  16611. msm_routing_put_port_mixer),
  16612. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16613. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16614. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16615. msm_routing_get_port_mixer,
  16616. msm_routing_put_port_mixer),
  16617. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16618. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16619. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16620. msm_routing_get_port_mixer,
  16621. msm_routing_put_port_mixer),
  16622. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16623. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16624. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16625. msm_routing_get_port_mixer,
  16626. msm_routing_put_port_mixer),
  16627. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16629. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16630. msm_routing_get_port_mixer,
  16631. msm_routing_put_port_mixer),
  16632. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16633. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16634. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16635. msm_routing_get_port_mixer,
  16636. msm_routing_put_port_mixer),
  16637. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16638. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16639. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16640. msm_routing_get_port_mixer,
  16641. msm_routing_put_port_mixer),
  16642. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16643. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16644. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16645. msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16648. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  16649. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16650. msm_routing_get_port_mixer,
  16651. msm_routing_put_port_mixer),
  16652. };
  16653. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  16654. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16655. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16656. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16657. msm_routing_get_port_mixer,
  16658. msm_routing_put_port_mixer),
  16659. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16660. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16661. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16662. msm_routing_get_port_mixer,
  16663. msm_routing_put_port_mixer),
  16664. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16665. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16666. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16667. msm_routing_get_port_mixer,
  16668. msm_routing_put_port_mixer),
  16669. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16670. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16671. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16672. msm_routing_get_port_mixer,
  16673. msm_routing_put_port_mixer),
  16674. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16675. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16676. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16677. msm_routing_get_port_mixer,
  16678. msm_routing_put_port_mixer),
  16679. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16681. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16682. msm_routing_get_port_mixer,
  16683. msm_routing_put_port_mixer),
  16684. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16685. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16686. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16687. msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16691. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16692. msm_routing_get_port_mixer,
  16693. msm_routing_put_port_mixer),
  16694. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16695. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16696. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16697. msm_routing_get_port_mixer,
  16698. msm_routing_put_port_mixer),
  16699. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16700. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16701. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16702. msm_routing_get_port_mixer,
  16703. msm_routing_put_port_mixer),
  16704. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16705. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16706. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16707. msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16711. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16712. msm_routing_get_port_mixer,
  16713. msm_routing_put_port_mixer),
  16714. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16715. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16716. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16717. msm_routing_get_port_mixer,
  16718. msm_routing_put_port_mixer),
  16719. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16720. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16721. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16722. msm_routing_get_port_mixer,
  16723. msm_routing_put_port_mixer),
  16724. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16725. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16726. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16727. msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16731. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16732. msm_routing_get_port_mixer,
  16733. msm_routing_put_port_mixer),
  16734. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16735. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16736. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16737. msm_routing_get_port_mixer,
  16738. msm_routing_put_port_mixer),
  16739. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16740. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16741. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16742. msm_routing_get_port_mixer,
  16743. msm_routing_put_port_mixer),
  16744. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16745. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16746. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16747. msm_routing_get_port_mixer,
  16748. msm_routing_put_port_mixer),
  16749. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16751. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16752. msm_routing_get_port_mixer,
  16753. msm_routing_put_port_mixer),
  16754. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16755. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16756. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16757. msm_routing_get_port_mixer,
  16758. msm_routing_put_port_mixer),
  16759. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16760. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16761. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16762. msm_routing_get_port_mixer,
  16763. msm_routing_put_port_mixer),
  16764. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16765. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16766. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16767. msm_routing_get_port_mixer,
  16768. msm_routing_put_port_mixer),
  16769. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  16771. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16772. msm_routing_get_port_mixer,
  16773. msm_routing_put_port_mixer),
  16774. };
  16775. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  16776. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16777. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16778. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16779. msm_routing_get_port_mixer,
  16780. msm_routing_put_port_mixer),
  16781. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16783. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16784. msm_routing_get_port_mixer,
  16785. msm_routing_put_port_mixer),
  16786. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16787. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16788. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  16789. msm_routing_get_port_mixer,
  16790. msm_routing_put_port_mixer),
  16791. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16793. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16794. msm_routing_get_port_mixer,
  16795. msm_routing_put_port_mixer),
  16796. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16797. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16798. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16799. msm_routing_get_port_mixer,
  16800. msm_routing_put_port_mixer),
  16801. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16802. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16803. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16804. msm_routing_get_port_mixer,
  16805. msm_routing_put_port_mixer),
  16806. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16807. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16808. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16809. msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16813. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16814. msm_routing_get_port_mixer,
  16815. msm_routing_put_port_mixer),
  16816. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16817. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16818. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16819. msm_routing_get_port_mixer,
  16820. msm_routing_put_port_mixer),
  16821. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16823. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16824. msm_routing_get_port_mixer,
  16825. msm_routing_put_port_mixer),
  16826. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16827. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16828. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16829. msm_routing_get_port_mixer,
  16830. msm_routing_put_port_mixer),
  16831. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16832. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16833. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16834. msm_routing_get_port_mixer,
  16835. msm_routing_put_port_mixer),
  16836. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16837. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16838. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16839. msm_routing_get_port_mixer,
  16840. msm_routing_put_port_mixer),
  16841. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16842. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16843. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16844. msm_routing_get_port_mixer,
  16845. msm_routing_put_port_mixer),
  16846. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16847. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16848. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16849. msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16852. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16853. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16854. msm_routing_get_port_mixer,
  16855. msm_routing_put_port_mixer),
  16856. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16857. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16858. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16859. msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16863. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16864. msm_routing_get_port_mixer,
  16865. msm_routing_put_port_mixer),
  16866. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16867. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16868. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16869. msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16873. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16874. msm_routing_get_port_mixer,
  16875. msm_routing_put_port_mixer),
  16876. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16877. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16878. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  16879. msm_routing_get_port_mixer,
  16880. msm_routing_put_port_mixer),
  16881. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16883. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  16884. msm_routing_get_port_mixer,
  16885. msm_routing_put_port_mixer),
  16886. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  16887. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16888. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  16889. msm_routing_get_port_mixer,
  16890. msm_routing_put_port_mixer),
  16891. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  16892. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  16893. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  16894. msm_routing_get_port_mixer,
  16895. msm_routing_put_port_mixer),
  16896. };
  16897. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  16898. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16899. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16900. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  16901. msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16905. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  16906. msm_routing_get_port_mixer,
  16907. msm_routing_put_port_mixer),
  16908. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16909. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16910. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  16911. msm_routing_get_port_mixer,
  16912. msm_routing_put_port_mixer),
  16913. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16914. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16915. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  16916. msm_routing_get_port_mixer,
  16917. msm_routing_put_port_mixer),
  16918. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16919. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16920. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  16921. msm_routing_get_port_mixer,
  16922. msm_routing_put_port_mixer),
  16923. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16924. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16925. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  16926. msm_routing_get_port_mixer,
  16927. msm_routing_put_port_mixer),
  16928. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16929. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16930. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  16931. msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16935. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  16936. msm_routing_get_port_mixer,
  16937. msm_routing_put_port_mixer),
  16938. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16939. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16940. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  16941. msm_routing_get_port_mixer,
  16942. msm_routing_put_port_mixer),
  16943. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16945. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  16946. msm_routing_get_port_mixer,
  16947. msm_routing_put_port_mixer),
  16948. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  16949. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16950. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  16951. msm_routing_get_port_mixer,
  16952. msm_routing_put_port_mixer),
  16953. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  16954. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16955. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  16956. msm_routing_get_port_mixer,
  16957. msm_routing_put_port_mixer),
  16958. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16959. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16960. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  16961. msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16965. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  16966. msm_routing_get_port_mixer,
  16967. msm_routing_put_port_mixer),
  16968. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  16969. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16970. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  16971. msm_routing_get_port_mixer,
  16972. msm_routing_put_port_mixer),
  16973. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  16974. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16975. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  16976. msm_routing_get_port_mixer,
  16977. msm_routing_put_port_mixer),
  16978. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  16979. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16980. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  16981. msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16985. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  16986. msm_routing_get_port_mixer,
  16987. msm_routing_put_port_mixer),
  16988. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  16989. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16990. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  16991. msm_routing_get_port_mixer,
  16992. msm_routing_put_port_mixer),
  16993. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  16994. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  16995. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  16996. msm_routing_get_port_mixer,
  16997. msm_routing_put_port_mixer),
  16998. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  16999. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17000. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17001. msm_routing_get_port_mixer,
  17002. msm_routing_put_port_mixer),
  17003. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17004. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17005. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17006. msm_routing_get_port_mixer,
  17007. msm_routing_put_port_mixer),
  17008. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17009. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17010. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17011. msm_routing_get_port_mixer,
  17012. msm_routing_put_port_mixer),
  17013. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17014. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  17015. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17016. msm_routing_get_port_mixer,
  17017. msm_routing_put_port_mixer),
  17018. };
  17019. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  17020. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17021. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17022. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17023. msm_routing_get_port_mixer,
  17024. msm_routing_put_port_mixer),
  17025. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17026. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17027. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17028. msm_routing_get_port_mixer,
  17029. msm_routing_put_port_mixer),
  17030. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17031. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17032. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17033. msm_routing_get_port_mixer,
  17034. msm_routing_put_port_mixer),
  17035. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17037. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17038. msm_routing_get_port_mixer,
  17039. msm_routing_put_port_mixer),
  17040. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17041. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17042. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17043. msm_routing_get_port_mixer,
  17044. msm_routing_put_port_mixer),
  17045. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17046. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17047. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17048. msm_routing_get_port_mixer,
  17049. msm_routing_put_port_mixer),
  17050. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17051. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17052. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17053. msm_routing_get_port_mixer,
  17054. msm_routing_put_port_mixer),
  17055. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17057. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17058. msm_routing_get_port_mixer,
  17059. msm_routing_put_port_mixer),
  17060. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17061. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17062. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17063. msm_routing_get_port_mixer,
  17064. msm_routing_put_port_mixer),
  17065. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17066. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17067. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17068. msm_routing_get_port_mixer,
  17069. msm_routing_put_port_mixer),
  17070. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17071. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17072. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17073. msm_routing_get_port_mixer,
  17074. msm_routing_put_port_mixer),
  17075. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17077. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17078. msm_routing_get_port_mixer,
  17079. msm_routing_put_port_mixer),
  17080. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17081. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17082. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17083. msm_routing_get_port_mixer,
  17084. msm_routing_put_port_mixer),
  17085. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17086. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17087. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17088. msm_routing_get_port_mixer,
  17089. msm_routing_put_port_mixer),
  17090. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17091. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17092. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17093. msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17096. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17097. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17098. msm_routing_get_port_mixer,
  17099. msm_routing_put_port_mixer),
  17100. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17101. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17102. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17103. msm_routing_get_port_mixer,
  17104. msm_routing_put_port_mixer),
  17105. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17106. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17107. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17108. msm_routing_get_port_mixer,
  17109. msm_routing_put_port_mixer),
  17110. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17111. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17112. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17113. msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17117. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17118. msm_routing_get_port_mixer,
  17119. msm_routing_put_port_mixer),
  17120. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17121. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17122. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17123. msm_routing_get_port_mixer,
  17124. msm_routing_put_port_mixer),
  17125. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17126. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17127. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17128. msm_routing_get_port_mixer,
  17129. msm_routing_put_port_mixer),
  17130. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17131. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17132. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17133. msm_routing_get_port_mixer,
  17134. msm_routing_put_port_mixer),
  17135. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  17137. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17138. msm_routing_get_port_mixer,
  17139. msm_routing_put_port_mixer),
  17140. };
  17141. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  17142. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17143. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17144. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17145. msm_routing_get_port_mixer,
  17146. msm_routing_put_port_mixer),
  17147. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17148. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17149. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17150. msm_routing_get_port_mixer,
  17151. msm_routing_put_port_mixer),
  17152. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17153. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17154. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17155. msm_routing_get_port_mixer,
  17156. msm_routing_put_port_mixer),
  17157. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17159. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17160. msm_routing_get_port_mixer,
  17161. msm_routing_put_port_mixer),
  17162. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17163. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17164. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17165. msm_routing_get_port_mixer,
  17166. msm_routing_put_port_mixer),
  17167. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17168. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17169. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17170. msm_routing_get_port_mixer,
  17171. msm_routing_put_port_mixer),
  17172. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17173. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17174. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17175. msm_routing_get_port_mixer,
  17176. msm_routing_put_port_mixer),
  17177. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17178. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17179. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17180. msm_routing_get_port_mixer,
  17181. msm_routing_put_port_mixer),
  17182. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17183. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17184. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17185. msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17189. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17190. msm_routing_get_port_mixer,
  17191. msm_routing_put_port_mixer),
  17192. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17193. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17194. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17195. msm_routing_get_port_mixer,
  17196. msm_routing_put_port_mixer),
  17197. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17198. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17199. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17200. msm_routing_get_port_mixer,
  17201. msm_routing_put_port_mixer),
  17202. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17203. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17204. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17205. msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17209. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17210. msm_routing_get_port_mixer,
  17211. msm_routing_put_port_mixer),
  17212. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17213. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17214. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17215. msm_routing_get_port_mixer,
  17216. msm_routing_put_port_mixer),
  17217. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17218. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17219. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17220. msm_routing_get_port_mixer,
  17221. msm_routing_put_port_mixer),
  17222. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17223. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17224. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17225. msm_routing_get_port_mixer,
  17226. msm_routing_put_port_mixer),
  17227. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17228. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17229. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17230. msm_routing_get_port_mixer,
  17231. msm_routing_put_port_mixer),
  17232. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17233. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17234. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17235. msm_routing_get_port_mixer,
  17236. msm_routing_put_port_mixer),
  17237. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17238. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17239. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17240. msm_routing_get_port_mixer,
  17241. msm_routing_put_port_mixer),
  17242. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17243. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17244. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17245. msm_routing_get_port_mixer,
  17246. msm_routing_put_port_mixer),
  17247. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17248. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17249. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17250. msm_routing_get_port_mixer,
  17251. msm_routing_put_port_mixer),
  17252. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17253. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17254. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17255. msm_routing_get_port_mixer,
  17256. msm_routing_put_port_mixer),
  17257. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17258. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  17259. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17260. msm_routing_get_port_mixer,
  17261. msm_routing_put_port_mixer),
  17262. };
  17263. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  17264. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17265. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17266. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17267. msm_routing_get_port_mixer,
  17268. msm_routing_put_port_mixer),
  17269. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17270. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17271. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17272. msm_routing_get_port_mixer,
  17273. msm_routing_put_port_mixer),
  17274. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17275. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17276. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17277. msm_routing_get_port_mixer,
  17278. msm_routing_put_port_mixer),
  17279. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17280. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17281. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17282. msm_routing_get_port_mixer,
  17283. msm_routing_put_port_mixer),
  17284. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17285. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17286. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17287. msm_routing_get_port_mixer,
  17288. msm_routing_put_port_mixer),
  17289. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17290. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17291. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17292. msm_routing_get_port_mixer,
  17293. msm_routing_put_port_mixer),
  17294. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17295. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17296. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17297. msm_routing_get_port_mixer,
  17298. msm_routing_put_port_mixer),
  17299. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17300. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17301. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17302. msm_routing_get_port_mixer,
  17303. msm_routing_put_port_mixer),
  17304. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17305. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17306. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17307. msm_routing_get_port_mixer,
  17308. msm_routing_put_port_mixer),
  17309. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17310. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17311. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17312. msm_routing_get_port_mixer,
  17313. msm_routing_put_port_mixer),
  17314. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17315. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17316. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17317. msm_routing_get_port_mixer,
  17318. msm_routing_put_port_mixer),
  17319. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17320. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17321. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17322. msm_routing_get_port_mixer,
  17323. msm_routing_put_port_mixer),
  17324. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17325. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17326. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17327. msm_routing_get_port_mixer,
  17328. msm_routing_put_port_mixer),
  17329. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17330. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17331. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17332. msm_routing_get_port_mixer,
  17333. msm_routing_put_port_mixer),
  17334. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17335. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17336. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17337. msm_routing_get_port_mixer,
  17338. msm_routing_put_port_mixer),
  17339. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17340. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17341. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17342. msm_routing_get_port_mixer,
  17343. msm_routing_put_port_mixer),
  17344. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17345. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17346. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17347. msm_routing_get_port_mixer,
  17348. msm_routing_put_port_mixer),
  17349. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17350. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17351. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17352. msm_routing_get_port_mixer,
  17353. msm_routing_put_port_mixer),
  17354. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17355. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17356. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17357. msm_routing_get_port_mixer,
  17358. msm_routing_put_port_mixer),
  17359. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17360. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17361. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17362. msm_routing_get_port_mixer,
  17363. msm_routing_put_port_mixer),
  17364. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17365. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17366. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17367. msm_routing_get_port_mixer,
  17368. msm_routing_put_port_mixer),
  17369. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17370. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17371. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17372. msm_routing_get_port_mixer,
  17373. msm_routing_put_port_mixer),
  17374. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17375. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17376. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17377. msm_routing_get_port_mixer,
  17378. msm_routing_put_port_mixer),
  17379. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17380. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  17381. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17382. msm_routing_get_port_mixer,
  17383. msm_routing_put_port_mixer),
  17384. };
  17385. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  17386. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  17387. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  17388. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  17389. msm_routing_get_port_mixer,
  17390. msm_routing_put_port_mixer),
  17391. };
  17392. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  17393. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17394. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17395. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17396. msm_routing_get_port_mixer,
  17397. msm_routing_put_port_mixer),
  17398. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17399. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17400. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17401. msm_routing_get_port_mixer,
  17402. msm_routing_put_port_mixer),
  17403. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17404. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17405. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17406. msm_routing_get_port_mixer,
  17407. msm_routing_put_port_mixer),
  17408. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17409. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17410. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17411. msm_routing_get_port_mixer,
  17412. msm_routing_put_port_mixer),
  17413. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17414. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17415. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17416. msm_routing_get_port_mixer,
  17417. msm_routing_put_port_mixer),
  17418. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17419. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17420. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17421. msm_routing_get_port_mixer,
  17422. msm_routing_put_port_mixer),
  17423. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17424. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17425. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17426. msm_routing_get_port_mixer,
  17427. msm_routing_put_port_mixer),
  17428. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17429. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17430. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17431. msm_routing_get_port_mixer,
  17432. msm_routing_put_port_mixer),
  17433. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17434. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17435. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17436. msm_routing_get_port_mixer,
  17437. msm_routing_put_port_mixer),
  17438. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17439. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17440. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17441. msm_routing_get_port_mixer,
  17442. msm_routing_put_port_mixer),
  17443. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17444. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17445. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17446. msm_routing_get_port_mixer,
  17447. msm_routing_put_port_mixer),
  17448. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17449. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17450. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17451. msm_routing_get_port_mixer,
  17452. msm_routing_put_port_mixer),
  17453. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17454. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17455. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17456. msm_routing_get_port_mixer,
  17457. msm_routing_put_port_mixer),
  17458. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17459. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17460. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17461. msm_routing_get_port_mixer,
  17462. msm_routing_put_port_mixer),
  17463. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17464. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17465. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17466. msm_routing_get_port_mixer,
  17467. msm_routing_put_port_mixer),
  17468. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17469. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17470. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17471. msm_routing_get_port_mixer,
  17472. msm_routing_put_port_mixer),
  17473. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17474. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17475. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17476. msm_routing_get_port_mixer,
  17477. msm_routing_put_port_mixer),
  17478. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17479. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17480. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17481. msm_routing_get_port_mixer,
  17482. msm_routing_put_port_mixer),
  17483. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17484. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17485. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17486. msm_routing_get_port_mixer,
  17487. msm_routing_put_port_mixer),
  17488. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17489. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17490. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17491. msm_routing_get_port_mixer,
  17492. msm_routing_put_port_mixer),
  17493. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17494. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17495. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17496. msm_routing_get_port_mixer,
  17497. msm_routing_put_port_mixer),
  17498. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17499. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17500. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17501. msm_routing_get_port_mixer,
  17502. msm_routing_put_port_mixer),
  17503. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17505. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17506. msm_routing_get_port_mixer,
  17507. msm_routing_put_port_mixer),
  17508. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17509. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  17510. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17511. msm_routing_get_port_mixer,
  17512. msm_routing_put_port_mixer),
  17513. };
  17514. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  17515. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17516. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17517. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17518. msm_routing_get_port_mixer,
  17519. msm_routing_put_port_mixer),
  17520. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17521. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17522. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17523. msm_routing_get_port_mixer,
  17524. msm_routing_put_port_mixer),
  17525. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17526. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17527. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17528. msm_routing_get_port_mixer,
  17529. msm_routing_put_port_mixer),
  17530. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17531. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17532. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17533. msm_routing_get_port_mixer,
  17534. msm_routing_put_port_mixer),
  17535. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17536. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17537. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17538. msm_routing_get_port_mixer,
  17539. msm_routing_put_port_mixer),
  17540. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17541. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17542. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17543. msm_routing_get_port_mixer,
  17544. msm_routing_put_port_mixer),
  17545. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17546. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17547. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17548. msm_routing_get_port_mixer,
  17549. msm_routing_put_port_mixer),
  17550. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17551. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17552. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17553. msm_routing_get_port_mixer,
  17554. msm_routing_put_port_mixer),
  17555. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17556. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17557. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17558. msm_routing_get_port_mixer,
  17559. msm_routing_put_port_mixer),
  17560. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17561. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17562. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17563. msm_routing_get_port_mixer,
  17564. msm_routing_put_port_mixer),
  17565. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17566. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17567. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17568. msm_routing_get_port_mixer,
  17569. msm_routing_put_port_mixer),
  17570. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17571. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17572. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17573. msm_routing_get_port_mixer,
  17574. msm_routing_put_port_mixer),
  17575. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17576. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17577. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17578. msm_routing_get_port_mixer,
  17579. msm_routing_put_port_mixer),
  17580. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17581. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17582. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17583. msm_routing_get_port_mixer,
  17584. msm_routing_put_port_mixer),
  17585. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17586. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17587. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17588. msm_routing_get_port_mixer,
  17589. msm_routing_put_port_mixer),
  17590. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17591. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17592. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17593. msm_routing_get_port_mixer,
  17594. msm_routing_put_port_mixer),
  17595. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17596. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17597. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17598. msm_routing_get_port_mixer,
  17599. msm_routing_put_port_mixer),
  17600. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17601. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17602. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17603. msm_routing_get_port_mixer,
  17604. msm_routing_put_port_mixer),
  17605. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17607. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17608. msm_routing_get_port_mixer,
  17609. msm_routing_put_port_mixer),
  17610. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17611. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17612. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17613. msm_routing_get_port_mixer,
  17614. msm_routing_put_port_mixer),
  17615. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17616. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17617. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17618. msm_routing_get_port_mixer,
  17619. msm_routing_put_port_mixer),
  17620. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17621. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17622. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17623. msm_routing_get_port_mixer,
  17624. msm_routing_put_port_mixer),
  17625. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17627. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17628. msm_routing_get_port_mixer,
  17629. msm_routing_put_port_mixer),
  17630. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17631. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  17632. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17633. msm_routing_get_port_mixer,
  17634. msm_routing_put_port_mixer),
  17635. };
  17636. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  17637. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17638. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17639. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17640. msm_routing_get_port_mixer,
  17641. msm_routing_put_port_mixer),
  17642. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17643. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17644. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17645. msm_routing_get_port_mixer,
  17646. msm_routing_put_port_mixer),
  17647. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17648. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17649. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17650. msm_routing_get_port_mixer,
  17651. msm_routing_put_port_mixer),
  17652. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17653. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17654. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17655. msm_routing_get_port_mixer,
  17656. msm_routing_put_port_mixer),
  17657. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17658. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17659. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17660. msm_routing_get_port_mixer,
  17661. msm_routing_put_port_mixer),
  17662. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17663. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17664. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17665. msm_routing_get_port_mixer,
  17666. msm_routing_put_port_mixer),
  17667. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17668. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17669. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17670. msm_routing_get_port_mixer,
  17671. msm_routing_put_port_mixer),
  17672. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17673. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17674. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17675. msm_routing_get_port_mixer,
  17676. msm_routing_put_port_mixer),
  17677. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17678. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17679. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17680. msm_routing_get_port_mixer,
  17681. msm_routing_put_port_mixer),
  17682. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17683. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17684. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17685. msm_routing_get_port_mixer,
  17686. msm_routing_put_port_mixer),
  17687. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17689. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17690. msm_routing_get_port_mixer,
  17691. msm_routing_put_port_mixer),
  17692. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17693. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17694. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17695. msm_routing_get_port_mixer,
  17696. msm_routing_put_port_mixer),
  17697. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17698. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17699. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17700. msm_routing_get_port_mixer,
  17701. msm_routing_put_port_mixer),
  17702. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17703. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17704. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17705. msm_routing_get_port_mixer,
  17706. msm_routing_put_port_mixer),
  17707. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17709. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17710. msm_routing_get_port_mixer,
  17711. msm_routing_put_port_mixer),
  17712. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17713. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17714. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17715. msm_routing_get_port_mixer,
  17716. msm_routing_put_port_mixer),
  17717. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17718. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17719. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17720. msm_routing_get_port_mixer,
  17721. msm_routing_put_port_mixer),
  17722. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17723. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17724. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17725. msm_routing_get_port_mixer,
  17726. msm_routing_put_port_mixer),
  17727. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17729. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17730. msm_routing_get_port_mixer,
  17731. msm_routing_put_port_mixer),
  17732. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17733. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17734. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17735. msm_routing_get_port_mixer,
  17736. msm_routing_put_port_mixer),
  17737. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17738. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17739. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17740. msm_routing_get_port_mixer,
  17741. msm_routing_put_port_mixer),
  17742. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17743. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17744. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17745. msm_routing_get_port_mixer,
  17746. msm_routing_put_port_mixer),
  17747. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17748. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17749. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17750. msm_routing_get_port_mixer,
  17751. msm_routing_put_port_mixer),
  17752. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17753. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  17754. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17755. msm_routing_get_port_mixer,
  17756. msm_routing_put_port_mixer),
  17757. };
  17758. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  17759. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17760. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17761. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17762. msm_routing_get_port_mixer,
  17763. msm_routing_put_port_mixer),
  17764. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17765. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17766. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17767. msm_routing_get_port_mixer,
  17768. msm_routing_put_port_mixer),
  17769. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17771. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17772. msm_routing_get_port_mixer,
  17773. msm_routing_put_port_mixer),
  17774. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17775. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17776. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17777. msm_routing_get_port_mixer,
  17778. msm_routing_put_port_mixer),
  17779. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17780. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17781. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17782. msm_routing_get_port_mixer,
  17783. msm_routing_put_port_mixer),
  17784. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17785. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17786. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17787. msm_routing_get_port_mixer,
  17788. msm_routing_put_port_mixer),
  17789. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17791. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17792. msm_routing_get_port_mixer,
  17793. msm_routing_put_port_mixer),
  17794. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17795. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17796. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17797. msm_routing_get_port_mixer,
  17798. msm_routing_put_port_mixer),
  17799. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17800. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17801. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17802. msm_routing_get_port_mixer,
  17803. msm_routing_put_port_mixer),
  17804. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17805. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17806. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17807. msm_routing_get_port_mixer,
  17808. msm_routing_put_port_mixer),
  17809. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17810. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17811. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17812. msm_routing_get_port_mixer,
  17813. msm_routing_put_port_mixer),
  17814. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17815. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17816. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17817. msm_routing_get_port_mixer,
  17818. msm_routing_put_port_mixer),
  17819. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17820. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17821. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17822. msm_routing_get_port_mixer,
  17823. msm_routing_put_port_mixer),
  17824. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17825. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17826. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17827. msm_routing_get_port_mixer,
  17828. msm_routing_put_port_mixer),
  17829. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17830. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17831. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17832. msm_routing_get_port_mixer,
  17833. msm_routing_put_port_mixer),
  17834. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17835. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17836. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17837. msm_routing_get_port_mixer,
  17838. msm_routing_put_port_mixer),
  17839. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17840. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17841. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17842. msm_routing_get_port_mixer,
  17843. msm_routing_put_port_mixer),
  17844. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17845. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17846. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17847. msm_routing_get_port_mixer,
  17848. msm_routing_put_port_mixer),
  17849. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17850. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17851. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17852. msm_routing_get_port_mixer,
  17853. msm_routing_put_port_mixer),
  17854. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17855. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17856. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17857. msm_routing_get_port_mixer,
  17858. msm_routing_put_port_mixer),
  17859. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17860. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17861. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17862. msm_routing_get_port_mixer,
  17863. msm_routing_put_port_mixer),
  17864. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17865. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17866. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17867. msm_routing_get_port_mixer,
  17868. msm_routing_put_port_mixer),
  17869. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17870. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17871. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17872. msm_routing_get_port_mixer,
  17873. msm_routing_put_port_mixer),
  17874. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17875. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  17876. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17877. msm_routing_get_port_mixer,
  17878. msm_routing_put_port_mixer),
  17879. };
  17880. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  17881. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17882. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17883. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17884. msm_routing_get_port_mixer,
  17885. msm_routing_put_port_mixer),
  17886. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17887. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17888. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17889. msm_routing_get_port_mixer,
  17890. msm_routing_put_port_mixer),
  17891. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17892. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17893. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  17894. msm_routing_get_port_mixer,
  17895. msm_routing_put_port_mixer),
  17896. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17897. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17898. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17899. msm_routing_get_port_mixer,
  17900. msm_routing_put_port_mixer),
  17901. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17902. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17903. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17904. msm_routing_get_port_mixer,
  17905. msm_routing_put_port_mixer),
  17906. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17907. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17908. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17909. msm_routing_get_port_mixer,
  17910. msm_routing_put_port_mixer),
  17911. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17912. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17913. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17914. msm_routing_get_port_mixer,
  17915. msm_routing_put_port_mixer),
  17916. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17917. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17918. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17919. msm_routing_get_port_mixer,
  17920. msm_routing_put_port_mixer),
  17921. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  17922. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17923. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  17924. msm_routing_get_port_mixer,
  17925. msm_routing_put_port_mixer),
  17926. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  17927. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17928. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  17929. msm_routing_get_port_mixer,
  17930. msm_routing_put_port_mixer),
  17931. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  17932. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17933. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  17934. msm_routing_get_port_mixer,
  17935. msm_routing_put_port_mixer),
  17936. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  17937. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17938. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  17939. msm_routing_get_port_mixer,
  17940. msm_routing_put_port_mixer),
  17941. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17942. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17943. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17944. msm_routing_get_port_mixer,
  17945. msm_routing_put_port_mixer),
  17946. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17947. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17948. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17949. msm_routing_get_port_mixer,
  17950. msm_routing_put_port_mixer),
  17951. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17952. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17953. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17954. msm_routing_get_port_mixer,
  17955. msm_routing_put_port_mixer),
  17956. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17957. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17958. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17959. msm_routing_get_port_mixer,
  17960. msm_routing_put_port_mixer),
  17961. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17962. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17963. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17964. msm_routing_get_port_mixer,
  17965. msm_routing_put_port_mixer),
  17966. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17967. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17968. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17969. msm_routing_get_port_mixer,
  17970. msm_routing_put_port_mixer),
  17971. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17972. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17973. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17974. msm_routing_get_port_mixer,
  17975. msm_routing_put_port_mixer),
  17976. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17977. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17978. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17979. msm_routing_get_port_mixer,
  17980. msm_routing_put_port_mixer),
  17981. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17982. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17983. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17984. msm_routing_get_port_mixer,
  17985. msm_routing_put_port_mixer),
  17986. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17987. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17988. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17989. msm_routing_get_port_mixer,
  17990. msm_routing_put_port_mixer),
  17991. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17992. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17993. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17994. msm_routing_get_port_mixer,
  17995. msm_routing_put_port_mixer),
  17996. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17997. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  17998. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17999. msm_routing_get_port_mixer,
  18000. msm_routing_put_port_mixer),
  18001. };
  18002. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  18003. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18004. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18005. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18006. msm_routing_get_port_mixer,
  18007. msm_routing_put_port_mixer),
  18008. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18009. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18010. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18011. msm_routing_get_port_mixer,
  18012. msm_routing_put_port_mixer),
  18013. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18014. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18015. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18016. msm_routing_get_port_mixer,
  18017. msm_routing_put_port_mixer),
  18018. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18019. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18020. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18021. msm_routing_get_port_mixer,
  18022. msm_routing_put_port_mixer),
  18023. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18024. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18025. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18026. msm_routing_get_port_mixer,
  18027. msm_routing_put_port_mixer),
  18028. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18029. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18030. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18031. msm_routing_get_port_mixer,
  18032. msm_routing_put_port_mixer),
  18033. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18034. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18035. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18036. msm_routing_get_port_mixer,
  18037. msm_routing_put_port_mixer),
  18038. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18039. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18040. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18041. msm_routing_get_port_mixer,
  18042. msm_routing_put_port_mixer),
  18043. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18044. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18045. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18046. msm_routing_get_port_mixer,
  18047. msm_routing_put_port_mixer),
  18048. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18049. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18050. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18051. msm_routing_get_port_mixer,
  18052. msm_routing_put_port_mixer),
  18053. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18054. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18055. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18056. msm_routing_get_port_mixer,
  18057. msm_routing_put_port_mixer),
  18058. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18059. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18060. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18061. msm_routing_get_port_mixer,
  18062. msm_routing_put_port_mixer),
  18063. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18064. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18065. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18066. msm_routing_get_port_mixer,
  18067. msm_routing_put_port_mixer),
  18068. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18069. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18070. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18071. msm_routing_get_port_mixer,
  18072. msm_routing_put_port_mixer),
  18073. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18074. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18075. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18076. msm_routing_get_port_mixer,
  18077. msm_routing_put_port_mixer),
  18078. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18079. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18080. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18081. msm_routing_get_port_mixer,
  18082. msm_routing_put_port_mixer),
  18083. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18084. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18085. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18086. msm_routing_get_port_mixer,
  18087. msm_routing_put_port_mixer),
  18088. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18089. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18090. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18091. msm_routing_get_port_mixer,
  18092. msm_routing_put_port_mixer),
  18093. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18094. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18095. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18096. msm_routing_get_port_mixer,
  18097. msm_routing_put_port_mixer),
  18098. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18099. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18100. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18101. msm_routing_get_port_mixer,
  18102. msm_routing_put_port_mixer),
  18103. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18104. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18105. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18106. msm_routing_get_port_mixer,
  18107. msm_routing_put_port_mixer),
  18108. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18109. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18110. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18111. msm_routing_get_port_mixer,
  18112. msm_routing_put_port_mixer),
  18113. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18114. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18115. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18116. msm_routing_get_port_mixer,
  18117. msm_routing_put_port_mixer),
  18118. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18119. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  18120. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18121. msm_routing_get_port_mixer,
  18122. msm_routing_put_port_mixer),
  18123. };
  18124. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  18125. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18126. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18127. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18128. msm_routing_get_port_mixer,
  18129. msm_routing_put_port_mixer),
  18130. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18131. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18132. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18133. msm_routing_get_port_mixer,
  18134. msm_routing_put_port_mixer),
  18135. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18136. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18137. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18138. msm_routing_get_port_mixer,
  18139. msm_routing_put_port_mixer),
  18140. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18141. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18142. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18143. msm_routing_get_port_mixer,
  18144. msm_routing_put_port_mixer),
  18145. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18146. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18147. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18148. msm_routing_get_port_mixer,
  18149. msm_routing_put_port_mixer),
  18150. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18151. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18152. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18153. msm_routing_get_port_mixer,
  18154. msm_routing_put_port_mixer),
  18155. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18156. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18157. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18158. msm_routing_get_port_mixer,
  18159. msm_routing_put_port_mixer),
  18160. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18161. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18162. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18163. msm_routing_get_port_mixer,
  18164. msm_routing_put_port_mixer),
  18165. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18166. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18167. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18168. msm_routing_get_port_mixer,
  18169. msm_routing_put_port_mixer),
  18170. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18171. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18172. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18173. msm_routing_get_port_mixer,
  18174. msm_routing_put_port_mixer),
  18175. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18176. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18177. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18178. msm_routing_get_port_mixer,
  18179. msm_routing_put_port_mixer),
  18180. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18181. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18182. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18183. msm_routing_get_port_mixer,
  18184. msm_routing_put_port_mixer),
  18185. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18186. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18187. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18188. msm_routing_get_port_mixer,
  18189. msm_routing_put_port_mixer),
  18190. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18191. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18192. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18193. msm_routing_get_port_mixer,
  18194. msm_routing_put_port_mixer),
  18195. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18196. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18197. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18198. msm_routing_get_port_mixer,
  18199. msm_routing_put_port_mixer),
  18200. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18201. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18202. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18203. msm_routing_get_port_mixer,
  18204. msm_routing_put_port_mixer),
  18205. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18206. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18207. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18208. msm_routing_get_port_mixer,
  18209. msm_routing_put_port_mixer),
  18210. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18211. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18212. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18213. msm_routing_get_port_mixer,
  18214. msm_routing_put_port_mixer),
  18215. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18216. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18217. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18218. msm_routing_get_port_mixer,
  18219. msm_routing_put_port_mixer),
  18220. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18221. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18222. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18223. msm_routing_get_port_mixer,
  18224. msm_routing_put_port_mixer),
  18225. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18226. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18227. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18228. msm_routing_get_port_mixer,
  18229. msm_routing_put_port_mixer),
  18230. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18231. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18232. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18233. msm_routing_get_port_mixer,
  18234. msm_routing_put_port_mixer),
  18235. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18236. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18237. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18238. msm_routing_get_port_mixer,
  18239. msm_routing_put_port_mixer),
  18240. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18241. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  18242. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18243. msm_routing_get_port_mixer,
  18244. msm_routing_put_port_mixer),
  18245. };
  18246. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  18247. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18248. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18249. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18250. msm_routing_get_port_mixer,
  18251. msm_routing_put_port_mixer),
  18252. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18253. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18254. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18255. msm_routing_get_port_mixer,
  18256. msm_routing_put_port_mixer),
  18257. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18258. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18259. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18260. msm_routing_get_port_mixer,
  18261. msm_routing_put_port_mixer),
  18262. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18263. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18264. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18265. msm_routing_get_port_mixer,
  18266. msm_routing_put_port_mixer),
  18267. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18268. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18269. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18270. msm_routing_get_port_mixer,
  18271. msm_routing_put_port_mixer),
  18272. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18273. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18274. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18275. msm_routing_get_port_mixer,
  18276. msm_routing_put_port_mixer),
  18277. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18278. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18279. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18280. msm_routing_get_port_mixer,
  18281. msm_routing_put_port_mixer),
  18282. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18283. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18284. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18285. msm_routing_get_port_mixer,
  18286. msm_routing_put_port_mixer),
  18287. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18288. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18289. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18290. msm_routing_get_port_mixer,
  18291. msm_routing_put_port_mixer),
  18292. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18293. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18294. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18295. msm_routing_get_port_mixer,
  18296. msm_routing_put_port_mixer),
  18297. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18298. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18299. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18300. msm_routing_get_port_mixer,
  18301. msm_routing_put_port_mixer),
  18302. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18303. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18304. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18305. msm_routing_get_port_mixer,
  18306. msm_routing_put_port_mixer),
  18307. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18308. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18309. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18310. msm_routing_get_port_mixer,
  18311. msm_routing_put_port_mixer),
  18312. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18313. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18314. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18315. msm_routing_get_port_mixer,
  18316. msm_routing_put_port_mixer),
  18317. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18318. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18319. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18320. msm_routing_get_port_mixer,
  18321. msm_routing_put_port_mixer),
  18322. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18323. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18324. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18325. msm_routing_get_port_mixer,
  18326. msm_routing_put_port_mixer),
  18327. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18328. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18329. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18330. msm_routing_get_port_mixer,
  18331. msm_routing_put_port_mixer),
  18332. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18333. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18334. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18335. msm_routing_get_port_mixer,
  18336. msm_routing_put_port_mixer),
  18337. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18338. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18339. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18340. msm_routing_get_port_mixer,
  18341. msm_routing_put_port_mixer),
  18342. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18343. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18344. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18345. msm_routing_get_port_mixer,
  18346. msm_routing_put_port_mixer),
  18347. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18348. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18349. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18350. msm_routing_get_port_mixer,
  18351. msm_routing_put_port_mixer),
  18352. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18353. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18354. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18355. msm_routing_get_port_mixer,
  18356. msm_routing_put_port_mixer),
  18357. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18358. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18359. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18360. msm_routing_get_port_mixer,
  18361. msm_routing_put_port_mixer),
  18362. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18363. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  18364. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18365. msm_routing_get_port_mixer,
  18366. msm_routing_put_port_mixer),
  18367. };
  18368. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  18369. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18370. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18371. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18375. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18376. msm_routing_put_port_mixer),
  18377. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18378. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18379. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18380. msm_routing_put_port_mixer),
  18381. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18382. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18383. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18384. msm_routing_put_port_mixer),
  18385. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18386. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18387. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18388. msm_routing_put_port_mixer),
  18389. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18390. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18391. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18395. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18396. msm_routing_put_port_mixer),
  18397. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18398. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  18399. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18400. msm_routing_put_port_mixer),
  18401. };
  18402. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  18403. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18405. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18406. msm_routing_put_port_mixer),
  18407. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18408. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18409. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18410. msm_routing_put_port_mixer),
  18411. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18412. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18413. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18414. msm_routing_put_port_mixer),
  18415. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18416. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18417. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18418. msm_routing_put_port_mixer),
  18419. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  18420. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18421. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18425. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  18426. msm_routing_put_port_mixer),
  18427. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  18428. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18429. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  18430. msm_routing_put_port_mixer),
  18431. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18432. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18433. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  18434. msm_routing_put_port_mixer),
  18435. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  18436. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18437. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  18438. msm_routing_put_port_mixer),
  18439. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18440. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  18441. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  18442. msm_routing_put_port_mixer),
  18443. };
  18444. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  18445. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18446. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18447. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18448. msm_routing_put_listen_mixer),
  18449. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18450. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18451. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18452. msm_routing_put_listen_mixer),
  18453. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18454. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18455. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18456. msm_routing_put_listen_mixer),
  18457. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18458. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18459. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18460. msm_routing_put_listen_mixer),
  18461. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18462. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18463. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18464. msm_routing_put_listen_mixer),
  18465. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18467. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18468. msm_routing_put_listen_mixer),
  18469. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18470. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18471. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18472. msm_routing_put_listen_mixer),
  18473. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18474. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18475. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18476. msm_routing_put_listen_mixer),
  18477. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18478. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18479. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18480. msm_routing_put_listen_mixer),
  18481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18483. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18484. msm_routing_put_listen_mixer),
  18485. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18487. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18488. msm_routing_put_listen_mixer),
  18489. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18490. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18491. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18492. msm_routing_put_listen_mixer),
  18493. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18494. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18495. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  18496. msm_routing_put_listen_mixer),
  18497. };
  18498. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  18499. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18500. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18501. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18502. msm_routing_put_listen_mixer),
  18503. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  18504. SND_SOC_NOPM,
  18505. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18506. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18507. msm_routing_put_listen_mixer),
  18508. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18509. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18510. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18511. msm_routing_put_listen_mixer),
  18512. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18513. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18514. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18515. msm_routing_put_listen_mixer),
  18516. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18517. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18518. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18519. msm_routing_put_listen_mixer),
  18520. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18522. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18523. msm_routing_put_listen_mixer),
  18524. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18525. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18526. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18527. msm_routing_put_listen_mixer),
  18528. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18529. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18530. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18531. msm_routing_put_listen_mixer),
  18532. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18533. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18534. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18535. msm_routing_put_listen_mixer),
  18536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18538. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18539. msm_routing_put_listen_mixer),
  18540. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18542. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18543. msm_routing_put_listen_mixer),
  18544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18546. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18547. msm_routing_put_listen_mixer),
  18548. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18549. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18550. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  18551. msm_routing_put_listen_mixer),
  18552. };
  18553. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  18554. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18555. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18556. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18557. msm_routing_put_listen_mixer),
  18558. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18559. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18560. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18561. msm_routing_put_listen_mixer),
  18562. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18563. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18564. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18565. msm_routing_put_listen_mixer),
  18566. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18567. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18568. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18569. msm_routing_put_listen_mixer),
  18570. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18571. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18572. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18573. msm_routing_put_listen_mixer),
  18574. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18575. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18576. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18577. msm_routing_put_listen_mixer),
  18578. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18579. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18580. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18581. msm_routing_put_listen_mixer),
  18582. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18583. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18584. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18585. msm_routing_put_listen_mixer),
  18586. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18587. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18588. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18589. msm_routing_put_listen_mixer),
  18590. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18591. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18592. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18593. msm_routing_put_listen_mixer),
  18594. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18595. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18596. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18597. msm_routing_put_listen_mixer),
  18598. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18599. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18600. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18601. msm_routing_put_listen_mixer),
  18602. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18604. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  18605. msm_routing_put_listen_mixer),
  18606. };
  18607. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  18608. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18609. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18610. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18611. msm_routing_put_listen_mixer),
  18612. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18614. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18615. msm_routing_put_listen_mixer),
  18616. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18617. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18618. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18619. msm_routing_put_listen_mixer),
  18620. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18621. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18622. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18623. msm_routing_put_listen_mixer),
  18624. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18625. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18626. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18627. msm_routing_put_listen_mixer),
  18628. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18629. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18630. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18631. msm_routing_put_listen_mixer),
  18632. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18634. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18635. msm_routing_put_listen_mixer),
  18636. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18637. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18638. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18639. msm_routing_put_listen_mixer),
  18640. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18641. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18642. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18643. msm_routing_put_listen_mixer),
  18644. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18645. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18646. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18647. msm_routing_put_listen_mixer),
  18648. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18649. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18650. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18651. msm_routing_put_listen_mixer),
  18652. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18654. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18655. msm_routing_put_listen_mixer),
  18656. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18657. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18658. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  18659. msm_routing_put_listen_mixer),
  18660. };
  18661. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  18662. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18664. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18665. msm_routing_put_listen_mixer),
  18666. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18667. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18668. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18669. msm_routing_put_listen_mixer),
  18670. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18671. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18672. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18673. msm_routing_put_listen_mixer),
  18674. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18675. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18676. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18677. msm_routing_put_listen_mixer),
  18678. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18679. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18680. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18681. msm_routing_put_listen_mixer),
  18682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18683. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18684. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18685. msm_routing_put_listen_mixer),
  18686. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18687. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18688. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18689. msm_routing_put_listen_mixer),
  18690. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18691. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18692. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18693. msm_routing_put_listen_mixer),
  18694. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18695. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18696. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18697. msm_routing_put_listen_mixer),
  18698. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18699. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18700. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18701. msm_routing_put_listen_mixer),
  18702. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18703. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18704. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18705. msm_routing_put_listen_mixer),
  18706. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18707. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18708. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18709. msm_routing_put_listen_mixer),
  18710. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18711. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18712. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  18713. msm_routing_put_listen_mixer),
  18714. };
  18715. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  18716. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18717. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18718. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18719. msm_routing_put_listen_mixer),
  18720. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18721. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18722. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18723. msm_routing_put_listen_mixer),
  18724. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18726. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18727. msm_routing_put_listen_mixer),
  18728. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18729. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18730. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18731. msm_routing_put_listen_mixer),
  18732. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18733. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18734. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18735. msm_routing_put_listen_mixer),
  18736. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18737. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18738. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18739. msm_routing_put_listen_mixer),
  18740. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18741. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18742. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18743. msm_routing_put_listen_mixer),
  18744. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18746. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18747. msm_routing_put_listen_mixer),
  18748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18749. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18750. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18751. msm_routing_put_listen_mixer),
  18752. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18753. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18754. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18755. msm_routing_put_listen_mixer),
  18756. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18757. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18758. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18759. msm_routing_put_listen_mixer),
  18760. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18761. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18762. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18763. msm_routing_put_listen_mixer),
  18764. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18766. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  18767. msm_routing_put_listen_mixer),
  18768. };
  18769. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  18770. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18771. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18772. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18773. msm_routing_put_listen_mixer),
  18774. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18776. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18777. msm_routing_put_listen_mixer),
  18778. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18779. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18780. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18781. msm_routing_put_listen_mixer),
  18782. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18783. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18784. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18785. msm_routing_put_listen_mixer),
  18786. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18787. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18788. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18789. msm_routing_put_listen_mixer),
  18790. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18791. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18792. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18793. msm_routing_put_listen_mixer),
  18794. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18796. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18797. msm_routing_put_listen_mixer),
  18798. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18799. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18800. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18801. msm_routing_put_listen_mixer),
  18802. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18803. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18804. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18805. msm_routing_put_listen_mixer),
  18806. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18807. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18808. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18809. msm_routing_put_listen_mixer),
  18810. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18811. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18812. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18813. msm_routing_put_listen_mixer),
  18814. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18815. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18816. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18817. msm_routing_put_listen_mixer),
  18818. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18819. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18820. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  18821. msm_routing_put_listen_mixer),
  18822. };
  18823. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  18824. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  18825. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  18826. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18827. msm_routing_put_listen_mixer),
  18828. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  18829. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  18830. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18831. msm_routing_put_listen_mixer),
  18832. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  18833. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  18834. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18835. msm_routing_put_listen_mixer),
  18836. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  18837. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  18838. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18839. msm_routing_put_listen_mixer),
  18840. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  18841. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  18842. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18843. msm_routing_put_listen_mixer),
  18844. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18845. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  18846. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18847. msm_routing_put_listen_mixer),
  18848. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18849. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  18850. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18851. msm_routing_put_listen_mixer),
  18852. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  18853. MSM_BACKEND_DAI_INT3_MI2S_TX,
  18854. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18855. msm_routing_put_listen_mixer),
  18856. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  18858. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18859. msm_routing_put_listen_mixer),
  18860. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  18861. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  18862. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18863. msm_routing_put_listen_mixer),
  18864. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  18865. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  18866. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18867. msm_routing_put_listen_mixer),
  18868. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  18869. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  18870. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18871. msm_routing_put_listen_mixer),
  18872. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18873. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  18874. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  18875. msm_routing_put_listen_mixer),
  18876. };
  18877. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  18878. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18879. 0, 1, 0, msm_routing_get_switch_mixer,
  18880. msm_routing_put_switch_mixer);
  18881. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  18882. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18883. 0, 1, 0, msm_routing_get_switch_mixer,
  18884. msm_routing_put_switch_mixer);
  18885. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  18886. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18887. 0, 1, 0, msm_routing_get_switch_mixer,
  18888. msm_routing_put_switch_mixer);
  18889. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  18890. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18891. 0, 1, 0, msm_routing_get_switch_mixer,
  18892. msm_routing_put_switch_mixer);
  18893. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  18894. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18895. 0, 1, 0, msm_routing_get_switch_mixer,
  18896. msm_routing_put_switch_mixer);
  18897. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  18898. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18899. 0, 1, 0, msm_routing_get_switch_mixer,
  18900. msm_routing_put_switch_mixer);
  18901. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  18902. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18903. 0, 1, 0, msm_routing_get_switch_mixer,
  18904. msm_routing_put_switch_mixer);
  18905. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  18906. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18907. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  18908. msm_routing_put_fm_pcmrx_switch_mixer);
  18909. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  18910. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18911. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  18912. msm_routing_put_int0_mi2s_switch_mixer);
  18913. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  18914. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18915. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  18916. msm_routing_put_int4_mi2s_switch_mixer);
  18917. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  18918. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18919. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  18920. msm_routing_put_pri_mi2s_switch_mixer);
  18921. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  18922. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18923. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  18924. msm_routing_put_sec_mi2s_switch_mixer);
  18925. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  18926. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18927. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  18928. msm_routing_put_tert_mi2s_switch_mixer);
  18929. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  18930. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18931. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  18932. msm_routing_put_quat_mi2s_switch_mixer);
  18933. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  18934. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18935. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  18936. msm_routing_put_quin_mi2s_switch_mixer);
  18937. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  18938. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18939. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  18940. msm_routing_put_sen_mi2s_switch_mixer);
  18941. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  18942. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18943. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18944. msm_routing_put_hfp_switch_mixer);
  18945. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  18946. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18947. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18948. msm_routing_put_hfp_switch_mixer);
  18949. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  18950. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18951. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18952. msm_routing_put_hfp_switch_mixer);
  18953. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  18954. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18955. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  18956. msm_routing_put_hfp_switch_mixer);
  18957. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  18958. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18959. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  18960. msm_routing_put_usb_switch_mixer);
  18961. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  18962. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18963. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  18964. msm_routing_a2dp_switch_mixer_put);
  18965. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  18966. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  18967. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  18968. msm_routing_sco_switch_mixer_put);
  18969. static const struct soc_enum lsm_port_enum =
  18970. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  18971. static const char * const lsm_func_text[] = {
  18972. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  18973. };
  18974. static const struct soc_enum lsm_func_enum =
  18975. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  18976. static const struct snd_kcontrol_new lsm_controls[] = {
  18977. /* kcontrol of lsm_function */
  18978. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18979. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18980. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18981. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18982. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18983. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18984. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18985. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18986. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18987. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18988. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18989. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18990. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18991. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18992. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18993. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18994. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18995. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18996. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18997. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  18998. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  18999. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  19000. /* kcontrol of lsm_port */
  19001. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  19002. msm_routing_lsm_port_get,
  19003. msm_routing_lsm_port_put),
  19004. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  19005. msm_routing_lsm_port_get,
  19006. msm_routing_lsm_port_put),
  19007. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  19008. msm_routing_lsm_port_get,
  19009. msm_routing_lsm_port_put),
  19010. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  19011. msm_routing_lsm_port_get,
  19012. msm_routing_lsm_port_put),
  19013. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  19014. msm_routing_lsm_port_get,
  19015. msm_routing_lsm_port_put),
  19016. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  19017. msm_routing_lsm_port_get,
  19018. msm_routing_lsm_port_put),
  19019. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  19020. msm_routing_lsm_port_get,
  19021. msm_routing_lsm_port_put),
  19022. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  19023. msm_routing_lsm_port_get,
  19024. msm_routing_lsm_port_put),
  19025. };
  19026. static const char * const aanc_slim_0_rx_text[] = {
  19027. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  19028. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  19029. };
  19030. static const struct soc_enum aanc_slim_0_rx_enum =
  19031. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  19032. aanc_slim_0_rx_text);
  19033. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  19034. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  19035. msm_routing_slim_0_rx_aanc_mux_get,
  19036. msm_routing_slim_0_rx_aanc_mux_put)
  19037. };
  19038. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  19039. struct snd_ctl_elem_value *ucontrol)
  19040. {
  19041. ucontrol->value.integer.value[0] = aanc_level;
  19042. return 0;
  19043. }
  19044. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  19045. struct snd_ctl_elem_value *ucontrol)
  19046. {
  19047. int ret = 0;
  19048. mutex_lock(&routing_lock);
  19049. aanc_level = ucontrol->value.integer.value[0];
  19050. pr_debug("%s: value: %ld\n",
  19051. __func__, ucontrol->value.integer.value[0]);
  19052. ret = afe_set_aanc_noise_level(aanc_level);
  19053. mutex_unlock(&routing_lock);
  19054. return ret;
  19055. }
  19056. static const struct snd_kcontrol_new aanc_noise_level[] = {
  19057. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  19058. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  19059. };
  19060. static int msm_routing_get_stereo_to_custom_stereo_control(
  19061. struct snd_kcontrol *kcontrol,
  19062. struct snd_ctl_elem_value *ucontrol)
  19063. {
  19064. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  19065. return 0;
  19066. }
  19067. static int msm_routing_put_stereo_to_custom_stereo_control(
  19068. struct snd_kcontrol *kcontrol,
  19069. struct snd_ctl_elem_value *ucontrol)
  19070. {
  19071. int flag = 0, i = 0, rc = 0, idx = 0;
  19072. int be_index = 0, port_id, topo_id;
  19073. unsigned int session_id = 0;
  19074. uint16_t op_FL_ip_FL_weight = 0;
  19075. uint16_t op_FL_ip_FR_weight = 0;
  19076. uint16_t op_FR_ip_FL_weight = 0;
  19077. uint16_t op_FR_ip_FR_weight = 0;
  19078. flag = ucontrol->value.integer.value[0];
  19079. pr_debug("%s E flag %d\n", __func__, flag);
  19080. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  19081. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  19082. __func__, is_custom_stereo_on, flag);
  19083. return 0;
  19084. }
  19085. is_custom_stereo_on = flag ? true : false;
  19086. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  19087. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19088. port_id = msm_bedais[be_index].port_id;
  19089. if (!msm_bedais[be_index].active)
  19090. continue;
  19091. if ((port_id != SLIMBUS_0_RX) &&
  19092. (port_id != RT_PROXY_PORT_001_RX) &&
  19093. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  19094. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  19095. continue;
  19096. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19097. MSM_FRONTEND_DAI_MM_SIZE) {
  19098. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  19099. LEGACY_PCM_MODE)
  19100. goto skip_send_custom_stereo;
  19101. session_id =
  19102. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  19103. if (is_custom_stereo_on) {
  19104. op_FL_ip_FL_weight =
  19105. Q14_GAIN_ZERO_POINT_FIVE;
  19106. op_FL_ip_FR_weight =
  19107. Q14_GAIN_ZERO_POINT_FIVE;
  19108. op_FR_ip_FL_weight =
  19109. Q14_GAIN_ZERO_POINT_FIVE;
  19110. op_FR_ip_FR_weight =
  19111. Q14_GAIN_ZERO_POINT_FIVE;
  19112. } else {
  19113. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  19114. op_FL_ip_FR_weight = 0;
  19115. op_FR_ip_FL_weight = 0;
  19116. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  19117. }
  19118. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19119. unsigned long copp =
  19120. session_copp_map[i]
  19121. [SESSION_TYPE_RX][be_index];
  19122. if (!test_bit(idx, &copp))
  19123. goto skip_send_custom_stereo;
  19124. topo_id = adm_get_topology_for_port_copp_idx(
  19125. msm_bedais[be_index].port_id, idx);
  19126. if (topo_id < 0)
  19127. pr_debug("%s:Err:custom stereo topo %d",
  19128. __func__, topo_id);
  19129. pr_debug("idx %d\n", idx);
  19130. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  19131. rc = msm_ds2_dap_set_custom_stereo_onoff
  19132. (msm_bedais[be_index].port_id,
  19133. idx, is_custom_stereo_on);
  19134. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  19135. rc = dolby_dap_set_custom_stereo_onoff(
  19136. msm_bedais[be_index].port_id,
  19137. idx, is_custom_stereo_on);
  19138. else
  19139. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  19140. (msm_bedais[be_index].port_id,
  19141. idx, session_id,
  19142. op_FL_ip_FL_weight,
  19143. op_FL_ip_FR_weight,
  19144. op_FR_ip_FL_weight,
  19145. op_FR_ip_FR_weight);
  19146. if (rc < 0)
  19147. skip_send_custom_stereo:
  19148. pr_err("%s: err setting custom stereo\n",
  19149. __func__);
  19150. }
  19151. }
  19152. }
  19153. return 0;
  19154. }
  19155. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  19156. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  19157. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  19158. msm_routing_put_stereo_to_custom_stereo_control),
  19159. };
  19160. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19161. struct snd_ctl_elem_value *ucontrol)
  19162. {
  19163. return 0;
  19164. }
  19165. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  19166. struct snd_ctl_elem_value *ucontrol)
  19167. {
  19168. int i = 0, j;
  19169. int num_app_types = ucontrol->value.integer.value[i++];
  19170. pr_debug("%s\n", __func__);
  19171. memset(app_type_cfg, 0, MAX_APP_TYPES*
  19172. sizeof(struct msm_pcm_routing_app_type_data));
  19173. if (num_app_types > MAX_APP_TYPES) {
  19174. pr_err("%s: number of app types exceed the max supported\n",
  19175. __func__);
  19176. return -EINVAL;
  19177. }
  19178. for (j = 0; j < num_app_types; j++) {
  19179. app_type_cfg[j].app_type =
  19180. ucontrol->value.integer.value[i++];
  19181. app_type_cfg[j].sample_rate =
  19182. ucontrol->value.integer.value[i++];
  19183. app_type_cfg[j].bit_width =
  19184. ucontrol->value.integer.value[i++];
  19185. }
  19186. return 0;
  19187. }
  19188. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  19189. struct snd_ctl_elem_value *ucontrol)
  19190. {
  19191. int j, fe_id, be_id, port_type;
  19192. int ret = 0;
  19193. unsigned long copp;
  19194. struct msm_pcm_routing_bdai_data *bedai;
  19195. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19196. SESSION_TYPE_RX;
  19197. int app_type = ucontrol->value.integer.value[1];
  19198. int gain = (ucontrol->value.integer.value[2] +
  19199. ucontrol->value.integer.value[3])/2;
  19200. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19201. MSM_AFE_PORT_TYPE_TX;
  19202. mutex_lock(&routing_lock);
  19203. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19204. if (is_be_dai_extproc(be_id))
  19205. continue;
  19206. bedai = &msm_bedais[be_id];
  19207. if (afe_get_port_type(bedai->port_id) != port_type)
  19208. continue;
  19209. if (!bedai->active)
  19210. continue;
  19211. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19212. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19213. continue;
  19214. if (app_type !=
  19215. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19216. continue;
  19217. copp = session_copp_map[fe_id][dir][be_id];
  19218. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  19219. if (!test_bit(j, &copp))
  19220. continue;
  19221. ret |= adm_set_volume(bedai->port_id, j, gain);
  19222. }
  19223. }
  19224. }
  19225. mutex_unlock(&routing_lock);
  19226. return ret ? -EINVAL : 0;
  19227. }
  19228. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  19229. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  19230. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  19231. msm_routing_put_app_type_cfg_control),
  19232. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  19233. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  19234. };
  19235. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  19236. struct snd_ctl_elem_value *ucontrol)
  19237. {
  19238. int copp_idx, fe_id, be_id, port_type;
  19239. int ret = 0;
  19240. unsigned long copp;
  19241. struct msm_pcm_routing_bdai_data *bedai;
  19242. u8 *packed_params = NULL;
  19243. struct param_hdr_v3 param_hdr;
  19244. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  19245. sizeof(uint32_t));
  19246. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  19247. SESSION_TYPE_RX;
  19248. int app_type = ucontrol->value.integer.value[1];
  19249. int module_id = ucontrol->value.integer.value[2];
  19250. int instance_id = ucontrol->value.integer.value[3];
  19251. int param_id = ucontrol->value.integer.value[4];
  19252. int param_value = ucontrol->value.integer.value[5];
  19253. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  19254. MSM_AFE_PORT_TYPE_TX;
  19255. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  19256. __func__, app_type, module_id,
  19257. instance_id, param_id, param_value);
  19258. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  19259. if (!packed_params)
  19260. return -ENOMEM;
  19261. memset(&param_hdr, 0, sizeof(param_hdr));
  19262. param_hdr.module_id = module_id;
  19263. param_hdr.instance_id = instance_id;
  19264. param_hdr.param_id = param_id;
  19265. param_hdr.param_size = sizeof(uint32_t);
  19266. packed_param_size = 0;
  19267. mutex_lock(&routing_lock);
  19268. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  19269. if (is_be_dai_extproc(be_id))
  19270. continue;
  19271. bedai = &msm_bedais[be_id];
  19272. if (afe_get_port_type(bedai->port_id) != port_type)
  19273. continue;
  19274. if (!bedai->active)
  19275. continue;
  19276. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  19277. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  19278. continue;
  19279. if (app_type !=
  19280. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  19281. continue;
  19282. copp = session_copp_map[fe_id][dir][be_id];
  19283. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  19284. copp_idx++) {
  19285. if (!test_bit(copp_idx, &copp))
  19286. continue;
  19287. ret = q6common_pack_pp_params(packed_params,
  19288. &param_hdr,
  19289. (u8 *) &param_value,
  19290. &packed_param_size);
  19291. if (ret) {
  19292. pr_err("%s: Failed to pack params, error %d\n",
  19293. __func__, ret);
  19294. goto done;
  19295. }
  19296. ret = adm_set_pp_params(bedai->port_id,
  19297. copp_idx, NULL,
  19298. packed_params,
  19299. packed_param_size);
  19300. if (ret) {
  19301. pr_err("%s: Setting param failed with err=%d\n",
  19302. __func__, ret);
  19303. ret = -EINVAL;
  19304. goto done;
  19305. }
  19306. }
  19307. }
  19308. }
  19309. done:
  19310. mutex_unlock(&routing_lock);
  19311. kfree(packed_params);
  19312. return ret;
  19313. }
  19314. static const struct snd_kcontrol_new module_cfg_controls[] = {
  19315. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  19316. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  19317. };
  19318. static int msm_routing_get_lsm_app_type_cfg_control(
  19319. struct snd_kcontrol *kcontrol,
  19320. struct snd_ctl_elem_value *ucontrol)
  19321. {
  19322. int shift = ((struct soc_multi_mixer_control *)
  19323. kcontrol->private_value)->shift;
  19324. int i = 0, j = 0;
  19325. ucontrol->value.integer.value[i] = num_app_cfg_types;
  19326. for (j = 0; j < num_app_cfg_types; ++j) {
  19327. ucontrol->value.integer.value[++i] =
  19328. lsm_app_type_cfg[j].app_type;
  19329. ucontrol->value.integer.value[++i] =
  19330. lsm_app_type_cfg[j].sample_rate;
  19331. ucontrol->value.integer.value[++i] =
  19332. lsm_app_type_cfg[j].bit_width;
  19333. if (shift == 1)
  19334. ucontrol->value.integer.value[++i] =
  19335. lsm_app_type_cfg[j].num_out_channels;
  19336. }
  19337. return 0;
  19338. }
  19339. static int msm_routing_put_lsm_app_type_cfg_control(
  19340. struct snd_kcontrol *kcontrol,
  19341. struct snd_ctl_elem_value *ucontrol)
  19342. {
  19343. int shift = ((struct soc_multi_mixer_control *)
  19344. kcontrol->private_value)->shift;
  19345. int i = 0, j;
  19346. num_app_cfg_types = ucontrol->value.integer.value[i++];
  19347. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  19348. sizeof(struct msm_pcm_routing_app_type_data));
  19349. if (num_app_cfg_types > MAX_APP_TYPES) {
  19350. pr_err("%s: number of app types exceed the max supported\n",
  19351. __func__);
  19352. return -EINVAL;
  19353. }
  19354. for (j = 0; j < num_app_cfg_types; j++) {
  19355. lsm_app_type_cfg[j].app_type =
  19356. ucontrol->value.integer.value[i++];
  19357. lsm_app_type_cfg[j].sample_rate =
  19358. ucontrol->value.integer.value[i++];
  19359. lsm_app_type_cfg[j].bit_width =
  19360. ucontrol->value.integer.value[i++];
  19361. /* Shift of 1 indicates this is V2 mixer control */
  19362. if (shift == 1)
  19363. lsm_app_type_cfg[j].num_out_channels =
  19364. ucontrol->value.integer.value[i++];
  19365. }
  19366. return 0;
  19367. }
  19368. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  19369. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  19370. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19371. msm_routing_put_lsm_app_type_cfg_control),
  19372. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  19373. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  19374. msm_routing_put_lsm_app_type_cfg_control),
  19375. };
  19376. static int msm_routing_get_use_ds1_or_ds2_control(
  19377. struct snd_kcontrol *kcontrol,
  19378. struct snd_ctl_elem_value *ucontrol)
  19379. {
  19380. ucontrol->value.integer.value[0] = is_ds2_on;
  19381. return 0;
  19382. }
  19383. static int msm_routing_put_use_ds1_or_ds2_control(
  19384. struct snd_kcontrol *kcontrol,
  19385. struct snd_ctl_elem_value *ucontrol)
  19386. {
  19387. is_ds2_on = ucontrol->value.integer.value[0];
  19388. return 0;
  19389. }
  19390. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  19391. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  19392. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  19393. msm_routing_put_use_ds1_or_ds2_control),
  19394. };
  19395. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  19396. struct snd_ctl_elem_value *ucontrol) {
  19397. int rc = 0;
  19398. int be_idx = 0;
  19399. char *param_value;
  19400. int *update_param_value;
  19401. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  19402. struct param_hdr_v3 param_hdr;
  19403. param_value = kzalloc(param_size, GFP_KERNEL);
  19404. if (!param_value)
  19405. return -ENOMEM;
  19406. memset(&param_hdr, 0, sizeof(param_hdr));
  19407. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  19408. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  19409. break;
  19410. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  19411. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  19412. param_hdr.instance_id = INSTANCE_ID_0;
  19413. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  19414. param_hdr.param_size = param_size;
  19415. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  19416. NULL, &param_hdr, (u8 *) param_value);
  19417. if (rc) {
  19418. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  19419. kfree(param_value);
  19420. return -EINVAL;
  19421. }
  19422. update_param_value = (int *)param_value;
  19423. ucontrol->value.integer.value[0] = update_param_value[0];
  19424. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  19425. __func__, update_param_value[0]);
  19426. }
  19427. kfree(param_value);
  19428. return 0;
  19429. }
  19430. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  19431. struct snd_ctl_elem_value *ucontrol)
  19432. {
  19433. voc_session_id = ucontrol->value.integer.value[0];
  19434. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  19435. return 0;
  19436. }
  19437. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  19438. struct snd_ctl_elem_value *ucontrol)
  19439. {
  19440. ucontrol->value.integer.value[0] = voc_session_id;
  19441. return 0;
  19442. }
  19443. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  19444. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  19445. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  19446. msm_voc_session_id_put),
  19447. };
  19448. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  19449. struct snd_ctl_elem_info *uinfo)
  19450. {
  19451. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19452. uinfo->count = sizeof(struct sound_focus_param);
  19453. return 0;
  19454. }
  19455. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  19456. struct snd_ctl_elem_value *ucontrol)
  19457. {
  19458. int ret = 0;
  19459. struct sound_focus_param soundFocusData;
  19460. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19461. sizeof(struct sound_focus_param));
  19462. ret = voc_set_sound_focus(soundFocusData);
  19463. if (ret) {
  19464. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19465. __func__, ret);
  19466. ret = -EINVAL;
  19467. }
  19468. return ret;
  19469. }
  19470. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  19471. struct snd_ctl_elem_value *ucontrol)
  19472. {
  19473. int ret = 0;
  19474. struct sound_focus_param soundFocusData;
  19475. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  19476. ret = voc_get_sound_focus(&soundFocusData);
  19477. if (ret) {
  19478. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  19479. __func__, ret);
  19480. ret = -EINVAL;
  19481. goto done;
  19482. }
  19483. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19484. sizeof(struct sound_focus_param));
  19485. done:
  19486. return ret;
  19487. }
  19488. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  19489. struct snd_ctl_elem_info *uinfo)
  19490. {
  19491. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19492. uinfo->count = sizeof(struct source_tracking_param);
  19493. return 0;
  19494. }
  19495. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  19496. struct snd_ctl_elem_value *ucontrol)
  19497. {
  19498. int ret = 0;
  19499. struct source_tracking_param sourceTrackingData;
  19500. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  19501. ret = voc_get_source_tracking(&sourceTrackingData);
  19502. if (ret) {
  19503. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  19504. __func__, ret);
  19505. ret = -EINVAL;
  19506. goto done;
  19507. }
  19508. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19509. sizeof(struct source_tracking_param));
  19510. done:
  19511. return ret;
  19512. }
  19513. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  19514. int *copp_idx)
  19515. {
  19516. int i, idx, be_idx;
  19517. int ret = 0;
  19518. unsigned long copp;
  19519. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  19520. ret = q6audio_validate_port(port_id);
  19521. if (ret < 0) {
  19522. pr_err("%s: port validation failed id 0x%x ret %d\n",
  19523. __func__, port_id, ret);
  19524. ret = -EINVAL;
  19525. goto done;
  19526. }
  19527. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19528. if (msm_bedais[be_idx].port_id == port_id)
  19529. break;
  19530. }
  19531. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19532. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  19533. ret = -EINVAL;
  19534. goto done;
  19535. }
  19536. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19537. MSM_FRONTEND_DAI_MAX) {
  19538. if (!(is_mm_lsm_fe_id(i) &&
  19539. route_check_fe_id_adm_support(i)))
  19540. continue;
  19541. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19542. copp = session_copp_map[i]
  19543. [session_type][be_idx];
  19544. if (test_bit(idx, &copp))
  19545. break;
  19546. }
  19547. if (idx >= MAX_COPPS_PER_PORT)
  19548. continue;
  19549. else
  19550. break;
  19551. }
  19552. if (i >= MSM_FRONTEND_DAI_MAX) {
  19553. pr_debug("%s: Invalid FE, exiting\n", __func__);
  19554. ret = -EINVAL;
  19555. goto done;
  19556. }
  19557. *copp_idx = idx;
  19558. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  19559. done:
  19560. return ret;
  19561. }
  19562. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  19563. const char *prefix, int *port_id)
  19564. {
  19565. int ret = 0;
  19566. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  19567. /*
  19568. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  19569. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  19570. * and compare the string with the backend name to derive the port id.
  19571. */
  19572. if (!strcmp(kcontrol->id.name + strlen(prefix),
  19573. "SLIMBUS_0")) {
  19574. *port_id = SLIMBUS_0_TX;
  19575. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19576. "TERT_MI2S")) {
  19577. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  19578. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19579. "INT3_MI2S")) {
  19580. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  19581. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19582. "VA_CDC_DMA_TX_0")) {
  19583. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  19584. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19585. "TX_CDC_DMA_TX_3")) {
  19586. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  19587. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19588. "QUIN_TDM_TX_0")) {
  19589. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  19590. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  19591. "PRIMARY_TDM")) {
  19592. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  19593. } else {
  19594. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  19595. __func__, kcontrol->id.name);
  19596. ret = -EINVAL;
  19597. goto done;
  19598. }
  19599. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  19600. __func__, kcontrol->id.name, *port_id);
  19601. done:
  19602. return ret;
  19603. }
  19604. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  19605. struct snd_ctl_elem_value *ucontrol)
  19606. {
  19607. int ret = 0;
  19608. struct sound_focus_param soundFocusData;
  19609. int port_id, copp_idx;
  19610. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19611. "Sound Focus Audio Tx ", &port_id);
  19612. if (ret != 0) {
  19613. pr_err("%s: Error in deriving port id, err=%d\n",
  19614. __func__, ret);
  19615. ret = -EINVAL;
  19616. goto done;
  19617. }
  19618. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19619. &copp_idx);
  19620. if (ret) {
  19621. pr_err("%s: Could not get copp idx for port_id=%d\n",
  19622. __func__, port_id);
  19623. ret = -EINVAL;
  19624. goto done;
  19625. }
  19626. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  19627. sizeof(struct sound_focus_param));
  19628. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  19629. if (ret) {
  19630. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  19631. __func__, ret);
  19632. ret = -EINVAL;
  19633. goto done;
  19634. }
  19635. done:
  19636. return ret;
  19637. }
  19638. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  19639. struct snd_ctl_elem_value *ucontrol)
  19640. {
  19641. int ret = 0;
  19642. struct sound_focus_param soundFocusData;
  19643. int port_id, copp_idx;
  19644. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19645. "Sound Focus Audio Tx ", &port_id);
  19646. if (ret) {
  19647. pr_err("%s: Error in deriving port id, err=%d\n",
  19648. __func__, ret);
  19649. ret = -EINVAL;
  19650. goto done;
  19651. }
  19652. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19653. &copp_idx);
  19654. if (ret) {
  19655. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19656. __func__, port_id);
  19657. ret = -EINVAL;
  19658. goto done;
  19659. }
  19660. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  19661. if (ret) {
  19662. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  19663. __func__, ret);
  19664. ret = -EINVAL;
  19665. goto done;
  19666. }
  19667. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  19668. sizeof(struct sound_focus_param));
  19669. done:
  19670. return ret;
  19671. }
  19672. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  19673. struct snd_ctl_elem_value *ucontrol)
  19674. {
  19675. int ret = 0;
  19676. struct source_tracking_param sourceTrackingData;
  19677. int port_id, copp_idx;
  19678. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19679. "Source Tracking Audio Tx ", &port_id);
  19680. if (ret) {
  19681. pr_err("%s: Error in deriving port id, err=%d\n",
  19682. __func__, ret);
  19683. ret = -EINVAL;
  19684. goto done;
  19685. }
  19686. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19687. &copp_idx);
  19688. if (ret) {
  19689. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  19690. __func__, port_id);
  19691. ret = -EINVAL;
  19692. goto done;
  19693. }
  19694. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  19695. if (ret) {
  19696. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  19697. __func__, ret);
  19698. ret = -EINVAL;
  19699. goto done;
  19700. }
  19701. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  19702. sizeof(struct source_tracking_param));
  19703. done:
  19704. return ret;
  19705. }
  19706. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  19707. struct snd_ctl_elem_info *uinfo)
  19708. {
  19709. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19710. uinfo->count = sizeof(struct doa_tracking_mon_param);
  19711. return 0;
  19712. }
  19713. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  19714. struct snd_ctl_elem_value *ucontrol)
  19715. {
  19716. int ret = 0;
  19717. struct doa_tracking_mon_param doa_tracking_data;
  19718. int port_id, copp_idx;
  19719. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  19720. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  19721. "Doa Tracking Monitor Listen ", &port_id);
  19722. if (ret) {
  19723. pr_err("%s: Error in deriving port id, err=%d\n",
  19724. __func__, ret);
  19725. ret = -EINVAL;
  19726. goto done;
  19727. }
  19728. /*
  19729. * If copp id exists for given port id, query adm to get doa data.
  19730. * Else query afe for doa tracking params.
  19731. * This is to support in cases where LSM directly connects to
  19732. * AFE for FFNS.
  19733. */
  19734. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  19735. &copp_idx);
  19736. if (!ret)
  19737. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  19738. &doa_tracking_data);
  19739. else
  19740. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  19741. if (ret) {
  19742. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  19743. __func__, ret);
  19744. ret = -EINVAL;
  19745. goto done;
  19746. }
  19747. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  19748. sizeof(struct doa_tracking_mon_param));
  19749. done:
  19750. return ret;
  19751. }
  19752. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  19753. {
  19754. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19756. .name = "Sound Focus Voice Tx SLIMBUS_0",
  19757. .info = msm_sound_focus_info,
  19758. .get = msm_voice_sound_focus_get,
  19759. .put = msm_voice_sound_focus_put,
  19760. },
  19761. {
  19762. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19763. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19764. .name = "Source Tracking Voice Tx SLIMBUS_0",
  19765. .info = msm_source_tracking_info,
  19766. .get = msm_voice_source_tracking_get,
  19767. },
  19768. {
  19769. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19771. .name = "Sound Focus Audio Tx SLIMBUS_0",
  19772. .info = msm_sound_focus_info,
  19773. .get = msm_audio_sound_focus_get,
  19774. .put = msm_audio_sound_focus_put,
  19775. },
  19776. {
  19777. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19778. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19779. .name = "Source Tracking Audio Tx SLIMBUS_0",
  19780. .info = msm_source_tracking_info,
  19781. .get = msm_audio_source_tracking_get,
  19782. },
  19783. {
  19784. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19785. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19786. .name = "Sound Focus Voice Tx TERT_MI2S",
  19787. .info = msm_sound_focus_info,
  19788. .get = msm_voice_sound_focus_get,
  19789. .put = msm_voice_sound_focus_put,
  19790. },
  19791. {
  19792. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19793. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19794. .name = "Source Tracking Voice Tx TERT_MI2S",
  19795. .info = msm_source_tracking_info,
  19796. .get = msm_voice_source_tracking_get,
  19797. },
  19798. {
  19799. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19800. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19801. .name = "Sound Focus Audio Tx TERT_MI2S",
  19802. .info = msm_sound_focus_info,
  19803. .get = msm_audio_sound_focus_get,
  19804. .put = msm_audio_sound_focus_put,
  19805. },
  19806. {
  19807. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19808. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19809. .name = "Source Tracking Audio Tx TERT_MI2S",
  19810. .info = msm_source_tracking_info,
  19811. .get = msm_audio_source_tracking_get,
  19812. },
  19813. {
  19814. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19815. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19816. .name = "Sound Focus Voice Tx INT3_MI2S",
  19817. .info = msm_sound_focus_info,
  19818. .get = msm_voice_sound_focus_get,
  19819. .put = msm_voice_sound_focus_put,
  19820. },
  19821. {
  19822. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19823. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19824. .name = "Source Tracking Voice Tx INT3_MI2S",
  19825. .info = msm_source_tracking_info,
  19826. .get = msm_voice_source_tracking_get,
  19827. },
  19828. {
  19829. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19830. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19831. .name = "Sound Focus Audio Tx INT3_MI2S",
  19832. .info = msm_sound_focus_info,
  19833. .get = msm_audio_sound_focus_get,
  19834. .put = msm_audio_sound_focus_put,
  19835. },
  19836. {
  19837. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19838. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19839. .name = "Source Tracking Audio Tx INT3_MI2S",
  19840. .info = msm_source_tracking_info,
  19841. .get = msm_audio_source_tracking_get,
  19842. },
  19843. {
  19844. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19845. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19846. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  19847. .info = msm_sound_focus_info,
  19848. .get = msm_voice_sound_focus_get,
  19849. .put = msm_voice_sound_focus_put,
  19850. },
  19851. {
  19852. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19853. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19854. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  19855. .info = msm_source_tracking_info,
  19856. .get = msm_voice_source_tracking_get,
  19857. },
  19858. {
  19859. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19860. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19861. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  19862. .info = msm_sound_focus_info,
  19863. .get = msm_audio_sound_focus_get,
  19864. .put = msm_audio_sound_focus_put,
  19865. },
  19866. {
  19867. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19868. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19869. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  19870. .info = msm_source_tracking_info,
  19871. .get = msm_audio_source_tracking_get,
  19872. },
  19873. {
  19874. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19875. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19876. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  19877. .info = msm_sound_focus_info,
  19878. .get = msm_voice_sound_focus_get,
  19879. .put = msm_voice_sound_focus_put,
  19880. },
  19881. {
  19882. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19883. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19884. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  19885. .info = msm_source_tracking_info,
  19886. .get = msm_voice_source_tracking_get,
  19887. },
  19888. {
  19889. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19890. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19891. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  19892. .info = msm_sound_focus_info,
  19893. .get = msm_audio_sound_focus_get,
  19894. .put = msm_audio_sound_focus_put,
  19895. },
  19896. {
  19897. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19898. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19899. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  19900. .info = msm_source_tracking_info,
  19901. .get = msm_audio_source_tracking_get,
  19902. },
  19903. {
  19904. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19905. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19906. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  19907. .info = msm_sound_focus_info,
  19908. .get = msm_voice_sound_focus_get,
  19909. .put = msm_voice_sound_focus_put,
  19910. },
  19911. {
  19912. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19913. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19914. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  19915. .info = msm_source_tracking_info,
  19916. .get = msm_voice_source_tracking_get,
  19917. },
  19918. {
  19919. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19920. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19921. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  19922. .info = msm_sound_focus_info,
  19923. .get = msm_audio_sound_focus_get,
  19924. .put = msm_audio_sound_focus_put,
  19925. },
  19926. {
  19927. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19928. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19929. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  19930. .info = msm_source_tracking_info,
  19931. .get = msm_audio_source_tracking_get,
  19932. },
  19933. {
  19934. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  19935. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19936. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  19937. .info = msm_sound_focus_info,
  19938. .get = msm_audio_sound_focus_get,
  19939. .put = msm_audio_sound_focus_put,
  19940. },
  19941. {
  19942. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19943. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19944. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  19945. .info = msm_source_tracking_info,
  19946. .get = msm_audio_source_tracking_get,
  19947. },
  19948. {
  19949. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  19950. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  19951. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  19952. .info = msm_doa_tracking_mon_info,
  19953. .get = msm_doa_tracking_mon_get,
  19954. },
  19955. };
  19956. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  19957. struct snd_ctl_elem_value *ucontrol)
  19958. {
  19959. int ret = 0;
  19960. int item;
  19961. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  19962. pr_debug("%s item is %d\n", __func__,
  19963. ucontrol->value.enumerated.item[0]);
  19964. mutex_lock(&routing_lock);
  19965. item = ucontrol->value.enumerated.item[0];
  19966. if (item < e->items) {
  19967. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  19968. __func__, e->shift_l, e->values[item]);
  19969. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  19970. e->values[item] < MSM_BACKEND_DAI_MAX)
  19971. /* Enable feedback TX path */
  19972. ret = afe_spk_prot_feed_back_cfg(
  19973. msm_bedais[e->values[item]].port_id,
  19974. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  19975. else {
  19976. pr_debug("%s values are out of range item %d\n",
  19977. __func__, e->values[item]);
  19978. /* Disable feedback TX path */
  19979. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  19980. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  19981. else
  19982. ret = -EINVAL;
  19983. }
  19984. } else {
  19985. pr_err("%s item value is out of range item\n", __func__);
  19986. ret = -EINVAL;
  19987. }
  19988. mutex_unlock(&routing_lock);
  19989. return ret;
  19990. }
  19991. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  19992. struct snd_ctl_elem_value *ucontrol)
  19993. {
  19994. int ret = 0;
  19995. int item;
  19996. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  19997. pr_debug("%s item is %d\n", __func__,
  19998. ucontrol->value.enumerated.item[0]);
  19999. mutex_lock(&routing_lock);
  20000. item = ucontrol->value.enumerated.item[0];
  20001. if (item < e->items) {
  20002. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  20003. __func__, e->shift_l, e->values[item]);
  20004. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  20005. e->values[item] < MSM_BACKEND_DAI_MAX)
  20006. /* Enable feedback TX path */
  20007. ret = afe_spk_prot_feed_back_cfg(
  20008. msm_bedais[e->values[item]].port_id,
  20009. msm_bedais[e->shift_l].port_id,
  20010. 1, 1, 1);
  20011. else {
  20012. pr_debug("%s values are out of range item %d\n",
  20013. __func__, e->values[item]);
  20014. /* Disable feedback TX path */
  20015. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  20016. ret = afe_spk_prot_feed_back_cfg(0,
  20017. 0, 0, 0, 0);
  20018. else
  20019. ret = -EINVAL;
  20020. }
  20021. } else {
  20022. pr_err("%s item value is out of range item\n", __func__);
  20023. ret = -EINVAL;
  20024. }
  20025. mutex_unlock(&routing_lock);
  20026. return ret;
  20027. }
  20028. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  20029. struct snd_ctl_elem_value *ucontrol)
  20030. {
  20031. pr_debug("%s\n", __func__);
  20032. return 0;
  20033. }
  20034. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  20035. struct snd_ctl_elem_value *ucontrol)
  20036. {
  20037. pr_debug("%s\n", __func__);
  20038. ucontrol->value.enumerated.item[0] = 0;
  20039. return 0;
  20040. }
  20041. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  20042. "ZERO", "SLIM4_TX"
  20043. };
  20044. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  20045. "ZERO", "SLIM4_TX"
  20046. };
  20047. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  20048. "ZERO", "WSA_CDC_DMA_TX_0"
  20049. };
  20050. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  20051. "ZERO", "WSA_CDC_DMA_TX_0"
  20052. };
  20053. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  20054. "ZERO", "SENARY_TX"
  20055. };
  20056. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  20057. "ZERO", "INT5_MI2S_TX"
  20058. };
  20059. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  20060. "ZERO", "INT5_MI2S_TX"
  20061. };
  20062. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  20063. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  20064. };
  20065. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  20066. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  20067. };
  20068. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  20069. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  20070. };
  20071. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  20072. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  20073. };
  20074. static const int mi2s_rx_vi_fb_tx_value[] = {
  20075. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  20076. };
  20077. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  20078. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  20079. };
  20080. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  20081. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  20082. };
  20083. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  20084. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  20085. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  20086. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  20087. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  20088. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  20089. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  20090. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  20091. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  20092. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  20093. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  20094. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  20095. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  20096. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  20097. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  20098. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  20099. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  20100. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  20101. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  20102. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  20103. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  20104. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20105. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  20106. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  20107. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  20108. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  20109. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  20110. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  20111. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  20112. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  20113. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  20114. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  20115. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20116. spkr_prot_put_vi_lch_port);
  20117. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  20118. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  20119. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20120. spkr_prot_put_vi_rch_port);
  20121. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  20122. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  20123. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  20124. spkr_prot_put_vi_lch_port);
  20125. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  20126. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  20127. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  20128. spkr_prot_put_vi_rch_port);
  20129. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  20130. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  20131. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  20132. spkr_prot_put_vi_lch_port);
  20133. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  20134. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  20135. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  20136. spkr_prot_put_vi_lch_port);
  20137. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  20138. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  20139. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  20140. spkr_prot_put_vi_rch_port);
  20141. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  20142. /* Frontend AIF */
  20143. /* Widget name equals to Front-End DAI name<Need confirmation>,
  20144. * Stream name must contains substring of front-end dai name
  20145. */
  20146. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  20147. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  20148. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  20149. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  20150. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  20151. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  20152. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  20153. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  20154. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  20155. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  20156. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  20157. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  20158. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  20159. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  20160. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  20161. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  20162. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  20163. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  20164. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  20165. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  20166. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  20167. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  20168. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  20169. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  20170. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  20171. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  20172. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  20173. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  20174. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  20175. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  20176. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  20177. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  20178. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  20179. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  20180. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  20181. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  20182. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  20183. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  20184. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  20185. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  20186. "VoiceMMode1 Playback", 0, 0, 0, 0),
  20187. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  20188. "VoiceMMode1 Capture", 0, 0, 0, 0),
  20189. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  20190. "VoiceMMode2 Playback", 0, 0, 0, 0),
  20191. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  20192. "VoiceMMode2 Capture", 0, 0, 0, 0),
  20193. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  20194. 0, 0, 0, 0),
  20195. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  20196. 0, 0, 0, 0),
  20197. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  20198. 0, 0, 0, 0),
  20199. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  20200. 0, 0, 0, 0),
  20201. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  20202. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  20203. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  20204. 0, 0, 0, 0),
  20205. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  20206. 0, 0, 0, 0),
  20207. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  20208. 0, 0, 0, 0),
  20209. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  20210. 0, 0, 0, 0),
  20211. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  20212. 0, 0, 0, 0),
  20213. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  20214. 0, 0, 0, 0),
  20215. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  20216. 0, 0, 0, 0),
  20217. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  20218. 0, 0, 0, 0),
  20219. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  20220. 0, 0, 0, 0),
  20221. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  20222. 0, 0, 0, 0),
  20223. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  20224. 0, 0, 0, 0),
  20225. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  20226. 0, 0, 0, 0),
  20227. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  20228. 0, 0, 0, 0),
  20229. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  20230. 0, 0, 0, 0),
  20231. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  20232. 0, 0, 0, 0),
  20233. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  20234. 0, 0, 0, 0),
  20235. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  20236. 0, 0, 0, 0),
  20237. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  20238. 0, 0, 0, 0),
  20239. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  20240. 0, 0, 0, 0),
  20241. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  20242. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  20243. 0, 0, 0, 0),
  20244. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  20245. "INT0 MI2S_RX Hostless Playback",
  20246. 0, 0, 0, 0),
  20247. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  20248. "INT4 MI2S_RX Hostless Playback",
  20249. 0, 0, 0, 0),
  20250. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  20251. "Primary MI2S_RX Hostless Playback",
  20252. 0, 0, 0, 0),
  20253. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  20254. "Secondary MI2S_RX Hostless Playback",
  20255. 0, 0, 0, 0),
  20256. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  20257. "Tertiary MI2S_RX Hostless Playback",
  20258. 0, 0, 0, 0),
  20259. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  20260. "Quaternary MI2S_RX Hostless Playback",
  20261. 0, 0, 0, 0),
  20262. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  20263. "Quinary MI2S_RX Hostless Playback",
  20264. 0, 0, 0, 0),
  20265. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  20266. "Senary MI2S_RX Hostless Playback",
  20267. 0, 0, 0, 0),
  20268. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  20269. 0, 0, 0, 0),
  20270. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  20271. 0, 0, 0, 0),
  20272. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  20273. 0, 0, 0, 0),
  20274. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  20275. 0, 0, 0, 0),
  20276. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  20277. 0, 0, 0, 0),
  20278. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  20279. "INT3 MI2S_TX Hostless Capture",
  20280. 0, 0, 0, 0),
  20281. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  20282. "Tertiary MI2S_TX Hostless Capture",
  20283. 0, 0, 0, 0),
  20284. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  20285. "Secondary MI2S_TX Hostless Capture",
  20286. 0, 0, 0, 0),
  20287. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  20288. "Primary MI2S_TX Hostless Capture",
  20289. 0, 0, 0, 0),
  20290. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  20291. 0, 0, 0, 0),
  20292. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  20293. 0, 0, 0, 0),
  20294. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  20295. "Quaternary MI2S_TX Hostless Capture",
  20296. 0, 0, 0, 0),
  20297. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  20298. "Quinary MI2S_TX Hostless Capture",
  20299. 0, 0, 0, 0),
  20300. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  20301. "Senary MI2S_TX Hostless Capture",
  20302. 0, 0, 0, 0),
  20303. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  20304. "Primary TDM0 Hostless Playback",
  20305. 0, 0, 0, 0),
  20306. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  20307. "Primary TDM0 Hostless Capture",
  20308. 0, 0, 0, 0),
  20309. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  20310. "Primary TDM1 Hostless Playback",
  20311. 0, 0, 0, 0),
  20312. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  20313. "Primary TDM1 Hostless Capture",
  20314. 0, 0, 0, 0),
  20315. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  20316. "Primary TDM2 Hostless Playback",
  20317. 0, 0, 0, 0),
  20318. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  20319. "Primary TDM2 Hostless Capture",
  20320. 0, 0, 0, 0),
  20321. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  20322. "Primary TDM3 Hostless Playback",
  20323. 0, 0, 0, 0),
  20324. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  20325. "Primary TDM3 Hostless Capture",
  20326. 0, 0, 0, 0),
  20327. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  20328. "Primary TDM4 Hostless Playback",
  20329. 0, 0, 0, 0),
  20330. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  20331. "Primary TDM4 Hostless Capture",
  20332. 0, 0, 0, 0),
  20333. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  20334. "Primary TDM5 Hostless Playback",
  20335. 0, 0, 0, 0),
  20336. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  20337. "Primary TDM5 Hostless Capture",
  20338. 0, 0, 0, 0),
  20339. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  20340. "Primary TDM6 Hostless Playback",
  20341. 0, 0, 0, 0),
  20342. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  20343. "Primary TDM6 Hostless Capture",
  20344. 0, 0, 0, 0),
  20345. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  20346. "Primary TDM7 Hostless Playback",
  20347. 0, 0, 0, 0),
  20348. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  20349. "Primary TDM7 Hostless Capture",
  20350. 0, 0, 0, 0),
  20351. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  20352. "Secondary TDM0 Hostless Playback",
  20353. 0, 0, 0, 0),
  20354. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  20355. "Secondary TDM0 Hostless Capture",
  20356. 0, 0, 0, 0),
  20357. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  20358. "Secondary TDM1 Hostless Playback",
  20359. 0, 0, 0, 0),
  20360. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  20361. "Secondary TDM1 Hostless Capture",
  20362. 0, 0, 0, 0),
  20363. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  20364. "Secondary TDM2 Hostless Playback",
  20365. 0, 0, 0, 0),
  20366. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  20367. "Secondary TDM2 Hostless Capture",
  20368. 0, 0, 0, 0),
  20369. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  20370. "Secondary TDM3 Hostless Playback",
  20371. 0, 0, 0, 0),
  20372. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  20373. "Secondary TDM3 Hostless Capture",
  20374. 0, 0, 0, 0),
  20375. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  20376. "Secondary TDM4 Hostless Playback",
  20377. 0, 0, 0, 0),
  20378. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  20379. "Secondary TDM4 Hostless Capture",
  20380. 0, 0, 0, 0),
  20381. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  20382. "Secondary TDM5 Hostless Playback",
  20383. 0, 0, 0, 0),
  20384. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  20385. "Secondary TDM5 Hostless Capture",
  20386. 0, 0, 0, 0),
  20387. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  20388. "Secondary TDM6 Hostless Playback",
  20389. 0, 0, 0, 0),
  20390. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  20391. "Secondary TDM6 Hostless Capture",
  20392. 0, 0, 0, 0),
  20393. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  20394. "Secondary TDM7 Hostless Playback",
  20395. 0, 0, 0, 0),
  20396. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  20397. "Secondary TDM7 Hostless Capture",
  20398. 0, 0, 0, 0),
  20399. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  20400. "Tertiary TDM0 Hostless Playback",
  20401. 0, 0, 0, 0),
  20402. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  20403. "Tertiary TDM0 Hostless Capture",
  20404. 0, 0, 0, 0),
  20405. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  20406. "Tertiary TDM1 Hostless Playback",
  20407. 0, 0, 0, 0),
  20408. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  20409. "Tertiary TDM1 Hostless Capture",
  20410. 0, 0, 0, 0),
  20411. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  20412. "Tertiary TDM2 Hostless Playback",
  20413. 0, 0, 0, 0),
  20414. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  20415. "Tertiary TDM2 Hostless Capture",
  20416. 0, 0, 0, 0),
  20417. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  20418. "Tertiary TDM3 Hostless Playback",
  20419. 0, 0, 0, 0),
  20420. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  20421. "Tertiary TDM3 Hostless Capture",
  20422. 0, 0, 0, 0),
  20423. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  20424. "Tertiary TDM4 Hostless Playback",
  20425. 0, 0, 0, 0),
  20426. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  20427. "Tertiary TDM4 Hostless Capture",
  20428. 0, 0, 0, 0),
  20429. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  20430. "Tertiary TDM5 Hostless Playback",
  20431. 0, 0, 0, 0),
  20432. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  20433. "Tertiary TDM5 Hostless Capture",
  20434. 0, 0, 0, 0),
  20435. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  20436. "Tertiary TDM6 Hostless Playback",
  20437. 0, 0, 0, 0),
  20438. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  20439. "Tertiary TDM6 Hostless Capture",
  20440. 0, 0, 0, 0),
  20441. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  20442. "Tertiary TDM7 Hostless Playback",
  20443. 0, 0, 0, 0),
  20444. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  20445. "Tertiary TDM7 Hostless Capture",
  20446. 0, 0, 0, 0),
  20447. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  20448. "Quaternary TDM0 Hostless Playback",
  20449. 0, 0, 0, 0),
  20450. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  20451. "Quaternary TDM0 Hostless Capture",
  20452. 0, 0, 0, 0),
  20453. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  20454. "Quaternary TDM1 Hostless Playback",
  20455. 0, 0, 0, 0),
  20456. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  20457. "Quaternary TDM1 Hostless Capture",
  20458. 0, 0, 0, 0),
  20459. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  20460. "Quaternary TDM2 Hostless Playback",
  20461. 0, 0, 0, 0),
  20462. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  20463. "Quaternary TDM2 Hostless Capture",
  20464. 0, 0, 0, 0),
  20465. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  20466. "Quaternary TDM3 Hostless Playback",
  20467. 0, 0, 0, 0),
  20468. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  20469. "Quaternary TDM3 Hostless Capture",
  20470. 0, 0, 0, 0),
  20471. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  20472. "Quaternary TDM4 Hostless Playback",
  20473. 0, 0, 0, 0),
  20474. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  20475. "Quaternary TDM4 Hostless Capture",
  20476. 0, 0, 0, 0),
  20477. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  20478. "Quaternary TDM5 Hostless Playback",
  20479. 0, 0, 0, 0),
  20480. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  20481. "Quaternary TDM5 Hostless Capture",
  20482. 0, 0, 0, 0),
  20483. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  20484. "Quaternary TDM6 Hostless Playback",
  20485. 0, 0, 0, 0),
  20486. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  20487. "Quaternary TDM6 Hostless Capture",
  20488. 0, 0, 0, 0),
  20489. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  20490. "Quaternary TDM7 Hostless Playback",
  20491. 0, 0, 0, 0),
  20492. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  20493. "Quaternary TDM7 Hostless Capture",
  20494. 0, 0, 0, 0),
  20495. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  20496. "Quinary TDM0 Hostless Playback",
  20497. 0, 0, 0, 0),
  20498. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  20499. "Quinary TDM0 Hostless Capture",
  20500. 0, 0, 0, 0),
  20501. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  20502. "Quinary TDM1 Hostless Playback",
  20503. 0, 0, 0, 0),
  20504. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  20505. "Quinary TDM1 Hostless Capture",
  20506. 0, 0, 0, 0),
  20507. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  20508. "Quinary TDM2 Hostless Playback",
  20509. 0, 0, 0, 0),
  20510. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  20511. "Quinary TDM2 Hostless Capture",
  20512. 0, 0, 0, 0),
  20513. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  20514. "Quinary TDM3 Hostless Playback",
  20515. 0, 0, 0, 0),
  20516. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  20517. "Quinary TDM3 Hostless Capture",
  20518. 0, 0, 0, 0),
  20519. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  20520. "Quinary TDM4 Hostless Playback",
  20521. 0, 0, 0, 0),
  20522. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  20523. "Quinary TDM4 Hostless Capture",
  20524. 0, 0, 0, 0),
  20525. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  20526. "Quinary TDM5 Hostless Playback",
  20527. 0, 0, 0, 0),
  20528. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  20529. "Quinary TDM5 Hostless Capture",
  20530. 0, 0, 0, 0),
  20531. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  20532. "Quinary TDM6 Hostless Playback",
  20533. 0, 0, 0, 0),
  20534. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  20535. "Quinary TDM6 Hostless Capture",
  20536. 0, 0, 0, 0),
  20537. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  20538. "Quinary TDM7 Hostless Playback",
  20539. 0, 0, 0, 0),
  20540. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  20541. "Quinary TDM7 Hostless Capture",
  20542. 0, 0, 0, 0),
  20543. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  20544. "Senary TDM0 Hostless Playback",
  20545. 0, 0, 0, 0),
  20546. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  20547. "Senary TDM0 Hostless Capture",
  20548. 0, 0, 0, 0),
  20549. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  20550. "Senary TDM1 Hostless Playback",
  20551. 0, 0, 0, 0),
  20552. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  20553. "Senary TDM1 Hostless Capture",
  20554. 0, 0, 0, 0),
  20555. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  20556. "Senary TDM2 Hostless Playback",
  20557. 0, 0, 0, 0),
  20558. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  20559. "Senary TDM2 Hostless Capture",
  20560. 0, 0, 0, 0),
  20561. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  20562. "Senary TDM3 Hostless Playback",
  20563. 0, 0, 0, 0),
  20564. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  20565. "Senary TDM3 Hostless Capture",
  20566. 0, 0, 0, 0),
  20567. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  20568. "Senary TDM4 Hostless Playback",
  20569. 0, 0, 0, 0),
  20570. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  20571. "Senary TDM4 Hostless Capture",
  20572. 0, 0, 0, 0),
  20573. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  20574. "Senary TDM5 Hostless Playback",
  20575. 0, 0, 0, 0),
  20576. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  20577. "Senary TDM5 Hostless Capture",
  20578. 0, 0, 0, 0),
  20579. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  20580. "Senary TDM6 Hostless Playback",
  20581. 0, 0, 0, 0),
  20582. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  20583. "Senary TDM6 Hostless Capture",
  20584. 0, 0, 0, 0),
  20585. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  20586. "Senary TDM7 Hostless Playback",
  20587. 0, 0, 0, 0),
  20588. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  20589. "Senary TDM7 Hostless Capture",
  20590. 0, 0, 0, 0),
  20591. /* LSM */
  20592. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  20593. 0, 0, 0, 0),
  20594. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  20595. 0, 0, 0, 0),
  20596. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  20597. 0, 0, 0, 0),
  20598. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  20599. 0, 0, 0, 0),
  20600. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  20601. 0, 0, 0, 0),
  20602. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  20603. 0, 0, 0, 0),
  20604. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  20605. 0, 0, 0, 0),
  20606. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  20607. 0, 0, 0, 0),
  20608. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  20609. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  20610. /* Backend AIF */
  20611. /* Stream name equals to backend dai link stream name */
  20612. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  20613. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  20614. 0, 0, 0, 0),
  20615. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  20616. 0, 0, 0, 0),
  20617. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  20618. 0, 0, 0, 0),
  20619. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  20620. 0, 0, 0, 0),
  20621. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  20622. 0, 0, 0, 0),
  20623. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  20624. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  20625. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  20626. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  20627. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  20628. 0, 0, 0, 0),
  20629. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  20630. 0, 0, 0, 0),
  20631. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  20632. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  20633. 0, 0, 0, 0),
  20634. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  20635. 0, 0, 0, 0),
  20636. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  20637. 0, 0, 0, 0),
  20638. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  20639. "Secondary MI2S Playback SD1",
  20640. 0, 0, 0, 0),
  20641. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  20642. 0, 0, 0, 0),
  20643. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  20644. 0, 0, 0, 0),
  20645. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  20646. 0, 0, 0, 0),
  20647. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  20648. 0, 0, 0, 0),
  20649. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  20650. 0, 0, 0, 0),
  20651. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  20652. 0, 0, 0, 0),
  20653. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  20654. 0, 0, 0, 0),
  20655. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  20656. 0, 0, 0, 0),
  20657. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  20658. 0, 0, 0, 0),
  20659. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  20660. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  20661. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  20662. 0, 0, 0, 0),
  20663. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  20664. 0, 0, 0, 0),
  20665. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  20666. 0, 0, 0, 0),
  20667. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  20668. 0, 0, 0, 0),
  20669. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  20670. 0, 0, 0, 0),
  20671. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  20672. 0, 0, 0, 0),
  20673. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  20674. 0, 0, 0, 0),
  20675. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  20676. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  20677. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  20678. 0, 0, 0, 0),
  20679. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  20680. 0, 0, 0, 0),
  20681. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  20682. 0, 0, 0, 0),
  20683. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  20684. 0, 0, 0, 0),
  20685. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  20686. 0, 0, 0, 0),
  20687. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  20688. 0, 0, 0, 0),
  20689. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  20690. 0, 0, 0, 0),
  20691. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  20692. 0, 0, 0, 0),
  20693. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  20694. 0, 0, 0, 0),
  20695. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  20696. 0, 0, 0, 0),
  20697. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  20698. 0, 0, 0, 0),
  20699. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  20700. 0, 0, 0, 0),
  20701. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  20702. 0, 0, 0, 0),
  20703. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  20704. 0, 0, 0, 0),
  20705. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  20706. 0, 0, 0, 0),
  20707. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  20708. 0, 0, 0, 0),
  20709. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  20710. 0, 0, 0, 0),
  20711. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  20712. 0, 0, 0, 0),
  20713. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  20714. 0, 0, 0, 0),
  20715. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  20716. 0, 0, 0, 0),
  20717. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  20718. 0, 0, 0, 0),
  20719. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  20720. 0, 0, 0, 0),
  20721. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  20722. 0, 0, 0, 0),
  20723. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  20724. 0, 0, 0, 0),
  20725. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  20726. 0, 0, 0, 0),
  20727. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  20728. 0, 0, 0, 0),
  20729. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  20730. 0, 0, 0, 0),
  20731. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  20732. 0, 0, 0, 0),
  20733. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  20734. 0, 0, 0, 0),
  20735. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  20736. 0, 0, 0, 0),
  20737. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  20738. 0, 0, 0, 0),
  20739. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  20740. 0, 0, 0, 0),
  20741. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  20742. 0, 0, 0, 0),
  20743. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  20744. 0, 0, 0, 0),
  20745. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  20746. 0, 0, 0, 0),
  20747. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  20748. 0, 0, 0, 0),
  20749. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  20750. 0, 0, 0, 0),
  20751. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  20752. 0, 0, 0, 0),
  20753. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  20754. 0, 0, 0, 0),
  20755. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  20756. 0, 0, 0, 0),
  20757. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  20758. 0, 0, 0, 0),
  20759. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  20760. 0, 0, 0, 0),
  20761. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  20762. 0, 0, 0, 0),
  20763. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  20764. 0, 0, 0, 0),
  20765. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  20766. 0, 0, 0, 0),
  20767. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  20768. 0, 0, 0, 0),
  20769. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  20770. 0, 0, 0, 0),
  20771. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  20772. 0, 0, 0, 0),
  20773. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  20774. 0, 0, 0, 0),
  20775. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  20776. 0, 0, 0, 0),
  20777. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  20778. 0, 0, 0, 0),
  20779. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  20780. 0, 0, 0, 0),
  20781. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  20782. 0, 0, 0, 0),
  20783. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  20784. 0, 0, 0, 0),
  20785. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  20786. 0, 0, 0, 0),
  20787. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  20788. 0, 0, 0, 0),
  20789. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  20790. 0, 0, 0, 0),
  20791. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  20792. 0, 0, 0, 0),
  20793. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  20794. 0, 0, 0, 0),
  20795. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  20796. 0, 0, 0, 0),
  20797. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  20798. 0, 0, 0, 0),
  20799. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  20800. 0, 0, 0, 0),
  20801. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  20802. 0, 0, 0, 0),
  20803. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  20804. 0, 0, 0, 0),
  20805. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  20806. 0, 0, 0, 0),
  20807. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  20808. 0, 0, 0, 0),
  20809. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  20810. 0, 0, 0, 0),
  20811. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  20812. 0, 0, 0, 0),
  20813. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  20814. 0, 0, 0, 0),
  20815. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  20816. 0, 0, 0, 0),
  20817. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  20818. 0, 0, 0, 0),
  20819. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  20820. 0, 0, 0, 0),
  20821. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  20822. 0, 0, 0, 0),
  20823. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  20824. 0, 0, 0, 0),
  20825. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  20826. 0, 0, 0, 0),
  20827. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  20828. 0, 0, 0, 0),
  20829. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  20830. 0, 0, 0, 0),
  20831. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  20832. 0, 0, 0, 0),
  20833. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  20834. 0, 0, 0, 0),
  20835. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  20836. 0, 0, 0, 0),
  20837. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  20838. 0, 0, 0, 0),
  20839. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  20840. 0, 0, 0, 0),
  20841. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  20842. 0, 0, 0, 0),
  20843. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  20844. 0, 0, 0, 0),
  20845. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  20846. 0, 0, 0, 0),
  20847. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  20848. 0, 0, 0, 0),
  20849. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  20850. 0, 0, 0, 0),
  20851. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  20852. 0, 0, 0, 0),
  20853. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  20854. 0, 0, 0, 0),
  20855. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  20856. 0, 0, 0, 0),
  20857. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  20858. 0, 0, 0, 0),
  20859. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  20860. 0, 0, 0, 0),
  20861. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  20862. 0, 0, 0, 0),
  20863. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  20864. 0, 0, 0, 0),
  20865. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  20866. 0, 0, 0, 0),
  20867. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  20868. 0, 0, 0, 0),
  20869. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  20870. 0, 0, 0, 0),
  20871. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  20872. 0, 0, 0, 0),
  20873. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  20874. 0, 0, 0, 0),
  20875. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  20876. 0, 0, 0, 0),
  20877. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  20878. 0, 0, 0, 0),
  20879. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  20880. 0, 0, 0, 0),
  20881. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  20882. 0, 0, 0, 0),
  20883. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  20884. 0, 0, 0, 0),
  20885. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  20886. 0, 0, 0, 0),
  20887. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  20888. 0, 0, 0, 0),
  20889. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  20890. 0, 0, 0, 0),
  20891. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  20892. 0, 0, 0, 0),
  20893. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  20894. 0, 0, 0, 0),
  20895. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  20896. 0, 0, 0, 0),
  20897. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  20898. 0, 0, 0, 0),
  20899. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  20900. 0, 0, 0, 0),
  20901. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  20902. 0, 0, 0, 0),
  20903. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  20904. 0, 0, 0, 0),
  20905. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  20906. 0, 0, 0, 0),
  20907. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  20908. 0, 0, 0, 0),
  20909. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  20910. 0, 0, 0, 0),
  20911. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  20912. 0, 0, 0, 0),
  20913. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  20914. 0, 0, 0, 0),
  20915. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  20916. 0, 0, 0, 0),
  20917. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  20918. 0, 0, 0, 0),
  20919. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  20920. 0, 0, 0, 0),
  20921. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  20922. 0, 0, 0, 0),
  20923. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  20924. 0, 0, 0, 0),
  20925. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  20926. 0, 0, 0, 0),
  20927. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  20928. 0, 0, 0, 0),
  20929. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  20930. 0, 0, 0, 0),
  20931. /* incall */
  20932. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  20933. 0, 0, 0, 0),
  20934. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  20935. 0, 0, 0, 0),
  20936. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  20937. 0, 0, 0, 0),
  20938. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  20939. 0, 0, 0, 0),
  20940. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  20941. 0, 0, 0, 0),
  20942. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  20943. 0, 0, 0, 0),
  20944. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  20945. 0, 0, 0, 0),
  20946. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  20947. 0, 0, 0, 0),
  20948. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  20949. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  20950. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  20951. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  20952. 0, 0, 0, 0),
  20953. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  20954. 0, 0, 0, 0),
  20955. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  20956. 0, 0, 0, 0),
  20957. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  20958. 0, 0, 0, 0),
  20959. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  20960. 0, 0, 0, 0),
  20961. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  20962. 0, 0, 0, 0),
  20963. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  20964. 0, 0, 0, 0),
  20965. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  20966. 0, 0, 0, 0),
  20967. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  20968. 0, 0, 0, 0),
  20969. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  20970. 0, 0, 0, 0),
  20971. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  20972. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  20973. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  20974. 0, 0, 0, 0),
  20975. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  20976. 0, 0, 0, 0),
  20977. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  20978. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  20979. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  20980. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  20981. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  20982. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  20983. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  20984. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  20985. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  20986. /* In- call recording */
  20987. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  20988. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  20989. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  20990. 0, 0, 0, 0),
  20991. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  20992. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  20993. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  20994. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  20995. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  20996. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  20997. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  20998. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  20999. /* Switch Definitions */
  21000. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  21001. &slim_fm_switch_mixer_controls),
  21002. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  21003. &slim1_fm_switch_mixer_controls),
  21004. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  21005. &slim3_fm_switch_mixer_controls),
  21006. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  21007. &slim4_fm_switch_mixer_controls),
  21008. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  21009. &slim6_fm_switch_mixer_controls),
  21010. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21011. &pcm_rx_switch_mixer_controls),
  21012. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21013. &int0_mi2s_rx_switch_mixer_controls),
  21014. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21015. &int4_mi2s_rx_switch_mixer_controls),
  21016. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21017. &pri_mi2s_rx_switch_mixer_controls),
  21018. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21019. &sec_mi2s_rx_switch_mixer_controls),
  21020. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21021. &tert_mi2s_rx_switch_mixer_controls),
  21022. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21023. &quat_mi2s_rx_switch_mixer_controls),
  21024. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21025. &quin_mi2s_rx_switch_mixer_controls),
  21026. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  21027. &sco_slim7_switch_mixer_controls),
  21028. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  21029. &sen_mi2s_rx_switch_mixer_controls),
  21030. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  21031. &hfp_pri_aux_switch_mixer_controls),
  21032. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  21033. &hfp_aux_switch_mixer_controls),
  21034. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  21035. &hfp_int_switch_mixer_controls),
  21036. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  21037. &hfp_slim7_switch_mixer_controls),
  21038. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  21039. &usb_switch_mixer_controls),
  21040. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  21041. &a2dp_slim7_switch_mixer_controls),
  21042. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  21043. &cdc_dma_wsa_switch_mixer_controls),
  21044. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  21045. &cdc_dma_rx_switch_mixer_controls),
  21046. /* Mixer definitions */
  21047. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21048. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  21049. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21050. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  21051. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21052. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  21053. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21054. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  21055. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21056. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  21057. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21058. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  21059. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21060. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  21061. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  21062. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  21063. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  21064. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  21065. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  21066. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  21067. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21068. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  21069. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21070. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  21071. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21072. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  21073. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21074. quaternary_mi2s_rx_mixer_controls,
  21075. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  21076. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21077. tertiary_mi2s_rx_mixer_controls,
  21078. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  21079. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21080. secondary_mi2s_rx_mixer_controls,
  21081. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  21082. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21083. secondary_mi2s_rx2_mixer_controls,
  21084. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  21085. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21086. primary_mi2s_rx_mixer_controls,
  21087. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  21088. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21089. int0_mi2s_rx_mixer_controls,
  21090. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  21091. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21092. int4_mi2s_rx_mixer_controls,
  21093. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  21094. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21095. quinary_mi2s_rx_mixer_controls,
  21096. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  21097. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21098. senary_mi2s_rx_mixer_controls,
  21099. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  21100. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21101. pri_tdm_rx_0_mixer_controls,
  21102. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  21103. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21104. pri_tdm_rx_1_mixer_controls,
  21105. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  21106. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21107. pri_tdm_rx_2_mixer_controls,
  21108. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  21109. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21110. pri_tdm_rx_3_mixer_controls,
  21111. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  21112. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21113. pri_tdm_tx_0_mixer_controls,
  21114. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  21115. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21116. sec_tdm_rx_0_mixer_controls,
  21117. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  21118. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21119. sec_tdm_rx_1_mixer_controls,
  21120. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  21121. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21122. sec_tdm_rx_2_mixer_controls,
  21123. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  21124. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21125. sec_tdm_rx_3_mixer_controls,
  21126. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  21127. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21128. sec_tdm_tx_0_mixer_controls,
  21129. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  21130. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21131. tert_tdm_rx_0_mixer_controls,
  21132. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  21133. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21134. tert_tdm_tx_0_mixer_controls,
  21135. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  21136. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21137. tert_tdm_rx_1_mixer_controls,
  21138. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  21139. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21140. tert_tdm_rx_2_mixer_controls,
  21141. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  21142. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21143. tert_tdm_rx_3_mixer_controls,
  21144. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  21145. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21146. tert_tdm_rx_4_mixer_controls,
  21147. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  21148. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21149. quat_tdm_rx_0_mixer_controls,
  21150. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  21151. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21152. quat_tdm_tx_0_mixer_controls,
  21153. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  21154. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21155. quat_tdm_rx_1_mixer_controls,
  21156. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  21157. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21158. quat_tdm_rx_2_mixer_controls,
  21159. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  21160. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21161. quat_tdm_rx_3_mixer_controls,
  21162. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  21163. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21164. quin_tdm_rx_0_mixer_controls,
  21165. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  21166. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21167. quin_tdm_tx_0_mixer_controls,
  21168. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  21169. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21170. quin_tdm_rx_1_mixer_controls,
  21171. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  21172. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21173. quin_tdm_rx_2_mixer_controls,
  21174. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  21175. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21176. quin_tdm_rx_3_mixer_controls,
  21177. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  21178. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21179. sen_tdm_tx_0_mixer_controls,
  21180. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  21181. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21182. sen_tdm_rx_0_mixer_controls,
  21183. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  21184. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21185. sen_tdm_rx_1_mixer_controls,
  21186. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  21187. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21188. sen_tdm_rx_2_mixer_controls,
  21189. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  21190. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21191. sen_tdm_rx_3_mixer_controls,
  21192. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  21193. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21194. wsa_cdc_dma_rx_0_mixer_controls,
  21195. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  21196. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21197. wsa_cdc_dma_rx_1_mixer_controls,
  21198. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  21199. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21200. rx_cdc_dma_rx_0_mixer_controls,
  21201. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  21202. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21203. rx_cdc_dma_rx_1_mixer_controls,
  21204. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  21205. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21206. rx_cdc_dma_rx_2_mixer_controls,
  21207. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  21208. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21209. rx_cdc_dma_rx_3_mixer_controls,
  21210. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  21211. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21212. rx_cdc_dma_rx_4_mixer_controls,
  21213. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  21214. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21215. rx_cdc_dma_rx_5_mixer_controls,
  21216. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  21217. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21218. rx_cdc_dma_rx_6_mixer_controls,
  21219. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  21220. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21221. rx_cdc_dma_rx_7_mixer_controls,
  21222. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  21223. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  21224. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  21225. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  21226. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  21227. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  21228. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  21229. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  21230. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  21231. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  21232. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  21233. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  21234. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  21235. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  21236. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  21237. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  21238. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  21239. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  21240. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  21241. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  21242. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  21243. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  21244. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  21245. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  21246. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  21247. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  21248. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  21249. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  21250. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  21251. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  21252. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  21253. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  21254. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  21255. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  21256. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  21257. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  21258. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  21259. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21260. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  21261. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21262. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  21263. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21264. tert_auxpcm_rx_mixer_controls,
  21265. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  21266. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21267. quat_auxpcm_rx_mixer_controls,
  21268. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  21269. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21270. quin_auxpcm_rx_mixer_controls,
  21271. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  21272. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21273. sen_auxpcm_rx_mixer_controls,
  21274. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  21275. /* incall */
  21276. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  21277. incall_music_delivery_mixer_controls,
  21278. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  21279. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  21280. incall_music2_delivery_mixer_controls,
  21281. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  21282. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21283. slimbus_4_rx_mixer_controls,
  21284. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  21285. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21286. slimbus_6_rx_mixer_controls,
  21287. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  21288. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21289. usb_audio_rx_mixer_controls,
  21290. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  21291. /* Voice Mixer */
  21292. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  21293. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  21294. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  21295. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  21296. SND_SOC_NOPM, 0, 0,
  21297. sec_i2s_rx_voice_mixer_controls,
  21298. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  21299. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  21300. SND_SOC_NOPM, 0, 0,
  21301. sec_mi2s_rx_voice_mixer_controls,
  21302. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  21303. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  21304. SND_SOC_NOPM, 0, 0,
  21305. slimbus_rx_voice_mixer_controls,
  21306. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  21307. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  21308. SND_SOC_NOPM, 0, 0,
  21309. bt_sco_rx_voice_mixer_controls,
  21310. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  21311. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  21312. SND_SOC_NOPM, 0, 0,
  21313. afe_pcm_rx_voice_mixer_controls,
  21314. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  21315. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  21316. SND_SOC_NOPM, 0, 0,
  21317. aux_pcm_rx_voice_mixer_controls,
  21318. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  21319. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  21320. SND_SOC_NOPM, 0, 0,
  21321. sec_aux_pcm_rx_voice_mixer_controls,
  21322. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  21323. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  21324. SND_SOC_NOPM, 0, 0,
  21325. tert_aux_pcm_rx_voice_mixer_controls,
  21326. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  21327. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  21328. SND_SOC_NOPM, 0, 0,
  21329. quat_aux_pcm_rx_voice_mixer_controls,
  21330. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  21331. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  21332. SND_SOC_NOPM, 0, 0,
  21333. quin_aux_pcm_rx_voice_mixer_controls,
  21334. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  21335. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  21336. SND_SOC_NOPM, 0, 0,
  21337. sen_aux_pcm_rx_voice_mixer_controls,
  21338. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  21339. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  21340. SND_SOC_NOPM, 0, 0,
  21341. hdmi_rx_voice_mixer_controls,
  21342. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  21343. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  21344. SND_SOC_NOPM, 0, 0,
  21345. mi2s_rx_voice_mixer_controls,
  21346. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  21347. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  21348. SND_SOC_NOPM, 0, 0,
  21349. pri_mi2s_rx_voice_mixer_controls,
  21350. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  21351. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  21352. SND_SOC_NOPM, 0, 0,
  21353. int0_mi2s_rx_voice_mixer_controls,
  21354. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  21355. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  21356. SND_SOC_NOPM, 0, 0,
  21357. int4_mi2s_rx_voice_mixer_controls,
  21358. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  21359. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  21360. SND_SOC_NOPM, 0, 0,
  21361. tert_mi2s_rx_voice_mixer_controls,
  21362. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  21363. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  21364. SND_SOC_NOPM, 0, 0,
  21365. quat_mi2s_rx_voice_mixer_controls,
  21366. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  21367. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  21368. SND_SOC_NOPM, 0, 0,
  21369. quin_mi2s_rx_voice_mixer_controls,
  21370. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  21371. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  21372. SND_SOC_NOPM, 0, 0,
  21373. pri_tdm_rx_0_voice_mixer_controls,
  21374. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  21375. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  21376. SND_SOC_NOPM, 0, 0,
  21377. pri_tdm_rx_1_voice_mixer_controls,
  21378. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  21379. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  21380. SND_SOC_NOPM, 0, 0,
  21381. pri_tdm_rx_2_voice_mixer_controls,
  21382. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  21383. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  21384. SND_SOC_NOPM, 0, 0,
  21385. pri_tdm_rx_3_voice_mixer_controls,
  21386. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  21387. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  21388. SND_SOC_NOPM, 0, 0,
  21389. sen_mi2s_rx_voice_mixer_controls,
  21390. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  21391. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  21392. SND_SOC_NOPM, 0, 0,
  21393. quat_tdm_rx_2_voice_mixer_controls,
  21394. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  21395. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  21396. SND_SOC_NOPM, 0, 0,
  21397. wsa_cdc_dma_rx_0_voice_mixer_controls,
  21398. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  21399. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  21400. SND_SOC_NOPM, 0, 0,
  21401. rx_cdc_dma_rx_0_voice_mixer_controls,
  21402. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  21403. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  21404. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  21405. ARRAY_SIZE(tx_voip_mixer_controls)),
  21406. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  21407. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  21408. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  21409. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  21410. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  21411. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  21412. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21413. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  21414. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21415. int_bt_a2dp_rx_mixer_controls,
  21416. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  21417. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21418. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  21419. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  21420. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  21421. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21422. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  21423. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21424. tx_voice2_stub_mixer_controls,
  21425. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  21426. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  21427. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  21428. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  21429. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  21430. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  21431. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  21432. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21433. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  21434. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  21435. SND_SOC_NOPM, 0, 0,
  21436. slimbus_6_rx_voice_mixer_controls,
  21437. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  21438. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21439. slimbus_7_rx_voice_mixer_controls,
  21440. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  21441. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  21442. slimbus_8_rx_voice_mixer_controls,
  21443. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  21444. /* port mixer */
  21445. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  21446. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  21447. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  21448. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  21449. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  21450. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  21451. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  21452. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  21453. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  21454. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  21455. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  21456. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  21457. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  21458. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  21459. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  21460. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  21461. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  21462. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  21463. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  21464. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  21465. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  21466. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21467. sbus_1_rx_port_mixer_controls,
  21468. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  21469. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21470. bt_sco_rx_port_mixer_controls,
  21471. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  21472. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  21473. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  21474. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  21475. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  21476. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  21477. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  21478. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  21479. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  21480. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  21481. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  21482. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  21483. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  21484. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  21485. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  21486. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  21487. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  21488. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  21489. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  21490. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  21491. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  21492. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  21493. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21494. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  21495. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21496. primary_mi2s_rx_port_mixer_controls,
  21497. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  21498. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21499. sec_mi2s_rx_port_mixer_controls,
  21500. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  21501. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21502. tert_mi2s_rx_port_mixer_controls,
  21503. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  21504. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21505. quat_mi2s_rx_port_mixer_controls,
  21506. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  21507. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21508. quin_mi2s_rx_port_mixer_controls,
  21509. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  21510. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21511. sen_mi2s_rx_port_mixer_controls,
  21512. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  21513. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21514. pri_tdm_rx_0_port_mixer_controls,
  21515. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  21516. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21517. pri_tdm_rx_1_port_mixer_controls,
  21518. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  21519. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21520. pri_tdm_rx_2_port_mixer_controls,
  21521. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  21522. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21523. pri_tdm_rx_3_port_mixer_controls,
  21524. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  21525. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21526. sec_tdm_rx_0_port_mixer_controls,
  21527. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  21528. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21529. sec_tdm_rx_1_port_mixer_controls,
  21530. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  21531. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21532. sec_tdm_rx_2_port_mixer_controls,
  21533. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  21534. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21535. sec_tdm_rx_3_port_mixer_controls,
  21536. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  21537. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21538. sec_tdm_rx_7_port_mixer_controls,
  21539. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  21540. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21541. tert_tdm_rx_0_port_mixer_controls,
  21542. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  21543. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21544. tert_tdm_rx_1_port_mixer_controls,
  21545. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  21546. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21547. tert_tdm_rx_2_port_mixer_controls,
  21548. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  21549. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21550. tert_tdm_rx_3_port_mixer_controls,
  21551. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  21552. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21553. quat_tdm_rx_0_port_mixer_controls,
  21554. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  21555. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21556. quat_tdm_rx_1_port_mixer_controls,
  21557. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  21558. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21559. quat_tdm_rx_2_port_mixer_controls,
  21560. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  21561. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21562. quat_tdm_rx_3_port_mixer_controls,
  21563. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  21564. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  21565. quat_tdm_rx_7_port_mixer_controls,
  21566. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  21567. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21568. quin_tdm_rx_0_port_mixer_controls,
  21569. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  21570. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21571. quin_tdm_rx_1_port_mixer_controls,
  21572. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  21573. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21574. quin_tdm_rx_2_port_mixer_controls,
  21575. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  21576. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21577. quin_tdm_rx_3_port_mixer_controls,
  21578. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  21579. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21580. sen_tdm_rx_0_port_mixer_controls,
  21581. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  21582. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  21583. sen_tdm_rx_1_port_mixer_controls,
  21584. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  21585. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  21586. sen_tdm_rx_2_port_mixer_controls,
  21587. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  21588. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  21589. sen_tdm_rx_3_port_mixer_controls,
  21590. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  21591. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21592. int0_mi2s_rx_port_mixer_controls,
  21593. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  21594. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  21595. int4_mi2s_rx_port_mixer_controls,
  21596. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  21597. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21598. wsa_cdc_dma_rx_0_port_mixer_controls,
  21599. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  21600. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  21601. rx_cdc_dma_rx_0_port_mixer_controls,
  21602. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  21603. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  21604. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  21605. ARRAY_SIZE(tx_qchat_mixer_controls)),
  21606. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  21607. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  21608. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  21609. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  21610. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  21611. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  21612. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  21613. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  21614. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  21615. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  21616. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  21617. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  21618. /* lsm mixer definitions */
  21619. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  21620. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  21621. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  21622. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  21623. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  21624. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  21625. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  21626. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  21627. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  21628. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  21629. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  21630. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  21631. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  21632. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  21633. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  21634. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  21635. /* Virtual Pins to force backends ON atm */
  21636. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  21637. SND_SOC_DAPM_INPUT("BE_IN"),
  21638. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21639. &slim0_rx_vi_fb_lch_mux),
  21640. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21641. &slim0_rx_vi_fb_rch_mux),
  21642. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  21643. &wsa_rx_0_vi_fb_lch_mux),
  21644. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  21645. &wsa_rx_0_vi_fb_rch_mux),
  21646. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  21647. &mi2s_rx_vi_fb_mux),
  21648. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21649. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  21650. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  21651. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  21652. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  21653. &voc_ext_ec_mux),
  21654. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  21655. &ext_ec_ref_mux_ul1),
  21656. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  21657. &ext_ec_ref_mux_ul2),
  21658. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  21659. &ext_ec_ref_mux_ul3),
  21660. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  21661. &ext_ec_ref_mux_ul4),
  21662. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  21663. &ext_ec_ref_mux_ul5),
  21664. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  21665. &ext_ec_ref_mux_ul6),
  21666. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  21667. &ext_ec_ref_mux_ul8),
  21668. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  21669. &ext_ec_ref_mux_ul9),
  21670. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  21671. &ext_ec_ref_mux_ul10),
  21672. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  21673. &ext_ec_ref_mux_ul16),
  21674. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  21675. &ext_ec_ref_mux_ul17),
  21676. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  21677. &ext_ec_ref_mux_ul18),
  21678. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  21679. &ext_ec_ref_mux_ul19),
  21680. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  21681. &ext_ec_ref_mux_ul28),
  21682. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  21683. &ext_ec_ref_mux_ul29),
  21684. };
  21685. static const struct snd_soc_dapm_route intercon[] = {
  21686. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21687. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21688. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21689. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21690. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21691. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21692. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21693. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21694. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21695. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21696. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21697. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21698. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21699. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21700. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21701. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21702. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21703. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  21704. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21705. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21706. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21707. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21708. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21709. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21710. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21711. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21712. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21713. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21714. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21715. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21716. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21717. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21718. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21719. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21720. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21721. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  21722. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21723. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21724. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21725. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21726. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21727. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21728. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21729. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21730. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21731. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21732. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21733. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21734. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21735. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21736. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21737. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21738. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21739. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  21740. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21741. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21742. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21743. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21744. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21745. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21746. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21747. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21748. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21749. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21750. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21751. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21752. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21753. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21754. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21755. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21756. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21757. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  21758. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  21759. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  21760. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  21761. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  21762. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  21763. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  21764. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  21765. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  21766. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  21767. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  21768. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  21769. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  21770. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  21771. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  21772. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  21773. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  21774. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  21775. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  21776. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21777. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21778. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21779. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21780. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21781. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21782. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21783. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21784. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21785. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21786. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21787. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21788. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21789. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21790. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21791. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21792. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21793. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  21794. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21795. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21796. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21797. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21798. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21799. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21800. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21801. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21802. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21803. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21804. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21805. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21806. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21807. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21808. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21809. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21810. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21811. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  21812. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21813. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21814. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21815. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21816. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21817. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21818. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21819. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21820. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21821. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21822. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21823. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21824. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21825. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21826. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21827. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21828. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21829. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  21830. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21831. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21832. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21833. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21834. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21835. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21836. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21837. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21838. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21839. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21840. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21841. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21842. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21843. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21844. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21845. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21846. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21847. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  21848. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21849. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21850. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21851. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21852. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21853. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21854. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21855. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21856. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21857. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21858. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21859. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21860. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21861. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21862. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21863. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21864. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21865. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  21866. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21867. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21868. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21869. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21870. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21871. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21872. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21873. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21874. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21875. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21876. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21877. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21878. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21879. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21880. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21881. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21882. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21883. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  21884. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21885. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21886. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21887. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21888. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21889. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21890. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21891. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21892. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21893. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21894. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21895. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21896. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21897. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21898. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21899. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21900. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21901. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  21902. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21903. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21904. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21905. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21906. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21907. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21908. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21909. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21910. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21911. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21912. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21913. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21914. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21915. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21916. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21917. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21918. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21919. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  21920. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21921. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21922. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21923. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21924. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21925. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21926. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21927. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21928. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21929. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21930. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21931. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21932. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21933. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21934. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21935. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21936. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21937. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  21938. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  21939. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  21940. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  21941. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  21942. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  21943. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  21944. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  21945. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  21946. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  21947. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  21948. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  21949. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  21950. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  21951. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  21952. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  21953. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  21954. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  21955. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  21956. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  21957. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  21958. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  21959. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  21960. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  21961. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  21962. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  21963. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  21964. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  21965. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  21966. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  21967. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  21968. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  21969. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  21970. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  21971. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  21972. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  21973. {"HDMI", NULL, "HDMI Mixer"},
  21974. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  21975. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  21976. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  21977. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  21978. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  21979. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  21980. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  21981. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  21982. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  21983. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  21984. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  21985. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  21986. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  21987. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  21988. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  21989. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  21990. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  21991. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  21992. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  21993. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  21994. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  21995. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  21996. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  21997. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  21998. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  21999. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  22000. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  22001. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  22002. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  22003. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  22004. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  22005. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  22006. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  22007. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  22008. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  22009. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  22010. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22011. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22012. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22013. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22014. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22015. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22016. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22017. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22018. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22019. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22020. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22021. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22022. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22023. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22024. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22025. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22026. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22027. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  22028. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22029. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22030. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22031. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22032. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22033. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22034. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22035. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22036. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22037. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22038. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22039. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22040. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22041. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22042. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22043. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22044. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22045. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  22046. /* incall */
  22047. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  22048. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  22049. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  22050. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  22051. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  22052. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22053. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22054. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22055. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22056. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  22057. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22058. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22059. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22060. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22061. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  22062. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22063. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22064. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22065. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22066. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22067. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22068. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22069. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22070. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22071. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22072. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22073. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22074. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22075. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22076. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22077. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22078. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22079. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  22080. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22081. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22082. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22083. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22084. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22085. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22086. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22087. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22088. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22089. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22090. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22091. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22092. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22093. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22094. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22095. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22096. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22097. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  22098. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22099. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22100. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22101. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22102. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22103. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22104. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22105. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22106. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22107. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22108. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22109. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22110. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22111. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22112. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22113. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22114. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22115. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  22116. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22117. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22118. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22119. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22120. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22121. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22122. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22123. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22124. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22125. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22126. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22127. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22128. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22129. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22130. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22131. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22132. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22133. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  22134. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22135. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22136. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  22137. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22138. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22139. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  22140. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  22141. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22142. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22143. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22144. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22145. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22146. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22147. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22148. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22149. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22150. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22151. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22152. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22153. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22154. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22155. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22156. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22157. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22158. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22159. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22160. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22161. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22162. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22163. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22164. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22165. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22166. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22167. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22168. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22169. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22170. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22171. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22172. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22173. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22174. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22175. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22176. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22177. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22178. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22179. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22180. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22181. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22182. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22183. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22184. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22185. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22186. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22187. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22188. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22189. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22190. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22191. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22192. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22193. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22194. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22195. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22196. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  22197. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  22198. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22199. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22200. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22201. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  22202. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22203. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22204. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22205. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  22206. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22207. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22208. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22209. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22210. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22211. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22212. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22213. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22214. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  22215. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22216. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22217. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22218. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22219. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22220. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22221. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22222. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22223. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  22224. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22225. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22226. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22227. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22228. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22229. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22230. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22231. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22232. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22233. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22234. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22235. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22236. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22237. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22238. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22239. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22240. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  22241. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22242. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22243. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22244. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22245. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22246. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22247. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22248. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22249. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22250. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22251. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22252. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22253. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22254. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22255. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22256. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  22257. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22258. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22259. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22260. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22261. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22262. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22263. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22264. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22265. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22266. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22267. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22268. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22269. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22270. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22271. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22272. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  22273. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22274. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  22275. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22276. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  22277. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22278. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22279. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22280. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22281. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22282. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22283. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22284. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22285. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22286. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22287. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22288. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22289. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22290. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22291. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22292. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  22293. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  22294. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22295. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22296. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22297. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22298. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22299. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22300. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22301. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22302. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22303. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22304. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22305. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22306. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22307. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22308. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22309. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  22310. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22311. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22312. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22313. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22314. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22315. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22316. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22317. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22318. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22319. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22320. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22321. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22322. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22323. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22324. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22325. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  22326. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22327. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22328. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22329. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22330. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22331. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22332. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22333. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22334. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22335. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22336. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22337. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22338. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22339. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22340. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22341. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22342. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22343. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  22344. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  22345. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  22346. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  22347. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  22348. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  22349. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  22350. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  22351. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  22352. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  22353. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  22354. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  22355. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  22356. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  22357. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  22358. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  22359. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  22360. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22361. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22362. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22363. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22364. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22365. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22366. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22367. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22368. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22369. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22370. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22371. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22372. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22373. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22374. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22375. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22376. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22377. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  22378. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22379. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22380. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22381. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22382. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22383. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22384. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22385. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22386. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22387. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22388. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22389. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22390. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22391. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22392. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22393. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22394. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22395. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  22396. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22397. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22398. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22399. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22400. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22401. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22402. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22403. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22404. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22405. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22406. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22407. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22408. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22409. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22410. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22411. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22412. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22413. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  22414. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22415. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22416. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22417. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22418. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22419. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22420. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22421. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22422. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22423. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22424. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22425. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22426. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22427. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22428. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22429. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22430. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22431. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  22432. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22433. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22434. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22435. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22436. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22437. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22438. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22439. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22440. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22441. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22442. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22443. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22444. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22445. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22446. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22447. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22448. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  22449. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22450. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22451. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22452. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22453. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22454. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22455. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22456. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22457. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22458. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22459. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22460. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22461. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22462. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22463. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22464. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22465. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22466. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  22467. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22468. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22469. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22470. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22471. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22472. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22473. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22474. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22475. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22476. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22477. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22478. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22479. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22480. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22481. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22482. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22483. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22484. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  22485. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22486. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22487. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22488. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22489. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22490. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22491. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22492. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22493. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22494. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22495. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22496. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22497. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22498. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22499. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22500. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22501. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22502. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  22503. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22504. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22505. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22506. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22507. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22508. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22509. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22510. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22511. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22512. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22513. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22514. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22515. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22516. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22517. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22518. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22519. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22520. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  22521. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22522. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22523. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22524. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22525. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22526. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22527. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22528. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22529. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22530. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22531. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22532. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22533. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22534. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22535. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22536. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22537. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  22538. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22539. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22540. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22541. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22542. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22543. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22544. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22545. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22546. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22547. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22548. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22549. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22550. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22551. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22552. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22553. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22554. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22555. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  22556. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22557. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22558. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22559. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22560. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22561. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22562. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22563. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22564. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22565. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22566. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22567. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22568. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22569. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22570. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22571. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22572. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  22573. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22574. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22575. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22576. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22577. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22578. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22579. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22580. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22581. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22582. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22583. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22584. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22585. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22586. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22587. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22588. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22589. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22590. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  22591. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22592. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22593. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22594. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22595. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22596. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22597. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22598. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22599. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22600. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22601. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22602. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22603. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22604. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22605. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22606. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22607. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22608. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  22609. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22610. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22611. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22612. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22613. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22614. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22615. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22616. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22617. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22618. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22619. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22620. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22621. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22622. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22623. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22624. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22625. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22626. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  22627. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22628. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22629. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22630. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22631. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22632. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22633. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22634. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22635. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22636. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22637. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22638. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22639. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22640. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22641. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22642. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22643. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22644. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  22645. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22646. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22647. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22648. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22649. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22650. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22651. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22652. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22653. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22654. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22655. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22656. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22657. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22658. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22659. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22660. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22661. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22662. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22663. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  22664. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22665. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22666. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22667. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22668. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22669. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22670. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22671. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22672. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22673. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22674. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22675. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22676. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22677. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22678. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22679. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22680. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  22681. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22682. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22683. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22684. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22685. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22686. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22687. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22688. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22689. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22690. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22691. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22692. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22693. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22694. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22695. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22696. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22697. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22698. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22699. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  22700. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22701. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22702. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22703. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22704. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22705. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22706. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22707. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22708. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22709. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22710. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22711. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22712. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22713. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22714. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22715. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22716. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22717. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22718. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  22719. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22720. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22721. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22722. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22723. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22724. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22725. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22726. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22727. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22728. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22729. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22730. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22731. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22732. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22733. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22734. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22735. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22736. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22737. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  22738. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22739. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22740. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22741. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22742. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22743. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22744. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22745. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22746. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22747. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22748. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22749. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22750. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22751. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22752. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22753. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22754. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22755. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22756. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  22757. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22758. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22759. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22760. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22761. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22762. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22763. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22764. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22765. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22766. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22767. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22768. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22769. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22770. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22771. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22772. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22773. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  22774. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22775. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22776. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22777. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22778. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22779. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22780. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22781. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22782. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22783. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22784. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22785. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22786. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22787. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22788. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22789. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22790. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22791. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22792. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  22793. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22794. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22795. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22796. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22797. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22798. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22799. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22800. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22801. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22802. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22803. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22804. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22805. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22806. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22807. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22808. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22809. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22810. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22811. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  22812. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22813. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22814. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22815. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22816. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22817. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22818. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22819. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22820. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22821. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22822. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22823. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22824. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22825. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22826. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22827. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22828. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22829. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22830. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  22831. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22832. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22833. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22834. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22835. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22836. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22837. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22838. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22839. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22840. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22841. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22842. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22843. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22844. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22845. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22846. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22847. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22848. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22849. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  22850. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22851. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22852. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22853. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22854. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22855. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22856. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22857. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22858. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22859. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22860. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22861. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22862. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22863. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22864. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22865. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22866. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  22867. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22868. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22869. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22870. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22871. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22872. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22873. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22874. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22875. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22876. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22877. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22878. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22879. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22880. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22881. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22882. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22883. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22884. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22885. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  22886. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22887. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22888. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22889. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22890. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22891. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22892. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22893. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22894. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22895. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22896. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22897. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22898. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22899. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22900. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22901. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22902. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22903. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22904. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  22905. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  22906. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  22907. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  22908. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  22909. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  22910. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  22911. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  22912. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  22913. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  22914. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  22915. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  22916. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  22917. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  22918. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  22919. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  22920. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  22921. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  22922. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  22923. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  22924. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  22925. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  22926. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  22927. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  22928. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  22929. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  22930. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  22931. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22932. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22933. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  22934. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22935. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  22936. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22937. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  22938. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22939. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22940. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22941. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22942. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22943. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22944. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22945. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22946. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22947. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22948. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  22949. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22950. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  22951. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22952. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22953. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22954. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  22955. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  22956. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  22957. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22958. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22959. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  22960. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  22961. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22962. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22963. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22964. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  22965. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  22966. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  22967. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  22968. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  22969. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  22970. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  22971. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22972. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  22973. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22974. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  22975. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22976. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  22977. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  22978. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  22979. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  22980. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22981. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22982. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22983. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  22984. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22985. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22986. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22987. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22988. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  22989. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22990. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22991. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22992. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22993. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22994. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22995. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22996. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22997. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22998. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  22999. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23000. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23001. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23002. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23003. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23004. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23005. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23006. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23007. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23008. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23009. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23010. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23011. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23012. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23013. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23014. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23015. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23016. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23017. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23018. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23019. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23020. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23021. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23022. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23023. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23024. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23025. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23026. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23027. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23028. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23029. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23030. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23031. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23032. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23033. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23034. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23035. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23036. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23037. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23038. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23039. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23040. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23041. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23042. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23043. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23044. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23045. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23046. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23047. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23048. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23049. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23050. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23051. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23052. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23053. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23054. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23055. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23056. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23057. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23058. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23059. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23060. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23061. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23062. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23063. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23064. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23065. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23066. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23067. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23068. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23069. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23070. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23071. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23072. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23073. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23074. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23075. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23076. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23077. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23078. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23079. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23080. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23081. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23082. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23083. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23084. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23085. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23086. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23087. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23088. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23089. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23090. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23091. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23092. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23093. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23094. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23095. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23096. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23097. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23098. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23099. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23100. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23101. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23102. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23103. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23104. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23105. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23106. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23107. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23108. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23109. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23110. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23111. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23112. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23113. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23114. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23115. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23116. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23117. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23118. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23119. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23120. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23121. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23122. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23123. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23124. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23125. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23126. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23127. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23128. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23129. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23130. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23131. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23132. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23133. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23134. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23135. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23136. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23137. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23138. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23139. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23140. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23141. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23142. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23143. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23144. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23145. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23146. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23147. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23148. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23149. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23150. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23151. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23152. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23153. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23154. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23155. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23156. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23157. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23158. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23159. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23160. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23161. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23162. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23163. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23164. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23165. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23166. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23167. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23168. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23169. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23170. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23171. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23172. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23173. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23174. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23175. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23176. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23177. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23178. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23179. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23180. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23181. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23182. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23183. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23184. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23185. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23186. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23187. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23188. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23189. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23190. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23191. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23192. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23193. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23194. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23195. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23196. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23197. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23198. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23199. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23200. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23201. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23202. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23203. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23204. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23205. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23206. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23207. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23208. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23209. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23210. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23211. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23212. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23213. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23214. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23215. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23216. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23217. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23218. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23219. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23220. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23221. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23222. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23223. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23224. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23225. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23226. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23227. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23228. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23229. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23230. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23231. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23232. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23233. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23234. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23235. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23236. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23237. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23238. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23239. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23240. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23241. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23242. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23243. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23244. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23245. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23246. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23247. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23248. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23249. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23250. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23251. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23252. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23253. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23254. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23255. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23256. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23257. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23258. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23259. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23260. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23261. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23262. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23263. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23264. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23265. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23266. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23267. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23268. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23269. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23270. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23271. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23272. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23273. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23274. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23275. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23276. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23277. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23278. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23279. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23280. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23281. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23282. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23283. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23284. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23285. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23286. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23287. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23288. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23289. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23290. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23291. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23292. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23293. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23294. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23295. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23296. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23297. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23298. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23299. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23300. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23301. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23302. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23303. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23304. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23305. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23306. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23307. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23308. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23309. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23310. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23311. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23312. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23313. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23314. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23315. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23316. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23317. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23318. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23319. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23320. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23321. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23322. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23323. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23324. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23325. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23326. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23327. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23328. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23329. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23330. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23331. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23332. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23333. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23334. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23335. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23336. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23337. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23338. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23339. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23340. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23341. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23342. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23343. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23344. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23345. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23346. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23347. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23348. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23349. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23350. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23351. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23352. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23353. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23354. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23355. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23356. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23357. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23358. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23359. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23360. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23361. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23362. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23363. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23364. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23365. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23366. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23367. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23368. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23369. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23370. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  23371. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  23372. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23373. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23374. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23375. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23376. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23377. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23378. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23379. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23380. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23381. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23382. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23383. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23384. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23385. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23386. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23387. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23388. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  23389. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  23390. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  23391. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  23392. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  23393. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  23394. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  23395. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  23396. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23397. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23398. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23399. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23400. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23401. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23402. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23403. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23404. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23405. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23406. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23407. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23408. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23409. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23410. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23411. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  23412. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23413. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  23414. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  23415. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  23416. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23417. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23418. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23419. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23420. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23421. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  23422. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23423. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23424. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23425. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23426. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23427. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23428. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23429. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23430. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23431. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23432. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  23433. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  23434. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  23435. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  23436. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23437. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  23438. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  23439. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  23440. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23441. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  23442. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  23443. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  23444. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  23445. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23446. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  23447. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  23448. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  23449. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  23450. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  23451. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  23452. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  23453. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  23454. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  23455. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23456. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23457. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23458. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23459. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23460. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23461. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  23462. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  23463. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23464. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23465. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23466. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23467. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23468. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23469. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23470. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23471. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23472. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23473. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23474. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23475. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23476. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23477. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23478. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23479. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23480. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23481. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23482. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23483. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23484. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23485. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23486. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23487. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23488. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23489. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23490. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23491. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23492. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  23493. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  23494. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  23495. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  23496. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  23497. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  23498. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  23499. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23500. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23501. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23502. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23503. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23504. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23505. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23506. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23507. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23508. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23509. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23510. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23511. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23512. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23513. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23514. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23515. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23516. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  23517. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23518. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23519. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23520. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23521. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23522. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23523. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23524. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23525. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23526. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23527. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23528. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23529. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23530. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23531. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23532. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23533. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  23534. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  23535. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23536. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23537. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23538. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23539. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23540. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23541. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23542. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23543. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23544. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23545. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23546. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23547. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23548. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23549. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23550. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23551. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  23552. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23553. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23554. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23555. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23556. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23557. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23558. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23559. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23560. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23561. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23562. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23563. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23564. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23565. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23566. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23567. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23568. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  23569. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23570. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23571. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23572. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23573. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23574. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23575. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23576. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23577. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23578. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23579. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23580. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  23581. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23582. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23583. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23584. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23585. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23586. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23587. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23588. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23589. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23590. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23591. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23592. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23593. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23594. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23595. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23596. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23597. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23598. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23599. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23600. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23601. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23602. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23603. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  23604. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  23605. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  23606. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  23607. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  23608. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  23609. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  23610. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  23611. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  23612. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  23613. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  23614. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  23615. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  23616. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  23617. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  23618. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  23619. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  23620. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  23621. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  23622. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  23623. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23624. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23625. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23626. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23627. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23628. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23629. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23630. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23631. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23632. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23633. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23634. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23635. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23636. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23637. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23638. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23639. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23640. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  23641. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23642. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23643. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23644. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23645. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23646. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23647. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23648. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23649. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23650. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23651. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23652. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23653. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23654. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23655. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23656. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23657. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  23658. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  23659. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23660. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23661. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23662. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23663. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23664. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23665. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23666. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23667. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23668. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23669. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23670. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23671. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23672. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23673. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23674. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23675. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  23676. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23677. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23678. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23679. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23680. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23681. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23682. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23683. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23684. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23685. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23686. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23687. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23688. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23689. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23690. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23691. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23692. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  23693. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23694. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23695. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23696. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23697. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23698. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23699. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23700. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23701. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23702. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23703. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23704. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23705. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23706. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23707. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23708. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23709. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  23710. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23711. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23712. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23713. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23714. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23715. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23716. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23717. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23718. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23719. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23720. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23721. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23722. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23723. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23724. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23725. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23726. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  23727. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23728. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23729. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23730. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23731. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23732. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  23733. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23734. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23735. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23736. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  23737. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23738. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23739. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23740. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23741. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23742. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23743. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23744. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  23745. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23746. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23747. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23748. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23749. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23750. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  23751. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23752. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23753. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23754. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23755. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23756. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  23757. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23758. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23759. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23760. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23761. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23762. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  23763. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23764. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23765. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23766. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23767. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23768. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  23769. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  23770. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23771. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23772. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23773. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23774. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  23775. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23776. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23777. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23778. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23779. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23780. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  23781. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23782. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23783. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23784. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23785. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23786. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  23787. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23788. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23789. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23790. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23791. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23792. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  23793. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23794. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23795. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23796. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23797. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23798. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  23799. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23800. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23801. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23802. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23803. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23804. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  23805. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23806. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23807. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23808. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23809. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23810. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  23811. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23812. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23813. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23814. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23815. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23816. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  23817. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23818. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23819. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23820. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23821. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23822. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  23823. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23824. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23825. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23826. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23827. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23828. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  23829. {"HDMI", NULL, "HDMI_DL_HL"},
  23830. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23831. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23832. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23833. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23834. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23835. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23836. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23837. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  23838. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23839. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23840. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23841. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23842. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23843. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23844. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23845. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  23846. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23847. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23848. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23849. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23850. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23851. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  23852. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23853. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23854. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23855. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23856. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23857. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  23858. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23859. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23860. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23861. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23862. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23863. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23864. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23865. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  23866. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23867. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23868. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23869. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23870. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23871. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23872. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  23873. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23874. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23875. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23876. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23877. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23878. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23879. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  23880. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  23881. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23882. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23883. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23884. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23885. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23886. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23887. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23888. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  23889. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  23890. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23891. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23892. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23893. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23894. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23895. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23896. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23897. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  23898. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  23899. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23900. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23901. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23902. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23903. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23904. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23905. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23906. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  23907. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  23908. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  23909. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  23910. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  23911. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23912. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  23913. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23914. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23915. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  23916. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  23917. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  23918. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23919. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23920. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  23921. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23922. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  23923. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23924. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23925. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  23926. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  23927. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  23928. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  23929. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23930. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23931. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23932. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23933. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  23934. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23935. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  23936. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  23937. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  23938. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  23939. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23940. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23941. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23942. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23943. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23944. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23945. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  23946. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  23947. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  23948. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23949. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  23950. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23951. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23952. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23953. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23954. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23955. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23956. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23957. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23958. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23959. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23960. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23961. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23962. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23963. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23964. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23965. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23966. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23967. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23968. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23969. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23970. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23971. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23972. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23973. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23974. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23975. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23976. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23977. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23978. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23979. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23980. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23981. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23982. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23983. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  23984. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  23985. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  23986. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  23987. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  23988. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  23989. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  23990. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  23991. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23992. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23993. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23994. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23995. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  23996. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  23997. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  23998. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  23999. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24000. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24001. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24002. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24003. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24004. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24005. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24006. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24007. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24008. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24009. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24010. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24011. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24012. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24013. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24014. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24015. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24016. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24017. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24018. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24019. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24020. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24021. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24022. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24023. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  24024. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  24025. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  24026. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  24027. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  24028. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  24029. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  24030. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  24031. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  24032. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  24033. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  24034. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  24035. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  24036. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  24037. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  24038. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  24039. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  24040. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  24041. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  24042. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  24043. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  24044. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  24045. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  24046. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  24047. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  24048. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  24049. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  24050. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  24051. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  24052. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  24053. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  24054. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  24055. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  24056. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  24057. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  24058. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  24059. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  24060. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  24061. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  24062. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  24063. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  24064. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  24065. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  24066. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  24067. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  24068. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  24069. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  24070. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  24071. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  24072. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  24073. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  24074. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  24075. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  24076. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  24077. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  24078. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  24079. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  24080. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  24081. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  24082. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  24083. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  24084. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  24085. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  24086. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  24087. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  24088. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  24089. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  24090. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  24091. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  24092. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  24093. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  24094. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  24095. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  24096. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  24097. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  24098. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  24099. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  24100. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  24101. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  24102. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  24103. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  24104. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  24105. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  24106. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  24107. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  24108. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  24109. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  24110. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  24111. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  24112. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  24113. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  24114. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  24115. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  24116. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  24117. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  24118. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  24119. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  24120. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  24121. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  24122. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  24123. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  24124. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  24125. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  24126. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  24127. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  24128. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  24129. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24130. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  24131. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  24132. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  24133. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  24134. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  24135. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24136. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24137. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24138. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24139. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24140. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24141. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24142. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24143. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24144. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24145. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24146. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24147. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24148. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  24149. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24150. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24151. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24152. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24153. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24154. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24155. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24156. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24157. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24158. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24159. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24160. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24161. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24162. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  24163. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24164. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24165. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24166. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24167. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24168. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24169. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24170. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24171. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24172. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24173. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24174. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24175. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24176. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  24177. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24178. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24179. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24180. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24181. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24182. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24183. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24184. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24185. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24186. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24187. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24188. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24189. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24190. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  24191. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24192. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24193. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24194. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24195. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24196. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24197. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24198. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24199. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24200. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24201. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24202. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24203. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24204. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  24205. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24206. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24207. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24208. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24209. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24210. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24211. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24212. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24213. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24214. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24215. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24216. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  24217. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24218. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24219. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24220. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24221. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24222. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24223. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24224. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24225. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24226. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24227. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24228. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  24229. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  24230. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  24231. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  24232. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  24233. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  24234. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24235. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24236. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24237. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24238. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24239. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24240. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  24241. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  24242. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  24243. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  24244. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  24245. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  24246. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  24247. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  24248. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  24249. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  24250. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  24251. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  24252. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  24253. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  24254. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  24255. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  24256. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  24257. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  24258. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  24259. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  24260. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  24261. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  24262. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  24263. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  24264. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  24265. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  24266. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  24267. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  24268. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  24269. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24270. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  24271. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  24272. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  24273. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  24274. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  24275. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  24276. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  24277. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  24278. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  24279. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  24280. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  24281. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  24282. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24283. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  24284. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  24285. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  24286. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  24287. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  24288. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  24289. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  24290. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  24291. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  24292. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  24293. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  24294. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  24295. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  24296. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  24297. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  24298. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24299. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  24300. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  24301. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  24302. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  24303. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  24304. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  24305. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  24306. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  24307. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  24308. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  24309. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  24310. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  24311. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  24312. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  24313. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  24314. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  24315. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  24316. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  24317. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  24318. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  24319. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  24320. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  24321. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  24322. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  24323. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  24324. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  24325. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  24326. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  24327. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  24328. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  24329. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  24330. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  24331. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  24332. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  24333. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  24334. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  24335. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  24336. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  24337. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  24338. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  24339. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  24340. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  24341. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  24342. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  24343. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  24344. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  24345. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  24346. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  24347. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  24348. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  24349. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  24350. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  24351. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  24352. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  24353. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  24354. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  24355. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  24356. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  24357. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  24358. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  24359. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  24360. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24361. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24362. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24363. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24364. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24365. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24366. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24367. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24368. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24369. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24370. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24371. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24372. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24373. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24374. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24375. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24376. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24377. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24378. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24379. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24380. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24381. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24382. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24383. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24384. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  24385. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24386. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24387. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24388. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24389. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24390. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24391. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24392. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24393. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24394. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24395. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24396. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24397. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24398. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24399. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24400. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24401. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24402. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24403. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24404. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24405. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24406. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24407. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24408. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24409. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  24410. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24411. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24412. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24413. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24414. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24415. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24416. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24417. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24418. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24419. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24420. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24421. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24422. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24423. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24424. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24425. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24426. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24427. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24428. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24429. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24430. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24431. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24432. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24433. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24434. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  24435. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24436. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24437. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24438. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24439. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24440. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24441. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24442. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24443. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24444. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24445. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24446. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24447. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24448. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24449. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24450. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24451. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24452. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24453. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24454. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24455. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24456. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24457. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24458. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24459. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  24460. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24461. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24462. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24463. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24464. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24465. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24466. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24467. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24468. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24469. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24470. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24471. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24472. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24473. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24474. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24475. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24476. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24477. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24478. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24479. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24480. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24481. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24482. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24483. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24484. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  24485. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24486. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24487. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24488. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24489. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24490. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24491. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24492. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24493. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24494. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24495. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24496. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24497. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24498. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24499. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24500. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24501. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24502. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24503. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24504. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24505. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24506. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24507. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24508. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24509. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  24510. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24511. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24512. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24513. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24514. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24515. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24516. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24517. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24518. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24519. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24520. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24521. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24522. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24523. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24524. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24525. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24526. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24527. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24528. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24529. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24530. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24531. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24532. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24533. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24534. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  24535. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24536. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24537. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24538. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24539. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24540. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24541. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24542. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24543. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24544. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24545. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24546. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24547. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24548. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24549. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24550. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24551. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24552. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24553. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24554. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24555. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24556. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24557. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24558. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24559. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  24560. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  24561. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  24562. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24563. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24564. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24565. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24566. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24567. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24568. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24569. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24570. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24571. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24572. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24573. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24574. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24575. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24576. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24577. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24578. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24579. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24580. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24581. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24582. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24583. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24584. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24585. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24586. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  24587. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24588. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24589. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24590. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24591. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24592. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24593. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24594. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24595. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24596. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24597. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24598. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24599. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24600. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24601. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24602. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24603. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24604. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24605. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24606. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24607. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24608. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24609. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24610. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24611. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  24612. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24613. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24614. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24615. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24616. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24617. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24618. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24619. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24620. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24621. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24622. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24623. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24624. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24625. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24626. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24627. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24628. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24629. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24630. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24631. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24632. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24633. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24634. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24635. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24636. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  24637. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24638. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24639. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24640. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24641. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24642. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24643. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24644. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24645. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24646. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24647. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24648. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24649. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24650. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24651. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24652. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24653. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24654. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24655. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24656. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24657. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24658. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24659. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24660. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24661. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  24662. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24663. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24664. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24665. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24666. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24667. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24668. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24669. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24670. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24671. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24672. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24673. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24674. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24675. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24676. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24677. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24678. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24679. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24680. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24681. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24682. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24683. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24684. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24685. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24686. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  24687. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24688. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24689. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24690. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24691. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24692. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24693. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24694. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24695. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24696. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24697. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24698. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24699. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24700. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24701. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24702. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24703. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24704. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24705. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24706. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24707. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24708. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24709. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24710. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24711. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  24712. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24713. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24714. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24715. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24716. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24717. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24718. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24719. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24720. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24721. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24722. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24723. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24724. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24725. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24726. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24727. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24728. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24729. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24730. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24731. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24732. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24733. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24734. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24735. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24736. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  24737. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24738. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24739. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24740. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24741. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24742. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24743. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24744. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24745. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24746. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24747. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24748. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24749. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24750. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24751. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24752. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24753. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24754. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24755. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24756. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24757. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24758. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24759. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24760. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24761. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  24762. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  24763. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  24764. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24765. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24766. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24767. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24768. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24769. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24770. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24771. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24772. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24773. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24774. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24775. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24776. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24777. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24778. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24779. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24780. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24781. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24782. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24783. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24784. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24785. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24786. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24787. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24788. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  24789. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24790. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24791. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24792. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24793. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24794. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24795. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24796. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24797. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24798. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24799. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24800. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24801. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24802. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24803. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24804. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24805. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24806. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24807. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24808. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24809. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24810. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24811. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24812. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24813. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  24814. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24815. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24816. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24817. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24818. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24819. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24820. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24821. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24822. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24823. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24824. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24825. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24826. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24827. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24828. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24829. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24830. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24831. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24832. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24833. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24834. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24835. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24836. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24837. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24838. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  24839. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24840. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24841. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24842. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24843. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24844. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24845. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24846. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24847. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24848. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24849. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24850. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24851. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24852. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24853. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24854. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24855. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24856. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24857. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24858. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24859. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24860. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24861. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24862. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24863. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  24864. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24865. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24866. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24867. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24868. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24869. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24870. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24871. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24872. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24873. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24874. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24875. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24876. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24877. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24878. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24879. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24880. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24881. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24882. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24883. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24884. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  24885. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24886. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24887. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24888. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24889. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24890. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24891. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24892. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24893. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24894. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24895. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24896. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24897. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24898. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24899. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24900. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24901. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24902. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24903. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24904. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24905. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  24906. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24907. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24908. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24909. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24910. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24911. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24912. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24913. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24914. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24915. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24916. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24917. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24918. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24919. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24920. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24921. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24922. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24923. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24924. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24925. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24926. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  24927. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24928. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24929. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24930. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24931. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24932. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  24933. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24934. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24935. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24936. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24937. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24938. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24939. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24940. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24941. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24942. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24943. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24944. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24945. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24946. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24947. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  24948. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24949. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24950. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24951. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24952. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24953. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24954. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24955. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24956. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24957. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24958. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24959. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24960. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  24961. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24962. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24963. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24964. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24965. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24966. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24967. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24968. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24969. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24970. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24971. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24972. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  24973. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  24974. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24975. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24976. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24977. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24978. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  24979. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24980. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24981. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24982. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  24983. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24984. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24985. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24986. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24987. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24988. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24989. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24990. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24991. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24992. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24993. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24994. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24995. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  24996. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24997. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24998. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24999. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25000. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25001. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25002. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25003. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  25004. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25005. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25006. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  25007. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25008. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  25009. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  25010. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  25011. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  25012. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25013. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25014. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25015. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25016. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25017. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25018. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25019. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  25020. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25021. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25022. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25023. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25024. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  25025. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25026. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25027. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25028. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  25029. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25030. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25031. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25032. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  25033. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25034. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25035. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25036. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  25037. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25038. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25039. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25040. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25041. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25042. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25043. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  25044. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  25045. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  25046. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  25047. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  25048. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25049. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25050. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  25051. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25052. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25053. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25054. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25055. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25056. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25057. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  25058. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25059. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25060. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25061. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25062. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25063. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25064. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25065. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25066. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25067. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25068. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25069. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  25070. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  25071. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25072. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  25073. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25074. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25075. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  25076. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25077. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25078. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  25079. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25080. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25081. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25082. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  25083. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25084. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25085. {"STUB_RX", NULL, "STUB_RX Mixer"},
  25086. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25087. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25088. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  25089. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25090. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25091. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  25092. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25093. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25094. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25095. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25096. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25097. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  25098. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25099. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25100. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25101. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25102. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25103. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  25104. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25105. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  25106. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25107. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  25108. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25109. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25110. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  25111. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  25112. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25113. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  25114. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  25115. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  25116. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  25117. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25118. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25119. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25120. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25121. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25122. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25123. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25124. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25125. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25126. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25127. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25128. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25129. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25130. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  25131. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25132. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  25133. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25134. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  25135. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  25136. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  25137. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25138. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  25139. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25140. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  25141. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  25142. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25143. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25144. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25145. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25146. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25147. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25148. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25149. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25150. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25151. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25152. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25153. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  25154. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25155. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25156. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25157. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25158. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25159. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25160. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25161. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25162. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25163. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25164. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  25165. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25166. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25167. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25168. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25169. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25170. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25171. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25172. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25173. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  25174. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25175. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25176. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25177. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25178. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25179. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25180. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25181. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25182. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25183. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25184. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  25185. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25186. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25187. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25188. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25189. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25190. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25191. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25192. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25193. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  25194. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25195. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25196. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25197. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25198. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25199. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25200. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  25201. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  25202. /* Backend Enablement */
  25203. {"BE_OUT", NULL, "PRI_I2S_RX"},
  25204. {"BE_OUT", NULL, "SEC_I2S_RX"},
  25205. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  25206. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  25207. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  25208. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25209. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  25210. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  25211. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  25212. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  25213. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  25214. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  25215. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  25216. {"BE_OUT", NULL, "HDMI"},
  25217. {"BE_OUT", NULL, "DISPLAY_PORT"},
  25218. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  25219. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  25220. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  25221. {"BE_OUT", NULL, "MI2S_RX"},
  25222. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  25223. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  25224. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  25225. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  25226. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  25227. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  25228. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  25229. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  25230. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  25231. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  25232. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  25233. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  25234. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25235. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  25236. {"BE_OUT", NULL, "INT_FM_RX"},
  25237. {"BE_OUT", NULL, "PCM_RX"},
  25238. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25239. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25240. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  25241. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  25242. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  25243. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  25244. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  25245. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  25246. {"BE_OUT", NULL, "INT_FM_RX"},
  25247. {"BE_OUT", NULL, "PCM_RX"},
  25248. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25249. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  25250. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  25251. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  25252. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  25253. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  25254. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  25255. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  25256. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  25257. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  25258. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  25259. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  25260. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  25261. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  25262. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  25263. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  25264. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  25265. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  25266. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  25267. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  25268. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  25269. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  25270. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  25271. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  25272. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  25273. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  25274. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  25275. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  25276. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  25277. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  25278. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  25279. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  25280. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  25281. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  25282. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  25283. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  25284. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  25285. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  25286. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  25287. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  25288. {"PRI_I2S_TX", NULL, "BE_IN"},
  25289. {"MI2S_TX", NULL, "BE_IN"},
  25290. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  25291. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  25292. {"PRI_MI2S_TX", NULL, "BE_IN"},
  25293. {"TERT_MI2S_TX", NULL, "BE_IN"},
  25294. {"INT0_MI2S_TX", NULL, "BE_IN"},
  25295. {"INT2_MI2S_TX", NULL, "BE_IN"},
  25296. {"INT3_MI2S_TX", NULL, "BE_IN"},
  25297. {"INT4_MI2S_TX", NULL, "BE_IN"},
  25298. {"INT5_MI2S_TX", NULL, "BE_IN"},
  25299. {"SEC_MI2S_TX", NULL, "BE_IN"},
  25300. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  25301. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  25302. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  25303. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  25304. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  25305. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  25306. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  25307. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  25308. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  25309. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  25310. {"USB_AUDIO_TX", NULL, "BE_IN" },
  25311. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  25312. {"INT_FM_TX", NULL, "BE_IN"},
  25313. {"PCM_TX", NULL, "BE_IN"},
  25314. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  25315. {"BE_OUT", NULL, "STUB_RX"},
  25316. {"STUB_TX", NULL, "BE_IN"},
  25317. {"STUB_1_TX", NULL, "BE_IN"},
  25318. {"BE_OUT", NULL, "AUX_PCM_RX"},
  25319. {"AUX_PCM_TX", NULL, "BE_IN"},
  25320. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  25321. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  25322. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  25323. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  25324. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  25325. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  25326. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  25327. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25328. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  25329. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25330. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25331. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  25332. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25333. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  25334. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  25335. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  25336. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  25337. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  25338. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  25339. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  25340. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  25341. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  25342. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  25343. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  25344. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  25345. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  25346. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  25347. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  25348. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  25349. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  25350. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  25351. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  25352. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  25353. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  25354. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  25355. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  25356. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  25357. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  25358. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  25359. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  25360. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  25361. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  25362. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  25363. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  25364. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  25365. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  25366. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  25367. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  25368. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25369. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25370. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25371. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  25372. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  25373. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  25374. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  25375. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  25376. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  25377. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  25378. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  25379. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  25380. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  25381. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  25382. };
  25383. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  25384. struct snd_pcm_hw_params *params)
  25385. {
  25386. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25387. unsigned int be_id = rtd->dai_link->id;
  25388. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25389. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25390. return -EINVAL;
  25391. }
  25392. mutex_lock(&routing_lock);
  25393. msm_bedais[be_id].sample_rate = params_rate(params);
  25394. msm_bedais[be_id].channel = params_channels(params);
  25395. msm_bedais[be_id].format = params_format(params);
  25396. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  25397. __func__, msm_bedais[be_id].sample_rate,
  25398. msm_bedais[be_id].format, be_id);
  25399. mutex_unlock(&routing_lock);
  25400. return 0;
  25401. }
  25402. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  25403. {
  25404. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25405. unsigned int be_id = rtd->dai_link->id;
  25406. int i, session_type, path_type, topology;
  25407. struct msm_pcm_routing_bdai_data *bedai;
  25408. struct msm_pcm_routing_fdai_data *fdai;
  25409. pr_debug("%s: substream->pcm->id:%s\n",
  25410. __func__, substream->pcm->id);
  25411. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25412. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25413. return -EINVAL;
  25414. }
  25415. bedai = &msm_bedais[be_id];
  25416. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  25417. 0 : 1);
  25418. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25419. path_type = ADM_PATH_PLAYBACK;
  25420. else
  25421. path_type = ADM_PATH_LIVE_REC;
  25422. mutex_lock(&routing_lock);
  25423. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25424. if (!is_mm_lsm_fe_id(i))
  25425. continue;
  25426. fdai = &fe_dai_map[i][session_type];
  25427. if (fdai->strm_id != INVALID_SESSION) {
  25428. int idx;
  25429. int port_id;
  25430. unsigned long copp =
  25431. session_copp_map[i][session_type][be_id];
  25432. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  25433. if (test_bit(idx, &copp))
  25434. break;
  25435. if (idx >= MAX_COPPS_PER_PORT) {
  25436. pr_debug("%s: copp idx is invalid, exiting\n",
  25437. __func__);
  25438. continue;
  25439. }
  25440. fdai->be_srate = bedai->sample_rate;
  25441. port_id = get_port_id(bedai->port_id);
  25442. topology = adm_get_topology_for_port_copp_idx(port_id,
  25443. idx);
  25444. msm_routing_unload_topology(topology);
  25445. adm_close(port_id, fdai->perf_mode, idx);
  25446. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  25447. __func__, copp, i, session_type, be_id,
  25448. topology);
  25449. clear_bit(idx,
  25450. &session_copp_map[i][session_type][be_id]);
  25451. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25452. (fdai->passthr_mode == LEGACY_PCM))
  25453. msm_pcm_routing_deinit_pp(port_id,
  25454. topology);
  25455. }
  25456. }
  25457. bedai->active = 0;
  25458. bedai->sample_rate = 0;
  25459. bedai->channel = 0;
  25460. mutex_unlock(&routing_lock);
  25461. return 0;
  25462. }
  25463. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  25464. {
  25465. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  25466. unsigned int be_id = rtd->dai_link->id;
  25467. int i, path_type, topology;
  25468. int session_type = INVALID_SESSION;
  25469. struct msm_pcm_routing_bdai_data *bedai;
  25470. u32 channels, sample_rate;
  25471. uint16_t bits_per_sample = 16, voc_path_type;
  25472. struct msm_pcm_routing_fdai_data *fdai;
  25473. u32 session_id;
  25474. struct media_format_info voc_be_media_format;
  25475. bool is_lsm;
  25476. pr_debug("%s: substream->pcm->id:%s\n",
  25477. __func__, substream->pcm->id);
  25478. if (be_id >= MSM_BACKEND_DAI_MAX) {
  25479. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  25480. return -EINVAL;
  25481. }
  25482. bedai = &msm_bedais[be_id];
  25483. mutex_lock(&routing_lock);
  25484. if (bedai->active == 1)
  25485. goto done; /* Ignore prepare if back-end already active */
  25486. /* AFE port is not active at this point. However, still
  25487. * go ahead setting active flag under the notion that
  25488. * QDSP6 is able to handle ADM starting before AFE port
  25489. * is started.
  25490. */
  25491. bedai->active = 1;
  25492. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25493. if (!(is_mm_lsm_fe_id(i) &&
  25494. route_check_fe_id_adm_support(i)))
  25495. continue;
  25496. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  25497. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25498. fdai = &fe_dai_map[i][session_type];
  25499. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  25500. if (fdai->passthr_mode != LEGACY_PCM)
  25501. path_type = ADM_PATH_COMPRESSED_RX;
  25502. else
  25503. path_type = ADM_PATH_PLAYBACK;
  25504. } else {
  25505. if ((fdai->passthr_mode != LEGACY_PCM) &&
  25506. (fdai->passthr_mode != LISTEN))
  25507. path_type = ADM_PATH_COMPRESSED_TX;
  25508. else
  25509. path_type = ADM_PATH_LIVE_REC;
  25510. }
  25511. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  25512. (i <= MSM_FRONTEND_DAI_LSM8);
  25513. if (fdai->strm_id != INVALID_SESSION) {
  25514. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  25515. int port_id = get_port_id(bedai->port_id);
  25516. if (session_type == SESSION_TYPE_TX &&
  25517. fdai->be_srate &&
  25518. (fdai->be_srate != bedai->sample_rate)) {
  25519. pr_debug("%s: flush strm %d diff BE rates\n",
  25520. __func__,
  25521. fdai->strm_id);
  25522. if (fdai->event_info.event_func)
  25523. fdai->event_info.event_func(
  25524. MSM_PCM_RT_EVT_BUF_RECFG,
  25525. fdai->event_info.priv_data);
  25526. fdai->be_srate = 0; /* might not need it */
  25527. }
  25528. bits_per_sample = msm_routing_get_bit_width(
  25529. bedai->format);
  25530. app_type =
  25531. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  25532. if (app_type && is_lsm) {
  25533. app_type_idx =
  25534. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  25535. sample_rate =
  25536. fe_dai_app_type_cfg[i][session_type][be_id]
  25537. .sample_rate;
  25538. bits_per_sample =
  25539. lsm_app_type_cfg[app_type_idx].bit_width;
  25540. } else if (app_type) {
  25541. app_type_idx =
  25542. msm_pcm_routing_get_app_type_idx(app_type);
  25543. sample_rate =
  25544. fe_dai_app_type_cfg[i][session_type]
  25545. [be_id].sample_rate;
  25546. bits_per_sample =
  25547. app_type_cfg[app_type_idx].bit_width;
  25548. } else
  25549. sample_rate = bedai->sample_rate;
  25550. /*
  25551. * check if ADM needs to be configured with different
  25552. * channel mapping than backend
  25553. */
  25554. if (!bedai->adm_override_ch)
  25555. channels = bedai->channel;
  25556. else
  25557. channels = bedai->adm_override_ch;
  25558. acdb_dev_id =
  25559. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  25560. topology = msm_routing_get_adm_topology(i, session_type,
  25561. be_id);
  25562. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  25563. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  25564. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  25565. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  25566. copp_idx = adm_open(port_id, path_type,
  25567. sample_rate, channels, topology,
  25568. fdai->perf_mode, bits_per_sample,
  25569. app_type, acdb_dev_id,
  25570. session_type);
  25571. if ((copp_idx < 0) ||
  25572. (copp_idx >= MAX_COPPS_PER_PORT)) {
  25573. pr_err("%s: adm open failed\n", __func__);
  25574. mutex_unlock(&routing_lock);
  25575. return -EINVAL;
  25576. }
  25577. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  25578. __func__, i, session_type, be_id);
  25579. set_bit(copp_idx,
  25580. &session_copp_map[i][session_type][be_id]);
  25581. if (msm_is_resample_needed(
  25582. sample_rate,
  25583. bedai->sample_rate))
  25584. adm_copp_mfc_cfg(port_id, copp_idx,
  25585. bedai->sample_rate);
  25586. msm_pcm_routing_build_matrix(i, session_type, path_type,
  25587. fdai->perf_mode, fdai->passthr_mode);
  25588. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  25589. (fdai->passthr_mode == LEGACY_PCM))
  25590. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  25591. topology, channels);
  25592. }
  25593. }
  25594. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  25595. session_id = msm_pcm_routing_get_voc_sessionid(i);
  25596. if (session_id) {
  25597. pr_debug("%s voice session_id: 0x%x\n", __func__,
  25598. session_id);
  25599. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  25600. voc_path_type = RX_PATH;
  25601. else
  25602. voc_path_type = TX_PATH;
  25603. voc_set_route_flag(session_id, voc_path_type, 1);
  25604. memset(&voc_be_media_format, 0,
  25605. sizeof(struct media_format_info));
  25606. voc_be_media_format.port_id = bedai->port_id;
  25607. voc_be_media_format.num_channels = bedai->channel;
  25608. voc_be_media_format.sample_rate = bedai->sample_rate;
  25609. voc_be_media_format.bits_per_sample = bedai->format;
  25610. /* Defaulting this to 1 for voice call usecases */
  25611. voc_be_media_format.channel_mapping[0] = 1;
  25612. voc_set_device_config(session_id, voc_path_type,
  25613. &voc_be_media_format);
  25614. if (voc_get_route_flag(session_id, RX_PATH) &&
  25615. voc_get_route_flag(session_id, TX_PATH))
  25616. voc_enable_device(session_id);
  25617. }
  25618. }
  25619. /* Check if backend is an external ec ref port and set as needed */
  25620. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  25621. memset(&voc_be_media_format, 0,
  25622. sizeof(struct media_format_info));
  25623. /* Get format info for ec ref port from msm_bedais[] */
  25624. voc_be_media_format.port_id = bedai->port_id;
  25625. voc_be_media_format.num_channels = bedai->channel;
  25626. voc_be_media_format.bits_per_sample = bedai->format;
  25627. voc_be_media_format.sample_rate = bedai->sample_rate;
  25628. /* Defaulting this to 1 for voice call usecases */
  25629. voc_be_media_format.channel_mapping[0] = 1;
  25630. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  25631. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  25632. __func__, voc_be_media_format.port_id,
  25633. voc_be_media_format.num_channels,
  25634. voc_be_media_format.bits_per_sample,
  25635. voc_be_media_format.sample_rate);
  25636. }
  25637. done:
  25638. mutex_unlock(&routing_lock);
  25639. return 0;
  25640. }
  25641. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  25642. int fe_id)
  25643. {
  25644. int index, topo_id, be_idx;
  25645. unsigned long pp_config = 0;
  25646. bool mute_on;
  25647. int latency, session_type;
  25648. bool compr_passthr_mode = true;
  25649. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  25650. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  25651. pr_err("%s: Device pp params on invalid port %d\n",
  25652. __func__, port_id);
  25653. return -EINVAL;
  25654. }
  25655. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25656. if (port_id == msm_bedais[be_idx].port_id)
  25657. break;
  25658. }
  25659. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25660. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25661. return -EINVAL;
  25662. }
  25663. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25664. if (msm_bedais_pp_params[index].port_id == port_id)
  25665. break;
  25666. }
  25667. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25668. pr_err("%s: Invalid backend pp params index %d\n",
  25669. __func__, index);
  25670. return -EINVAL;
  25671. }
  25672. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  25673. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  25674. pr_err("%s: Invalid passthrough topology 0x%x\n",
  25675. __func__, topo_id);
  25676. return -EINVAL;
  25677. }
  25678. session_type =
  25679. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25680. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25681. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  25682. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  25683. compr_passthr_mode = false;
  25684. pp_config = msm_bedais_pp_params[index].pp_params_config;
  25685. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  25686. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25687. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  25688. mute_on = msm_bedais_pp_params[index].mute_on;
  25689. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25690. adm_send_compressed_device_mute(port_id,
  25691. copp_idx,
  25692. mute_on);
  25693. }
  25694. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  25695. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25696. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  25697. &pp_config);
  25698. latency = msm_bedais_pp_params[index].latency;
  25699. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25700. adm_send_compressed_device_latency(port_id,
  25701. copp_idx,
  25702. latency);
  25703. }
  25704. return 0;
  25705. }
  25706. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  25707. {
  25708. uint32_t topology = NULL_COPP_TOPOLOGY;
  25709. void *cal_info = NULL;
  25710. uint32_t size = 0;
  25711. /* Retrieve cal_info size from cal data*/
  25712. if (data_size < sizeof(struct audio_cal_type_basic) +
  25713. sizeof(struct audio_cal_info_adm_top)) {
  25714. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  25715. goto done;
  25716. }
  25717. size = data_size - sizeof(struct audio_cal_type_basic);
  25718. cal_info = kzalloc(size, GFP_KERNEL);
  25719. if (!cal_info)
  25720. goto done;
  25721. memcpy(cal_info,
  25722. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  25723. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  25724. kfree(cal_info);
  25725. cal_info = NULL;
  25726. done:
  25727. pr_debug("%s: Using topology %d\n", __func__, topology);
  25728. return topology;
  25729. }
  25730. static void msm_routing_load_topology(size_t data_size, void *data)
  25731. {
  25732. uint32_t topology_id;
  25733. int ret = -EINVAL;
  25734. topology_id = msm_routing_get_topology(data_size, data);
  25735. if (topology_id != NULL_COPP_TOPOLOGY)
  25736. ret = q6core_load_unload_topo_modules(topology_id,
  25737. CORE_LOAD_TOPOLOGY);
  25738. if (ret < 0)
  25739. pr_debug("%s %d load topology failed\n",
  25740. __func__, topology_id);
  25741. }
  25742. static void msm_routing_unload_topology(uint32_t topology_id)
  25743. {
  25744. int ret = -EINVAL;
  25745. if (topology_id != NULL_COPP_TOPOLOGY)
  25746. ret = q6core_load_unload_topo_modules(topology_id,
  25747. CORE_UNLOAD_TOPOLOGY);
  25748. if (ret < 0)
  25749. pr_debug("%s %d unload topology failed\n",
  25750. __func__, topology_id);
  25751. }
  25752. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25753. struct snd_ctl_elem_value *ucontrol)
  25754. {
  25755. int pp_id = ucontrol->value.integer.value[0];
  25756. int port_id = 0;
  25757. int index, be_idx, i, topo_id, idx;
  25758. bool mute;
  25759. int latency, session_type;
  25760. bool compr_passthr_mode = true;
  25761. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  25762. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  25763. port_id = msm_bedais[be_idx].port_id;
  25764. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  25765. break;
  25766. }
  25767. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  25768. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  25769. return -EINVAL;
  25770. }
  25771. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  25772. if (msm_bedais_pp_params[index].port_id == port_id)
  25773. break;
  25774. }
  25775. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  25776. pr_err("%s: Invalid pp params backend index %d\n",
  25777. __func__, index);
  25778. return -EINVAL;
  25779. }
  25780. session_type =
  25781. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  25782. SESSION_TYPE_RX : SESSION_TYPE_TX;
  25783. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  25784. MSM_FRONTEND_DAI_MM_SIZE) {
  25785. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  25786. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  25787. compr_passthr_mode = false;
  25788. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25789. unsigned long copp =
  25790. session_copp_map[i]
  25791. [SESSION_TYPE_RX][be_idx];
  25792. if (!test_bit(idx, &copp))
  25793. continue;
  25794. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  25795. idx);
  25796. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  25797. continue;
  25798. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  25799. __func__, port_id, copp, msm_bedais[be_idx].active,
  25800. fe_dai_map[i][session_type].passthr_mode);
  25801. switch (pp_id) {
  25802. case ADM_PP_PARAM_MUTE_ID:
  25803. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  25804. mute = ucontrol->value.integer.value[1] ? true : false;
  25805. msm_bedais_pp_params[index].mute_on = mute;
  25806. set_bit(ADM_PP_PARAM_MUTE_BIT,
  25807. &msm_bedais_pp_params[index].pp_params_config);
  25808. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25809. adm_send_compressed_device_mute(port_id,
  25810. idx, mute);
  25811. break;
  25812. case ADM_PP_PARAM_LATENCY_ID:
  25813. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  25814. msm_bedais_pp_params[index].latency =
  25815. ucontrol->value.integer.value[1];
  25816. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  25817. &msm_bedais_pp_params[index].pp_params_config);
  25818. latency = msm_bedais_pp_params[index].latency =
  25819. ucontrol->value.integer.value[1];
  25820. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  25821. adm_send_compressed_device_latency(port_id,
  25822. idx, latency);
  25823. break;
  25824. default:
  25825. pr_info("%s, device pp param %d not supported\n",
  25826. __func__, pp_id);
  25827. break;
  25828. }
  25829. }
  25830. }
  25831. return 0;
  25832. }
  25833. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  25834. struct snd_ctl_elem_value *ucontrol)
  25835. {
  25836. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  25837. return 0;
  25838. }
  25839. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  25840. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  25841. 0, 3, msm_routing_get_device_pp_params_mixer,
  25842. msm_routing_put_device_pp_params_mixer),
  25843. };
  25844. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  25845. struct snd_ctl_elem_value *ucontrol)
  25846. {
  25847. ucontrol->value.integer.value[0] =
  25848. core_get_license_status(ASM_MEDIA_FMT_APTX);
  25849. pr_debug("%s: status %ld\n", __func__,
  25850. ucontrol->value.integer.value[0]);
  25851. return 0;
  25852. }
  25853. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  25854. struct snd_ctl_elem_value *ucontrol)
  25855. {
  25856. int32_t status = 0;
  25857. status = core_set_license(ucontrol->value.integer.value[0],
  25858. APTX_CLASSIC_DEC_LICENSE_ID);
  25859. pr_debug("%s: status %d\n", __func__, status);
  25860. return status;
  25861. }
  25862. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  25863. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  25864. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  25865. msm_aptx_dec_license_control_put),
  25866. };
  25867. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  25868. struct snd_ctl_elem_value *ucontrol)
  25869. {
  25870. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  25871. uint32_t be_idx = ucontrol->value.integer.value[0];
  25872. int i;
  25873. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  25874. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  25875. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  25876. pr_err("%s: Invalid channel map %d\n",
  25877. __func__, channel_map[i]);
  25878. return -EINVAL;
  25879. }
  25880. }
  25881. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  25882. return 0;
  25883. }
  25884. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  25885. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  25886. MSM_BACKEND_DAI_MAX, 0,
  25887. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  25888. msm_routing_put_port_chmap_mixer),
  25889. };
  25890. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  25891. struct snd_ctl_elem_info *uinfo)
  25892. {
  25893. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  25894. uinfo->count = sizeof(be_dai_name_table);
  25895. return 0;
  25896. }
  25897. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  25898. unsigned int __user *bytes,
  25899. unsigned int size)
  25900. {
  25901. int i;
  25902. int ret = 0;
  25903. if (size < sizeof(be_dai_name_table)) {
  25904. pr_err("%s: invalid size %d requested, returning\n",
  25905. __func__, size);
  25906. ret = -EINVAL;
  25907. goto done;
  25908. }
  25909. /*
  25910. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  25911. * needed when adding new backends
  25912. */
  25913. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  25914. be_dai_name_table[i].be_id = i;
  25915. strlcpy(be_dai_name_table[i].be_name,
  25916. msm_bedais[i].name,
  25917. LPASS_BE_NAME_MAX_LENGTH);
  25918. }
  25919. ret = copy_to_user(bytes, &be_dai_name_table,
  25920. sizeof(be_dai_name_table));
  25921. if (ret) {
  25922. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  25923. ret = -EFAULT;
  25924. }
  25925. done:
  25926. return ret;
  25927. }
  25928. static const struct snd_kcontrol_new
  25929. msm_routing_be_dai_name_table_mixer_controls[] = {
  25930. {
  25931. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  25932. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  25933. .info = msm_routing_be_dai_name_table_info,
  25934. .name = "Backend DAI Name Table",
  25935. .tlv.c = snd_soc_bytes_tlv_callback,
  25936. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  25937. .max = sizeof(be_dai_name_table),
  25938. .get = msm_routing_be_dai_name_table_tlv_get,
  25939. }
  25940. },
  25941. };
  25942. static int msm_routing_stereo_channel_reverse_control_get(
  25943. struct snd_kcontrol *kcontrol,
  25944. struct snd_ctl_elem_value *ucontrol)
  25945. {
  25946. ucontrol->value.integer.value[0] = swap_ch;
  25947. pr_debug("%s: Swap channel value: %ld\n", __func__,
  25948. ucontrol->value.integer.value[0]);
  25949. return 0;
  25950. }
  25951. static int msm_routing_stereo_channel_reverse_control_put(
  25952. struct snd_kcontrol *kcontrol,
  25953. struct snd_ctl_elem_value *ucontrol)
  25954. {
  25955. int i, idx, be_index, port_id;
  25956. int ret = 0;
  25957. unsigned long copp;
  25958. pr_debug("%s Swap channel value:%ld\n", __func__,
  25959. ucontrol->value.integer.value[0]);
  25960. swap_ch = ucontrol->value.integer.value[0];
  25961. mutex_lock(&routing_lock);
  25962. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  25963. port_id = msm_bedais[be_index].port_id;
  25964. if (!msm_bedais[be_index].active)
  25965. continue;
  25966. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  25967. MSM_FRONTEND_DAI_MM_SIZE) {
  25968. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  25969. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  25970. if (!test_bit(idx, &copp))
  25971. continue;
  25972. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  25973. __func__, port_id, idx);
  25974. ret = adm_swap_speaker_channels(
  25975. port_id, idx,
  25976. msm_bedais[be_index].sample_rate,
  25977. swap_ch);
  25978. if (ret) {
  25979. pr_err("%s:Swap_channel failed, err=%d\n",
  25980. __func__, ret);
  25981. goto done;
  25982. }
  25983. }
  25984. }
  25985. }
  25986. done:
  25987. mutex_unlock(&routing_lock);
  25988. return ret;
  25989. }
  25990. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  25991. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  25992. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  25993. msm_routing_stereo_channel_reverse_control_put),
  25994. };
  25995. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  25996. struct snd_ctl_elem_info *uinfo)
  25997. {
  25998. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  25999. uinfo->count = 1;
  26000. return 0;
  26001. }
  26002. static int msm_routing_instance_id_support_put(
  26003. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  26004. {
  26005. bool supported = ucontrol->value.integer.value[0] ? true : false;
  26006. q6common_update_instance_id_support(supported);
  26007. return 0;
  26008. }
  26009. static int msm_routing_instance_id_support_get(
  26010. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  26011. {
  26012. bool supported = false;
  26013. supported = q6common_is_instance_id_supported();
  26014. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  26015. return 0;
  26016. }
  26017. static const struct snd_kcontrol_new
  26018. msm_routing_feature_support_mixer_controls[] = {
  26019. {
  26020. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  26021. SNDRV_CTL_ELEM_ACCESS_WRITE,
  26022. .info = msm_routing_instance_id_support_info,
  26023. .name = "Instance ID Support",
  26024. .put = msm_routing_instance_id_support_put,
  26025. .get = msm_routing_instance_id_support_get,
  26026. },
  26027. };
  26028. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  26029. .hw_params = msm_pcm_routing_hw_params,
  26030. .close = msm_pcm_routing_close,
  26031. .prepare = msm_pcm_routing_prepare,
  26032. };
  26033. /* Not used but frame seems to require it */
  26034. static int msm_routing_probe(struct snd_soc_component *component)
  26035. {
  26036. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  26037. ARRAY_SIZE(msm_qdsp6_widgets));
  26038. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  26039. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  26040. snd_soc_dapm_add_routes(&component->dapm, intercon,
  26041. ARRAY_SIZE(intercon));
  26042. snd_soc_dapm_new_widgets(component->dapm.card);
  26043. snd_soc_add_component_controls(component, lsm_controls,
  26044. ARRAY_SIZE(lsm_controls));
  26045. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  26046. ARRAY_SIZE(aanc_slim_0_rx_mux));
  26047. snd_soc_add_component_controls(component, aanc_noise_level,
  26048. ARRAY_SIZE(aanc_noise_level));
  26049. snd_soc_add_component_controls(component, msm_voc_session_controls,
  26050. ARRAY_SIZE(msm_voc_session_controls));
  26051. snd_soc_add_component_controls(component, app_type_cfg_controls,
  26052. ARRAY_SIZE(app_type_cfg_controls));
  26053. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  26054. ARRAY_SIZE(lsm_app_type_cfg_controls));
  26055. snd_soc_add_component_controls(component, module_cfg_controls,
  26056. ARRAY_SIZE(module_cfg_controls));
  26057. snd_soc_add_component_controls(component,
  26058. stereo_to_custom_stereo_controls,
  26059. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  26060. snd_soc_add_component_controls(component, ec_ref_param_controls,
  26061. ARRAY_SIZE(ec_ref_param_controls));
  26062. snd_soc_add_component_controls(component, channel_mixer_controls,
  26063. ARRAY_SIZE(channel_mixer_controls));
  26064. msm_qti_pp_add_controls(component);
  26065. msm_dts_srs_tm_add_controls(component);
  26066. msm_dolby_dap_add_controls(component);
  26067. snd_soc_add_component_controls(component,
  26068. use_ds1_or_ds2_controls,
  26069. ARRAY_SIZE(use_ds1_or_ds2_controls));
  26070. snd_soc_add_component_controls(component,
  26071. device_pp_params_mixer_controls,
  26072. ARRAY_SIZE(device_pp_params_mixer_controls));
  26073. snd_soc_add_component_controls(component,
  26074. msm_routing_be_dai_name_table_mixer_controls,
  26075. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  26076. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  26077. ARRAY_SIZE(msm_source_tracking_controls));
  26078. snd_soc_add_component_controls(component, adm_channel_config_controls,
  26079. ARRAY_SIZE(adm_channel_config_controls));
  26080. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  26081. ARRAY_SIZE(aptx_dec_license_controls));
  26082. snd_soc_add_component_controls(component,
  26083. stereo_channel_reverse_control,
  26084. ARRAY_SIZE(stereo_channel_reverse_control));
  26085. snd_soc_add_component_controls(
  26086. component, msm_routing_feature_support_mixer_controls,
  26087. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  26088. snd_soc_add_component_controls(component,
  26089. port_multi_channel_map_mixer_controls,
  26090. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  26091. return 0;
  26092. }
  26093. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  26094. {
  26095. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  26096. }
  26097. void msm_routing_pcm_free(struct snd_pcm *pcm)
  26098. {
  26099. msm_pcm_routing_hwdep_free(pcm);
  26100. }
  26101. static struct snd_soc_component_driver msm_soc_routing_component = {
  26102. .name = DRV_NAME,
  26103. .ops = &msm_routing_pcm_ops,
  26104. .probe = msm_routing_probe,
  26105. .pcm_new = msm_routing_pcm_new,
  26106. .pcm_free = msm_routing_pcm_free,
  26107. };
  26108. static int msm_routing_pcm_probe(struct platform_device *pdev)
  26109. {
  26110. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  26111. return snd_soc_register_component(&pdev->dev,
  26112. &msm_soc_routing_component,
  26113. NULL, 0);
  26114. }
  26115. static int msm_routing_pcm_remove(struct platform_device *pdev)
  26116. {
  26117. snd_soc_unregister_component(&pdev->dev);
  26118. return 0;
  26119. }
  26120. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  26121. {.compatible = "qcom,msm-pcm-routing"},
  26122. {}
  26123. };
  26124. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  26125. static struct platform_driver msm_routing_pcm_driver = {
  26126. .driver = {
  26127. .name = "msm-pcm-routing",
  26128. .owner = THIS_MODULE,
  26129. .of_match_table = msm_pcm_routing_dt_match,
  26130. .suppress_bind_attrs = true,
  26131. },
  26132. .probe = msm_routing_pcm_probe,
  26133. .remove = msm_routing_pcm_remove,
  26134. };
  26135. int msm_routing_check_backend_enabled(int fedai_id)
  26136. {
  26137. int i;
  26138. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  26139. /* bad ID assigned in machine driver */
  26140. pr_err("%s: bad MM ID\n", __func__);
  26141. return 0;
  26142. }
  26143. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  26144. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  26145. return msm_bedais[i].active;
  26146. }
  26147. return 0;
  26148. }
  26149. static int get_cal_type_index(int32_t cal_type)
  26150. {
  26151. int ret = -EINVAL;
  26152. switch (cal_type) {
  26153. case ADM_TOPOLOGY_CAL_TYPE:
  26154. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  26155. break;
  26156. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  26157. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  26158. break;
  26159. default:
  26160. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  26161. }
  26162. return ret;
  26163. }
  26164. static int msm_routing_set_cal(int32_t cal_type,
  26165. size_t data_size, void *data)
  26166. {
  26167. int ret = 0;
  26168. int cal_index;
  26169. pr_debug("%s\n", __func__);
  26170. cal_index = get_cal_type_index(cal_type);
  26171. if (cal_index < 0) {
  26172. pr_err("%s: Could not get cal index %d\n",
  26173. __func__, cal_index);
  26174. ret = -EINVAL;
  26175. goto done;
  26176. }
  26177. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  26178. if (ret < 0) {
  26179. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  26180. __func__, ret, cal_type);
  26181. ret = -EINVAL;
  26182. goto done;
  26183. }
  26184. /* Pre-load if it is ADM topology */
  26185. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  26186. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  26187. msm_routing_load_topology(data_size, data);
  26188. }
  26189. done:
  26190. return ret;
  26191. }
  26192. static void msm_routing_delete_cal_data(void)
  26193. {
  26194. pr_debug("%s\n", __func__);
  26195. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  26196. }
  26197. static int msm_routing_init_cal_data(void)
  26198. {
  26199. int ret = 0;
  26200. struct cal_type_info cal_type_info[] = {
  26201. {{ADM_TOPOLOGY_CAL_TYPE,
  26202. {NULL, NULL, NULL,
  26203. msm_routing_set_cal, NULL, NULL} },
  26204. {NULL, NULL, cal_utils_match_buf_num} },
  26205. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  26206. {NULL, NULL, NULL,
  26207. msm_routing_set_cal, NULL, NULL} },
  26208. {NULL, NULL, cal_utils_match_buf_num} },
  26209. };
  26210. pr_debug("%s\n", __func__);
  26211. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  26212. &cal_type_info[0]);
  26213. if (ret < 0) {
  26214. pr_err("%s: could not create cal type!\n",
  26215. __func__);
  26216. ret = -EINVAL;
  26217. goto err;
  26218. }
  26219. return ret;
  26220. err:
  26221. msm_routing_delete_cal_data();
  26222. return ret;
  26223. }
  26224. int __init msm_soc_routing_platform_init(void)
  26225. {
  26226. mutex_init(&routing_lock);
  26227. if (msm_routing_init_cal_data())
  26228. pr_err("%s: could not init cal data!\n", __func__);
  26229. afe_set_routing_callback(
  26230. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  26231. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26232. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  26233. return platform_driver_register(&msm_routing_pcm_driver);
  26234. }
  26235. void msm_soc_routing_platform_exit(void)
  26236. {
  26237. msm_routing_delete_cal_data();
  26238. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  26239. mutex_destroy(&routing_lock);
  26240. platform_driver_unregister(&msm_routing_pcm_driver);
  26241. }
  26242. MODULE_DESCRIPTION("MSM routing platform driver");
  26243. MODULE_LICENSE("GPL v2");