msm-pcm-routing-v2.c 811 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799
  1. /* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
  2. *
  3. * This program is free software; you can redistribute it and/or modify
  4. * it under the terms of the GNU General Public License version 2 and
  5. * only version 2 as published by the Free Software Foundation.
  6. *
  7. * This program is distributed in the hope that it will be useful,
  8. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. * GNU General Public License for more details.
  11. */
  12. #include <linux/init.h>
  13. #include <linux/err.h>
  14. #include <linux/module.h>
  15. #include <linux/moduleparam.h>
  16. #include <linux/platform_device.h>
  17. #include <linux/bitops.h>
  18. #include <linux/mutex.h>
  19. #include <linux/of_device.h>
  20. #include <linux/slab.h>
  21. #include <sound/core.h>
  22. #include <sound/soc.h>
  23. #include <sound/soc-dapm.h>
  24. #include <sound/pcm.h>
  25. #include <sound/initval.h>
  26. #include <sound/control.h>
  27. #include <sound/tlv.h>
  28. #include <sound/asound.h>
  29. #include <sound/pcm_params.h>
  30. #include <sound/hwdep.h>
  31. #include <sound/audio_effects.h>
  32. #include <dsp/msm-dts-srs-tm-config.h>
  33. #include <dsp/q6voice.h>
  34. #include <dsp/q6adm-v2.h>
  35. #include <dsp/q6asm-v2.h>
  36. #include <dsp/q6afe-v2.h>
  37. #include <dsp/q6lsm.h>
  38. #include <dsp/q6core.h>
  39. #include <dsp/q6common.h>
  40. #include <dsp/audio_cal_utils.h>
  41. #include "msm-pcm-routing-v2.h"
  42. #include "msm-pcm-routing-devdep.h"
  43. #include "msm-qti-pp-config.h"
  44. #include "msm-dolby-dap-config.h"
  45. #include "msm-ds2-dap-config.h"
  46. #ifndef CONFIG_DOLBY_DAP
  47. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  48. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  49. #endif
  50. #ifndef CONFIG_DOLBY_DS2
  51. #undef DS2_ADM_COPP_TOPOLOGY_ID
  52. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  53. #endif
  54. static struct mutex routing_lock;
  55. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  56. static int fm_switch_enable;
  57. static int hfp_switch_enable;
  58. static int a2dp_switch_enable;
  59. static int int0_mi2s_switch_enable;
  60. static int int4_mi2s_switch_enable;
  61. static int pri_mi2s_switch_enable;
  62. static int sec_mi2s_switch_enable;
  63. static int tert_mi2s_switch_enable;
  64. static int quat_mi2s_switch_enable;
  65. static int quin_mi2s_switch_enable;
  66. static int fm_pcmrx_switch_enable;
  67. static int usb_switch_enable;
  68. static int lsm_port_index;
  69. static int slim0_rx_aanc_fb_port;
  70. static int msm_route_ec_ref_rx;
  71. static int msm_ec_ref_ch = 4;
  72. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  73. static int msm_ec_ref_sampling_rate = 48000;
  74. static uint32_t voc_session_id = ALL_SESSION_VSID;
  75. static int msm_route_ext_ec_ref;
  76. static bool is_custom_stereo_on;
  77. static bool is_ds2_on;
  78. static bool swap_ch;
  79. #define WEIGHT_0_DB 0x4000
  80. /* all the FEs which can support channel mixer */
  81. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  82. /* input BE for each FE */
  83. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  84. enum {
  85. MADNONE,
  86. MADAUDIO,
  87. MADBEACON,
  88. MADULTRASOUND,
  89. MADSWAUDIO,
  90. };
  91. #define ADM_LSM_PORT_INDEX 9
  92. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  93. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  94. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  95. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  96. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  97. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  98. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  99. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  100. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  101. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  102. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  103. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  104. #define LSM_FUNCTION_TEXT "LSM Function"
  105. static const char * const lsm_port_text[] = {
  106. "None",
  107. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  108. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  109. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  110. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT
  111. };
  112. struct msm_pcm_route_bdai_pp_params {
  113. u16 port_id; /* AFE port ID */
  114. unsigned long pp_params_config;
  115. bool mute_on;
  116. int latency;
  117. };
  118. static struct msm_pcm_route_bdai_pp_params
  119. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  120. {HDMI_RX, 0, 0, 0},
  121. {DISPLAY_PORT_RX, 0, 0, 0},
  122. };
  123. /*
  124. * The be_dai_name_table is passed to HAL so that it can specify the
  125. * BE ID for the BE it wants to enable based on the name. Thus there
  126. * is a matching table and structure in HAL that need to be updated
  127. * if any changes to these are made.
  128. */
  129. struct msm_pcm_route_bdai_name {
  130. unsigned int be_id;
  131. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  132. };
  133. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  134. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  135. int fe_id);
  136. static void msm_routing_load_topology(size_t data_size, void *data);
  137. static void msm_routing_unload_topology(uint32_t topology_id);
  138. static int msm_routing_get_bit_width(unsigned int format)
  139. {
  140. int bit_width;
  141. switch (format) {
  142. case SNDRV_PCM_FORMAT_S32_LE:
  143. bit_width = 32;
  144. break;
  145. case SNDRV_PCM_FORMAT_S24_LE:
  146. case SNDRV_PCM_FORMAT_S24_3LE:
  147. bit_width = 24;
  148. break;
  149. case SNDRV_PCM_FORMAT_S16_LE:
  150. default:
  151. bit_width = 16;
  152. }
  153. return bit_width;
  154. }
  155. static bool msm_is_resample_needed(int input_sr, int output_sr)
  156. {
  157. bool rc = false;
  158. if (input_sr != output_sr)
  159. rc = true;
  160. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  161. (rc ? "oh yes" : "not really"),
  162. input_sr, output_sr);
  163. return rc;
  164. }
  165. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  166. int channels)
  167. {
  168. int rc = 0;
  169. switch (topology) {
  170. case SRS_TRUMEDIA_TOPOLOGY_ID:
  171. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  172. msm_dts_srs_tm_init(port_id, copp_idx);
  173. break;
  174. case DS2_ADM_COPP_TOPOLOGY_ID:
  175. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  176. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  177. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  178. is_custom_stereo_on);
  179. if (rc < 0)
  180. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  181. __func__, topology, port_id,
  182. is_custom_stereo_on, rc);
  183. break;
  184. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  185. if (is_ds2_on) {
  186. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  187. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  188. is_custom_stereo_on);
  189. if (rc < 0)
  190. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  191. __func__, topology, port_id, rc);
  192. } else {
  193. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  194. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  195. is_custom_stereo_on);
  196. if (rc < 0)
  197. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  198. __func__, topology, port_id, rc);
  199. }
  200. break;
  201. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  202. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  203. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  204. if (rc < 0)
  205. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  206. __func__, topology, port_id, copp_idx, rc);
  207. break;
  208. default:
  209. /* custom topology specific feature param handlers */
  210. break;
  211. }
  212. }
  213. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  214. {
  215. switch (topology) {
  216. case SRS_TRUMEDIA_TOPOLOGY_ID:
  217. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  218. msm_dts_srs_tm_deinit(port_id);
  219. break;
  220. case DS2_ADM_COPP_TOPOLOGY_ID:
  221. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  222. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  223. msm_ds2_dap_deinit(port_id);
  224. break;
  225. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  226. if (is_ds2_on) {
  227. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  228. msm_ds2_dap_deinit(port_id);
  229. } else {
  230. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  231. msm_dolby_dap_deinit(port_id);
  232. }
  233. break;
  234. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  235. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  236. msm_qti_pp_asphere_deinit(port_id);
  237. break;
  238. default:
  239. /* custom topology specific feature deinit handlers */
  240. break;
  241. }
  242. }
  243. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  244. int path_type, int perf_mode)
  245. {
  246. int itr = 0, rc = 0;
  247. if ((path_type == ADM_PATH_PLAYBACK) &&
  248. (perf_mode == LEGACY_PCM_MODE) &&
  249. is_custom_stereo_on) {
  250. for (itr = 0; itr < payload.num_copps; itr++) {
  251. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  252. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  253. continue;
  254. }
  255. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  256. payload.port_id[itr],
  257. payload.copp_idx[itr],
  258. payload.session_id,
  259. Q14_GAIN_ZERO_POINT_FIVE,
  260. Q14_GAIN_ZERO_POINT_FIVE,
  261. Q14_GAIN_ZERO_POINT_FIVE,
  262. Q14_GAIN_ZERO_POINT_FIVE);
  263. if (rc < 0)
  264. pr_err("%s: err setting custom stereo\n",
  265. __func__);
  266. }
  267. }
  268. }
  269. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  270. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  271. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_RX},
  272. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_PRI_I2S_TX},
  273. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_RX},
  274. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_0_TX},
  275. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_HDMI},
  276. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_RX},
  277. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_BT_SCO_TX},
  278. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_RX},
  279. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_INT_FM_TX},
  280. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  281. LPASS_BE_AFE_PCM_RX},
  282. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  283. LPASS_BE_AFE_PCM_TX},
  284. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  285. LPASS_BE_AUXPCM_RX},
  286. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  287. LPASS_BE_AUXPCM_TX},
  288. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  289. LPASS_BE_VOICE_PLAYBACK_TX},
  290. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  291. LPASS_BE_VOICE2_PLAYBACK_TX},
  292. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  293. LPASS_BE_INCALL_RECORD_RX},
  294. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  295. LPASS_BE_INCALL_RECORD_TX},
  296. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_RX},
  297. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_MI2S_TX},
  298. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SEC_I2S_RX},
  299. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_RX},
  300. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_1_TX},
  301. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_RX},
  302. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_2_TX},
  303. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_RX},
  304. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_3_TX},
  305. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_RX},
  306. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_4_TX},
  307. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_RX},
  308. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_5_TX},
  309. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_RX},
  310. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_6_TX},
  311. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_RX},
  312. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_7_TX},
  313. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_RX},
  314. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_SLIMBUS_8_TX},
  315. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_RX},
  316. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_TX},
  317. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, {0}, LPASS_BE_STUB_1_TX},
  318. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  319. LPASS_BE_QUAT_MI2S_RX},
  320. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  321. LPASS_BE_QUAT_MI2S_TX},
  322. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  323. LPASS_BE_SEC_MI2S_RX},
  324. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  325. LPASS_BE_SEC_MI2S_TX},
  326. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  327. LPASS_BE_PRI_MI2S_RX},
  328. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  329. LPASS_BE_PRI_MI2S_TX},
  330. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  331. LPASS_BE_TERT_MI2S_RX},
  332. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  333. LPASS_BE_TERT_MI2S_TX},
  334. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  335. LPASS_BE_AUDIO_I2S_RX},
  336. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  337. LPASS_BE_SEC_AUXPCM_RX},
  338. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  339. LPASS_BE_SEC_AUXPCM_TX},
  340. { AFE_PORT_ID_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  341. LPASS_BE_SPDIF_RX},
  342. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  343. LPASS_BE_SEC_MI2S_RX_SD1},
  344. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  345. LPASS_BE_QUIN_MI2S_RX},
  346. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  347. LPASS_BE_QUIN_MI2S_TX},
  348. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  349. LPASS_BE_SENARY_MI2S_TX},
  350. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  351. LPASS_BE_PRI_TDM_RX_0},
  352. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  353. LPASS_BE_PRI_TDM_TX_0},
  354. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  355. LPASS_BE_PRI_TDM_RX_1},
  356. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  357. LPASS_BE_PRI_TDM_TX_1},
  358. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  359. LPASS_BE_PRI_TDM_RX_2},
  360. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  361. LPASS_BE_PRI_TDM_TX_2},
  362. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  363. LPASS_BE_PRI_TDM_RX_3},
  364. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  365. LPASS_BE_PRI_TDM_TX_3},
  366. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  367. LPASS_BE_PRI_TDM_RX_4},
  368. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  369. LPASS_BE_PRI_TDM_TX_4},
  370. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  371. LPASS_BE_PRI_TDM_RX_5},
  372. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  373. LPASS_BE_PRI_TDM_TX_5},
  374. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  375. LPASS_BE_PRI_TDM_RX_6},
  376. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  377. LPASS_BE_PRI_TDM_TX_6},
  378. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  379. LPASS_BE_PRI_TDM_RX_7},
  380. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  381. LPASS_BE_PRI_TDM_TX_7},
  382. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  383. LPASS_BE_SEC_TDM_RX_0},
  384. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  385. LPASS_BE_SEC_TDM_TX_0},
  386. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  387. LPASS_BE_SEC_TDM_RX_1},
  388. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  389. LPASS_BE_SEC_TDM_TX_1},
  390. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  391. LPASS_BE_SEC_TDM_RX_2},
  392. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  393. LPASS_BE_SEC_TDM_TX_2},
  394. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  395. LPASS_BE_SEC_TDM_RX_3},
  396. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  397. LPASS_BE_SEC_TDM_TX_3},
  398. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  399. LPASS_BE_SEC_TDM_RX_4},
  400. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  401. LPASS_BE_SEC_TDM_TX_4},
  402. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  403. LPASS_BE_SEC_TDM_RX_5},
  404. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  405. LPASS_BE_SEC_TDM_TX_5},
  406. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  407. LPASS_BE_SEC_TDM_RX_6},
  408. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  409. LPASS_BE_SEC_TDM_TX_6},
  410. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  411. LPASS_BE_SEC_TDM_RX_7},
  412. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  413. LPASS_BE_SEC_TDM_TX_7},
  414. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  415. LPASS_BE_TERT_TDM_RX_0},
  416. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  417. LPASS_BE_TERT_TDM_TX_0},
  418. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  419. LPASS_BE_TERT_TDM_RX_1},
  420. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  421. LPASS_BE_TERT_TDM_TX_1},
  422. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  423. LPASS_BE_TERT_TDM_RX_2},
  424. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  425. LPASS_BE_TERT_TDM_TX_2},
  426. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  427. LPASS_BE_TERT_TDM_RX_3},
  428. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  429. LPASS_BE_TERT_TDM_TX_3},
  430. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  431. LPASS_BE_TERT_TDM_RX_4},
  432. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  433. LPASS_BE_TERT_TDM_TX_4},
  434. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  435. LPASS_BE_TERT_TDM_RX_5},
  436. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  437. LPASS_BE_TERT_TDM_TX_5},
  438. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  439. LPASS_BE_TERT_TDM_RX_6},
  440. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  441. LPASS_BE_TERT_TDM_TX_6},
  442. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  443. LPASS_BE_TERT_TDM_RX_7},
  444. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  445. LPASS_BE_TERT_TDM_TX_7},
  446. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  447. LPASS_BE_QUAT_TDM_RX_0},
  448. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  449. LPASS_BE_QUAT_TDM_TX_0},
  450. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  451. LPASS_BE_QUAT_TDM_RX_1},
  452. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  453. LPASS_BE_QUAT_TDM_TX_1},
  454. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  455. LPASS_BE_QUAT_TDM_RX_2},
  456. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  457. LPASS_BE_QUAT_TDM_TX_2},
  458. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  459. LPASS_BE_QUAT_TDM_RX_3},
  460. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  461. LPASS_BE_QUAT_TDM_TX_3},
  462. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  463. LPASS_BE_QUAT_TDM_RX_4},
  464. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  465. LPASS_BE_QUAT_TDM_TX_4},
  466. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  467. LPASS_BE_QUAT_TDM_RX_5},
  468. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  469. LPASS_BE_QUAT_TDM_TX_5},
  470. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  471. LPASS_BE_QUAT_TDM_RX_6},
  472. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  473. LPASS_BE_QUAT_TDM_TX_6},
  474. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  475. LPASS_BE_QUAT_TDM_RX_7},
  476. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  477. LPASS_BE_QUAT_TDM_TX_7},
  478. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  479. LPASS_BE_QUIN_TDM_RX_0},
  480. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  481. LPASS_BE_QUIN_TDM_TX_0},
  482. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  483. LPASS_BE_QUIN_TDM_RX_1},
  484. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  485. LPASS_BE_QUIN_TDM_TX_1},
  486. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  487. LPASS_BE_QUIN_TDM_RX_2},
  488. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  489. LPASS_BE_QUIN_TDM_TX_2},
  490. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  491. LPASS_BE_QUIN_TDM_RX_3},
  492. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0, {0},
  493. LPASS_BE_QUIN_TDM_TX_3},
  494. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  495. LPASS_BE_QUIN_TDM_RX_4},
  496. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0, {0},
  497. LPASS_BE_QUIN_TDM_TX_4},
  498. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  499. LPASS_BE_QUIN_TDM_RX_5},
  500. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0, {0},
  501. LPASS_BE_QUIN_TDM_TX_5},
  502. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  503. LPASS_BE_QUIN_TDM_RX_6},
  504. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0, {0},
  505. LPASS_BE_QUIN_TDM_TX_6},
  506. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  507. LPASS_BE_QUIN_TDM_RX_7},
  508. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0, {0},
  509. LPASS_BE_QUIN_TDM_TX_7},
  510. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  511. LPASS_BE_INT_BT_A2DP_RX},
  512. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  513. LPASS_BE_USB_AUDIO_RX},
  514. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  515. LPASS_BE_USB_AUDIO_TX},
  516. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  517. LPASS_BE_DISPLAY_PORT},
  518. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  519. LPASS_BE_DISPLAY_PORT1},
  520. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  521. LPASS_BE_TERT_AUXPCM_RX},
  522. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  523. LPASS_BE_TERT_AUXPCM_TX},
  524. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  525. LPASS_BE_QUAT_AUXPCM_RX},
  526. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  527. LPASS_BE_QUAT_AUXPCM_TX},
  528. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  529. LPASS_BE_QUIN_AUXPCM_RX},
  530. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  531. LPASS_BE_QUIN_AUXPCM_TX},
  532. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  533. LPASS_BE_INT0_MI2S_RX},
  534. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  535. LPASS_BE_INT0_MI2S_TX},
  536. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  537. LPASS_BE_INT1_MI2S_RX},
  538. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  539. LPASS_BE_INT1_MI2S_TX},
  540. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  541. LPASS_BE_INT2_MI2S_RX},
  542. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  543. LPASS_BE_INT2_MI2S_TX},
  544. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  545. LPASS_BE_INT3_MI2S_RX},
  546. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  547. LPASS_BE_INT3_MI2S_TX},
  548. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  549. LPASS_BE_INT4_MI2S_RX},
  550. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  551. LPASS_BE_INT4_MI2S_TX},
  552. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  553. LPASS_BE_INT5_MI2S_RX},
  554. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  555. LPASS_BE_INT5_MI2S_TX},
  556. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  557. LPASS_BE_INT6_MI2S_RX},
  558. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, {0},
  559. LPASS_BE_INT6_MI2S_TX},
  560. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  561. LPASS_BE_WSA_CDC_DMA_RX_0},
  562. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  563. LPASS_BE_WSA_CDC_DMA_TX_0},
  564. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  565. LPASS_BE_WSA_CDC_DMA_RX_1},
  566. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  567. LPASS_BE_WSA_CDC_DMA_TX_1},
  568. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0, {0},
  569. LPASS_BE_WSA_CDC_DMA_TX_2},
  570. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0, {0},
  571. LPASS_BE_VA_CDC_DMA_TX_0},
  572. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0, {0},
  573. LPASS_BE_VA_CDC_DMA_TX_1},
  574. };
  575. /* Track ASM playback & capture sessions of DAI
  576. * Track LSM listen sessions
  577. */
  578. static struct msm_pcm_routing_fdai_data
  579. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  580. /* MULTIMEDIA1 */
  581. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  582. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  583. /* MULTIMEDIA2 */
  584. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  585. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  586. /* MULTIMEDIA3 */
  587. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  588. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  589. /* MULTIMEDIA4 */
  590. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  591. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  592. /* MULTIMEDIA5 */
  593. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  594. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  595. /* MULTIMEDIA6 */
  596. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  597. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  598. /* MULTIMEDIA7*/
  599. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  600. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  601. /* MULTIMEDIA8 */
  602. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  603. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  604. /* MULTIMEDIA9 */
  605. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  606. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  607. /* MULTIMEDIA10 */
  608. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  609. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  610. /* MULTIMEDIA11 */
  611. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  612. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  613. /* MULTIMEDIA12 */
  614. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  615. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  616. /* MULTIMEDIA13 */
  617. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  618. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  619. /* MULTIMEDIA14 */
  620. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  621. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  622. /* MULTIMEDIA15 */
  623. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  624. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  625. /* MULTIMEDIA16 */
  626. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  627. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  628. /* MULTIMEDIA17 */
  629. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  630. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  631. /* MULTIMEDIA18 */
  632. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  633. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  634. /* MULTIMEDIA19 */
  635. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  636. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  637. /* MULTIMEDIA20 */
  638. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  639. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  640. /* MULTIMEDIA28 */
  641. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  642. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  643. /* MULTIMEDIA29 */
  644. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  645. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  646. /* VOIP */
  647. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  648. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  649. /* AFE_RX */
  650. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  651. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  652. /* AFE_TX */
  653. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  654. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  655. /* VOICE_STUB */
  656. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  657. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  658. /* DTMF_RX */
  659. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  660. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  661. /* QCHAT */
  662. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  663. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  664. /* VOLTE_STUB */
  665. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  666. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  667. /* LSM1 */
  668. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  669. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  670. /* LSM2 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  673. /* LSM3 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  676. /* LSM4 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  679. /* LSM5 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  682. /* LSM6 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  685. /* LSM7 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  688. /* LSM8 */
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  691. /* VOICE2_STUB */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  694. /* VOICEMMODE1 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  697. /* VOICEMMODE2 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} },
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL} } },
  700. };
  701. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  702. [MSM_BACKEND_DAI_MAX];
  703. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  704. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  705. static struct msm_pcm_stream_app_type_cfg
  706. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  707. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  708. /* The caller of this should aqcuire routing lock */
  709. void msm_pcm_routing_get_bedai_info(int be_idx,
  710. struct msm_pcm_routing_bdai_data *be_dai)
  711. {
  712. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  713. memcpy(be_dai, &msm_bedais[be_idx],
  714. sizeof(struct msm_pcm_routing_bdai_data));
  715. }
  716. /* The caller of this should aqcuire routing lock */
  717. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  718. struct msm_pcm_routing_fdai_data *fe_dai)
  719. {
  720. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  721. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  722. sizeof(struct msm_pcm_routing_fdai_data));
  723. }
  724. void msm_pcm_routing_acquire_lock(void)
  725. {
  726. mutex_lock(&routing_lock);
  727. }
  728. void msm_pcm_routing_release_lock(void)
  729. {
  730. mutex_unlock(&routing_lock);
  731. }
  732. static int msm_pcm_routing_get_app_type_idx(int app_type)
  733. {
  734. int idx;
  735. pr_debug("%s: app_type: %d\n", __func__, app_type);
  736. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  737. if (app_type_cfg[idx].app_type == app_type)
  738. return idx;
  739. }
  740. pr_info("%s: App type not available, fallback to default\n", __func__);
  741. return 0;
  742. }
  743. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  744. {
  745. int idx;
  746. pr_debug("%s: app_type: %d\n", __func__, app_type);
  747. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  748. if (lsm_app_type_cfg[idx].app_type == app_type)
  749. return idx;
  750. }
  751. pr_debug("%s: App type not available, fallback to default\n", __func__);
  752. return 0;
  753. }
  754. static bool is_mm_lsm_fe_id(int fe_id)
  755. {
  756. bool rc = true;
  757. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  758. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  759. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  760. rc = false;
  761. }
  762. return rc;
  763. }
  764. /*
  765. * msm_pcm_routing_send_chmix_cfg:
  766. * send the channel mixer command to mix the input channels
  767. * into output channels.
  768. *
  769. * @fe_id: front end id
  770. * @ip_channel_cnt: input channel count
  771. * @op_channel_cnt: output channel count
  772. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  773. * @session_type: indicates session is of type TX or RX
  774. * @stream_type: indicates either Audio or Listen stream type
  775. */
  776. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  777. int op_channel_cnt, int *ch_wght_coeff,
  778. int session_type, int stream_type)
  779. {
  780. int rc = 0, idx = 0;
  781. int be_index = 0, port_id;
  782. unsigned int session_id = 0;
  783. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  784. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  785. stream_type);
  786. if (!is_mm_lsm_fe_id(fe_id)) {
  787. /* bad ID assigned in machine driver */
  788. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  789. return -EINVAL;
  790. }
  791. if (ch_wght_coeff == NULL) {
  792. pr_err("%s: Null channel weightage coefficients passed\n",
  793. __func__);
  794. return -EINVAL;
  795. }
  796. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  797. port_id = msm_bedais[be_index].port_id;
  798. if (!msm_bedais[be_index].active ||
  799. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  800. continue;
  801. session_id = fe_dai_map[fe_id][session_type].strm_id;
  802. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  803. unsigned long copp =
  804. session_copp_map[fe_id][session_type][be_index];
  805. if (!test_bit(idx, &copp))
  806. continue;
  807. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  808. session_id, ip_channel_cnt,
  809. op_channel_cnt, ch_wght_coeff,
  810. session_type, stream_type);
  811. if (rc < 0)
  812. pr_err("%s: err setting channel mix config\n",
  813. __func__);
  814. }
  815. }
  816. return 0;
  817. }
  818. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  819. int msm_pcm_routing_reg_stream_app_type_cfg(
  820. int fedai_id, int session_type, int be_id,
  821. struct msm_pcm_stream_app_type_cfg *cfg_data)
  822. {
  823. int ret = 0;
  824. if (cfg_data == NULL) {
  825. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  826. ret = -EINVAL;
  827. goto done;
  828. }
  829. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  830. __func__, fedai_id, session_type, be_id,
  831. cfg_data->app_type, cfg_data->acdb_dev_id,
  832. cfg_data->sample_rate);
  833. if (!is_mm_lsm_fe_id(fedai_id)) {
  834. pr_err("%s: Invalid machine driver ID %d\n",
  835. __func__, fedai_id);
  836. ret = -EINVAL;
  837. goto done;
  838. }
  839. if (session_type != SESSION_TYPE_RX &&
  840. session_type != SESSION_TYPE_TX) {
  841. pr_err("%s: Invalid session type %d\n",
  842. __func__, session_type);
  843. ret = -EINVAL;
  844. goto done;
  845. }
  846. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  847. pr_err("%s: Received out of bounds be_id %d\n",
  848. __func__, be_id);
  849. ret = -EINVAL;
  850. goto done;
  851. }
  852. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  853. /*
  854. * Store the BE ID of the configuration information set as the latest so
  855. * the get mixer control knows what to return.
  856. */
  857. last_be_id_configured[fedai_id][session_type] = be_id;
  858. done:
  859. return ret;
  860. }
  861. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  862. /**
  863. * msm_pcm_routing_get_stream_app_type_cfg
  864. *
  865. * Receives fedai_id, session_type, be_id, and populates app_type,
  866. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  867. * -EINVAL and does not alter passed values.
  868. *
  869. * fedai_id - Passed value, front end ID for which app type config is wanted
  870. * session_type - Passed value, session type for which app type config
  871. * is wanted
  872. * be_id - Returned value, back end device id the app type config data is for
  873. * cfg_data - Returned value, configuration data used by app type config
  874. */
  875. int msm_pcm_routing_get_stream_app_type_cfg(
  876. int fedai_id, int session_type, int *bedai_id,
  877. struct msm_pcm_stream_app_type_cfg *cfg_data)
  878. {
  879. int be_id;
  880. int ret = 0;
  881. if (bedai_id == NULL) {
  882. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  883. ret = -EINVAL;
  884. goto done;
  885. } else if (cfg_data == NULL) {
  886. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  887. ret = -EINVAL;
  888. goto done;
  889. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  890. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  891. ret = -EINVAL;
  892. goto done;
  893. } else if (session_type != SESSION_TYPE_RX &&
  894. session_type != SESSION_TYPE_TX) {
  895. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  896. ret = -EINVAL;
  897. goto done;
  898. }
  899. be_id = last_be_id_configured[fedai_id][session_type];
  900. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  901. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  902. ret = -EINVAL;
  903. goto done;
  904. }
  905. *bedai_id = be_id;
  906. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  907. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  908. __func__, fedai_id, session_type, *bedai_id,
  909. cfg_data->app_type, cfg_data->acdb_dev_id,
  910. cfg_data->sample_rate);
  911. done:
  912. return ret;
  913. }
  914. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  915. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  916. int cal_index)
  917. {
  918. struct list_head *ptr, *next;
  919. struct cal_block_data *cal_block = NULL;
  920. pr_debug("%s\n", __func__);
  921. list_for_each_safe(ptr, next,
  922. &cal_data[cal_index]->cal_blocks) {
  923. cal_block = list_entry(ptr,
  924. struct cal_block_data, list);
  925. if (cal_utils_is_cal_stale(cal_block))
  926. continue;
  927. if (((struct audio_cal_info_adm_top *)cal_block
  928. ->cal_info)->path == path) {
  929. return cal_block;
  930. }
  931. }
  932. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  933. return NULL;
  934. }
  935. static struct cal_block_data *msm_routing_find_topology(int path,
  936. int app_type,
  937. int acdb_id,
  938. int cal_index)
  939. {
  940. struct list_head *ptr, *next;
  941. struct cal_block_data *cal_block = NULL;
  942. struct audio_cal_info_adm_top *cal_info;
  943. pr_debug("%s\n", __func__);
  944. list_for_each_safe(ptr, next,
  945. &cal_data[cal_index]->cal_blocks) {
  946. cal_block = list_entry(ptr,
  947. struct cal_block_data, list);
  948. if (cal_utils_is_cal_stale(cal_block))
  949. continue;
  950. cal_info = (struct audio_cal_info_adm_top *)
  951. cal_block->cal_info;
  952. if ((cal_info->path == path) &&
  953. (cal_info->app_type == app_type) &&
  954. (cal_info->acdb_id == acdb_id)) {
  955. return cal_block;
  956. }
  957. }
  958. pr_debug("%s: Can't find topology for path %d, app %d, acdb_id %d defaulting to search by path\n",
  959. __func__, path, app_type, acdb_id);
  960. return msm_routing_find_topology_by_path(path, cal_index);
  961. }
  962. /*
  963. * Retrieving cal_block will mark cal_block as stale.
  964. * Hence it cannot be reused or resent unless the flag
  965. * is reset.
  966. */
  967. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  968. int be_id)
  969. {
  970. int topology = NULL_COPP_TOPOLOGY;
  971. struct cal_block_data *cal_block = NULL;
  972. int app_type = 0, acdb_dev_id = 0;
  973. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  974. __func__, fedai_id, session_type, be_id);
  975. if (cal_data == NULL)
  976. goto done;
  977. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  978. acdb_dev_id =
  979. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  980. mutex_lock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  981. cal_block = msm_routing_find_topology(session_type, app_type,
  982. acdb_dev_id,
  983. ADM_TOPOLOGY_CAL_TYPE_IDX);
  984. if (cal_block != NULL) {
  985. topology = ((struct audio_cal_info_adm_top *)
  986. cal_block->cal_info)->topology;
  987. cal_utils_mark_cal_used(cal_block);
  988. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  989. } else {
  990. mutex_unlock(&cal_data[ADM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  991. pr_debug("%s: Check for LSM topology\n", __func__);
  992. mutex_lock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  993. cal_block = msm_routing_find_topology(session_type, app_type,
  994. acdb_dev_id,
  995. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX);
  996. if (cal_block != NULL) {
  997. topology = ((struct audio_cal_info_adm_top *)
  998. cal_block->cal_info)->topology;
  999. cal_utils_mark_cal_used(cal_block);
  1000. }
  1001. mutex_unlock(&cal_data[ADM_LSM_TOPOLOGY_CAL_TYPE_IDX]->lock);
  1002. }
  1003. done:
  1004. pr_debug("%s: Using topology %d\n", __func__, topology);
  1005. return topology;
  1006. }
  1007. static uint8_t is_be_dai_extproc(int be_dai)
  1008. {
  1009. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1010. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1011. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1012. return 1;
  1013. else
  1014. return 0;
  1015. }
  1016. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1017. int path_type, int perf_mode,
  1018. uint32_t passthr_mode)
  1019. {
  1020. int i, port_type, j, num_copps = 0;
  1021. struct route_payload payload;
  1022. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1023. path_type == ADM_PATH_COMPRESSED_RX) ?
  1024. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1025. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1026. if (!is_be_dai_extproc(i) &&
  1027. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1028. (msm_bedais[i].active) &&
  1029. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1030. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1031. unsigned long copp =
  1032. session_copp_map[fedai_id][sess_type][i];
  1033. if (test_bit(j, &copp)) {
  1034. payload.port_id[num_copps] =
  1035. msm_bedais[i].port_id;
  1036. payload.copp_idx[num_copps] = j;
  1037. payload.app_type[num_copps] =
  1038. fe_dai_app_type_cfg
  1039. [fedai_id][sess_type][i]
  1040. .app_type;
  1041. payload.acdb_dev_id[num_copps] =
  1042. fe_dai_app_type_cfg
  1043. [fedai_id][sess_type][i]
  1044. .acdb_dev_id;
  1045. payload.sample_rate[num_copps] =
  1046. fe_dai_app_type_cfg
  1047. [fedai_id][sess_type][i]
  1048. .sample_rate;
  1049. num_copps++;
  1050. }
  1051. }
  1052. }
  1053. }
  1054. if (num_copps) {
  1055. payload.num_copps = num_copps;
  1056. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1057. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1058. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1059. }
  1060. }
  1061. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1062. int stream_type)
  1063. {
  1064. int i, session_type, path_type, port_type;
  1065. u32 mode = 0;
  1066. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1067. /* bad ID assigned in machine driver */
  1068. pr_err("%s: bad MM ID\n", __func__);
  1069. return;
  1070. }
  1071. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1072. session_type = SESSION_TYPE_RX;
  1073. path_type = ADM_PATH_PLAYBACK;
  1074. port_type = MSM_AFE_PORT_TYPE_RX;
  1075. } else {
  1076. session_type = SESSION_TYPE_TX;
  1077. path_type = ADM_PATH_LIVE_REC;
  1078. port_type = MSM_AFE_PORT_TYPE_TX;
  1079. }
  1080. mutex_lock(&routing_lock);
  1081. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1082. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1083. if (!is_be_dai_extproc(i) &&
  1084. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1085. (msm_bedais[i].active) &&
  1086. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1087. mode = afe_get_port_type(msm_bedais[i].port_id);
  1088. adm_connect_afe_port(mode, dspst_id,
  1089. msm_bedais[i].port_id);
  1090. break;
  1091. }
  1092. }
  1093. mutex_unlock(&routing_lock);
  1094. }
  1095. static bool route_check_fe_id_adm_support(int fe_id)
  1096. {
  1097. bool rc = true;
  1098. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1099. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1100. /* fe id is listen while port is set to afe */
  1101. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1102. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1103. __func__, fe_id, lsm_port_index);
  1104. rc = false;
  1105. }
  1106. }
  1107. return rc;
  1108. }
  1109. /*
  1110. * msm_pcm_routing_get_pp_ch_cnt:
  1111. * Read the processed channel count
  1112. *
  1113. * @fe_id: Front end ID
  1114. * @session_type: Inidicates RX or TX session type
  1115. */
  1116. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1117. {
  1118. struct msm_pcm_stream_app_type_cfg cfg_data;
  1119. int be_id = 0, app_type_idx = 0, app_type = 0;
  1120. int ret;
  1121. memset(&cfg_data, 0, sizeof(cfg_data));
  1122. if (!is_mm_lsm_fe_id(fe_id)) {
  1123. pr_err("%s: bad MM ID\n", __func__);
  1124. return -EINVAL;
  1125. }
  1126. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1127. &be_id, &cfg_data);
  1128. if (ret) {
  1129. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1130. return ret;
  1131. }
  1132. app_type = cfg_data.app_type;
  1133. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1134. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1135. }
  1136. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1137. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1138. int dspst_id, int stream_type,
  1139. uint32_t passthr_mode)
  1140. {
  1141. int i, j, session_type, path_type, port_type, topology;
  1142. int num_copps = 0;
  1143. struct route_payload payload;
  1144. u32 channels, sample_rate;
  1145. u16 bit_width = 16;
  1146. bool is_lsm;
  1147. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1148. __func__, fe_id, perf_mode, dspst_id,
  1149. stream_type, passthr_mode);
  1150. if (!is_mm_lsm_fe_id(fe_id)) {
  1151. /* bad ID assigned in machine driver */
  1152. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1153. return -EINVAL;
  1154. }
  1155. if (!route_check_fe_id_adm_support(fe_id)) {
  1156. /* ignore adm open if not supported for fe_id */
  1157. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1158. return 0;
  1159. }
  1160. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1161. session_type = SESSION_TYPE_RX;
  1162. if (passthr_mode != LEGACY_PCM)
  1163. path_type = ADM_PATH_COMPRESSED_RX;
  1164. else
  1165. path_type = ADM_PATH_PLAYBACK;
  1166. port_type = MSM_AFE_PORT_TYPE_RX;
  1167. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1168. session_type = SESSION_TYPE_TX;
  1169. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1170. path_type = ADM_PATH_COMPRESSED_TX;
  1171. else
  1172. path_type = ADM_PATH_LIVE_REC;
  1173. port_type = MSM_AFE_PORT_TYPE_TX;
  1174. } else {
  1175. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1176. return -EINVAL;
  1177. }
  1178. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1179. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1180. mutex_lock(&routing_lock);
  1181. payload.num_copps = 0; /* only RX needs to use payload */
  1182. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1183. /* re-enable EQ if active */
  1184. msm_qti_pp_send_eq_values(fe_id);
  1185. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1186. if (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))
  1187. msm_bedais[i].passthr_mode[fe_id] = passthr_mode;
  1188. if (!is_be_dai_extproc(i) &&
  1189. (afe_get_port_type(msm_bedais[i].port_id) ==
  1190. port_type) &&
  1191. (msm_bedais[i].active) &&
  1192. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1193. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1194. /*
  1195. * check if ADM needs to be configured with different
  1196. * channel mapping than backend
  1197. */
  1198. if (!msm_bedais[i].adm_override_ch)
  1199. channels = msm_bedais[i].channel;
  1200. else
  1201. channels = msm_bedais[i].adm_override_ch;
  1202. bit_width = msm_routing_get_bit_width(
  1203. msm_bedais[i].format);
  1204. app_type =
  1205. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1206. if (app_type && is_lsm) {
  1207. app_type_idx =
  1208. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1209. sample_rate =
  1210. fe_dai_app_type_cfg[fe_id][session_type][i]
  1211. .sample_rate;
  1212. bit_width =
  1213. lsm_app_type_cfg[app_type_idx].bit_width;
  1214. } else if (app_type) {
  1215. app_type_idx =
  1216. msm_pcm_routing_get_app_type_idx(
  1217. app_type);
  1218. sample_rate =
  1219. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1220. bit_width =
  1221. app_type_cfg[app_type_idx].bit_width;
  1222. } else {
  1223. sample_rate = msm_bedais[i].sample_rate;
  1224. }
  1225. acdb_dev_id =
  1226. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1227. topology = msm_routing_get_adm_topology(fe_id,
  1228. session_type,
  1229. i);
  1230. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1231. || (passthr_mode ==
  1232. COMPRESSED_PASSTHROUGH_GEN))
  1233. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1234. pr_debug("%s: Before adm open topology %d\n", __func__,
  1235. topology);
  1236. copp_idx =
  1237. adm_open(msm_bedais[i].port_id,
  1238. path_type, sample_rate, channels,
  1239. topology, perf_mode, bit_width,
  1240. app_type, acdb_dev_id);
  1241. if ((copp_idx < 0) ||
  1242. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1243. pr_err("%s:adm open failed coppid:%d\n",
  1244. __func__, copp_idx);
  1245. mutex_unlock(&routing_lock);
  1246. return -EINVAL;
  1247. }
  1248. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1249. __func__, fe_id, session_type, i);
  1250. set_bit(copp_idx,
  1251. &session_copp_map[fe_id][session_type][i]);
  1252. if (msm_is_resample_needed(
  1253. sample_rate,
  1254. msm_bedais[i].sample_rate))
  1255. adm_copp_mfc_cfg(
  1256. msm_bedais[i].port_id, copp_idx,
  1257. msm_bedais[i].sample_rate);
  1258. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1259. unsigned long copp =
  1260. session_copp_map[fe_id][session_type][i];
  1261. if (test_bit(j, &copp)) {
  1262. payload.port_id[num_copps] =
  1263. msm_bedais[i].port_id;
  1264. payload.copp_idx[num_copps] = j;
  1265. payload.app_type[num_copps] =
  1266. fe_dai_app_type_cfg
  1267. [fe_id][session_type][i]
  1268. .app_type;
  1269. payload.acdb_dev_id[num_copps] =
  1270. fe_dai_app_type_cfg
  1271. [fe_id][session_type][i]
  1272. .acdb_dev_id;
  1273. payload.sample_rate[num_copps] =
  1274. fe_dai_app_type_cfg
  1275. [fe_id][session_type][i]
  1276. .sample_rate;
  1277. num_copps++;
  1278. }
  1279. }
  1280. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1281. && passthr_mode !=
  1282. COMPRESSED_PASSTHROUGH_GEN) {
  1283. msm_routing_send_device_pp_params(
  1284. msm_bedais[i].port_id,
  1285. copp_idx, fe_id);
  1286. }
  1287. }
  1288. }
  1289. if (num_copps) {
  1290. payload.num_copps = num_copps;
  1291. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1292. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1293. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1294. }
  1295. mutex_unlock(&routing_lock);
  1296. return 0;
  1297. }
  1298. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1299. {
  1300. u32 session_id;
  1301. switch (val) {
  1302. case MSM_FRONTEND_DAI_QCHAT:
  1303. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1304. break;
  1305. case MSM_FRONTEND_DAI_VOIP:
  1306. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1307. break;
  1308. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1309. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1310. break;
  1311. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1312. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1313. break;
  1314. default:
  1315. session_id = 0;
  1316. }
  1317. pr_debug("%s session_id 0x%x", __func__, session_id);
  1318. return session_id;
  1319. }
  1320. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1321. int dspst_id, int stream_type)
  1322. {
  1323. int copp_idx = 0;
  1324. int sess_type = 0;
  1325. int i = 0, j = 0, be_id;
  1326. int ret = 0;
  1327. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1328. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1329. return 0;
  1330. }
  1331. if (!(channel_mixer[fe_id].enable)) {
  1332. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1333. __func__, fe_id);
  1334. return 0;
  1335. }
  1336. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1337. sess_type = SESSION_TYPE_RX;
  1338. else
  1339. sess_type = SESSION_TYPE_TX;
  1340. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1341. ++i) {
  1342. be_id = channel_input[fe_id][i] - 1;
  1343. channel_mixer[fe_id].input_channels[i] =
  1344. msm_bedais[be_id].channel;
  1345. if ((msm_bedais[be_id].active) &&
  1346. test_bit(fe_id,
  1347. &msm_bedais[be_id].fe_sessions[0])) {
  1348. unsigned long copp =
  1349. session_copp_map[fe_id][sess_type][be_id];
  1350. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1351. if (test_bit(j, &copp)) {
  1352. copp_idx = j;
  1353. break;
  1354. }
  1355. }
  1356. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1357. __func__,
  1358. fe_id, be_id, msm_bedais[be_id].channel,
  1359. copp_idx);
  1360. ret = adm_programable_channel_mixer(
  1361. msm_bedais[be_id].port_id,
  1362. copp_idx, dspst_id, sess_type,
  1363. channel_mixer + fe_id, i);
  1364. }
  1365. }
  1366. return ret;
  1367. }
  1368. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1369. int dspst_id, int stream_type)
  1370. {
  1371. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1372. struct route_payload payload;
  1373. u32 channels, sample_rate;
  1374. uint16_t bits_per_sample = 16;
  1375. uint32_t passthr_mode = LEGACY_PCM;
  1376. int ret = 0;
  1377. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1378. /* bad ID assigned in machine driver */
  1379. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1380. return -EINVAL;
  1381. }
  1382. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1383. session_type = SESSION_TYPE_RX;
  1384. path_type = ADM_PATH_PLAYBACK;
  1385. port_type = MSM_AFE_PORT_TYPE_RX;
  1386. } else {
  1387. session_type = SESSION_TYPE_TX;
  1388. path_type = ADM_PATH_LIVE_REC;
  1389. port_type = MSM_AFE_PORT_TYPE_TX;
  1390. }
  1391. mutex_lock(&routing_lock);
  1392. payload.num_copps = 0; /* only RX needs to use payload */
  1393. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1394. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1395. /* re-enable EQ if active */
  1396. msm_qti_pp_send_eq_values(fedai_id);
  1397. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1398. if (!is_be_dai_extproc(i) &&
  1399. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1400. (msm_bedais[i].active) &&
  1401. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1402. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1403. /*
  1404. * check if ADM needs to be configured with different
  1405. * channel mapping than backend
  1406. */
  1407. if (!msm_bedais[i].adm_override_ch)
  1408. channels = msm_bedais[i].channel;
  1409. else
  1410. channels = msm_bedais[i].adm_override_ch;
  1411. msm_bedais[i].passthr_mode[fedai_id] =
  1412. LEGACY_PCM;
  1413. bits_per_sample = msm_routing_get_bit_width(
  1414. msm_bedais[i].format);
  1415. app_type =
  1416. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1417. if (app_type) {
  1418. app_type_idx =
  1419. msm_pcm_routing_get_app_type_idx(app_type);
  1420. sample_rate =
  1421. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1422. .sample_rate;
  1423. bits_per_sample =
  1424. app_type_cfg[app_type_idx].bit_width;
  1425. } else
  1426. sample_rate = msm_bedais[i].sample_rate;
  1427. acdb_dev_id =
  1428. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1429. .acdb_dev_id;
  1430. topology = msm_routing_get_adm_topology(fedai_id,
  1431. session_type,
  1432. i);
  1433. copp_idx = adm_open(msm_bedais[i].port_id, path_type,
  1434. sample_rate, channels, topology,
  1435. perf_mode, bits_per_sample,
  1436. app_type, acdb_dev_id);
  1437. if ((copp_idx < 0) ||
  1438. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1439. pr_err("%s: adm open failed copp_idx:%d\n",
  1440. __func__, copp_idx);
  1441. mutex_unlock(&routing_lock);
  1442. return -EINVAL;
  1443. }
  1444. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1445. __func__, fedai_id, session_type, i);
  1446. set_bit(copp_idx,
  1447. &session_copp_map[fedai_id][session_type][i]);
  1448. if (msm_is_resample_needed(
  1449. sample_rate,
  1450. msm_bedais[i].sample_rate))
  1451. adm_copp_mfc_cfg(
  1452. msm_bedais[i].port_id, copp_idx,
  1453. msm_bedais[i].sample_rate);
  1454. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1455. unsigned long copp =
  1456. session_copp_map[fedai_id][session_type][i];
  1457. if (test_bit(j, &copp)) {
  1458. payload.port_id[num_copps] =
  1459. msm_bedais[i].port_id;
  1460. payload.copp_idx[num_copps] = j;
  1461. payload.app_type[num_copps] =
  1462. fe_dai_app_type_cfg
  1463. [fedai_id][session_type]
  1464. [i].app_type;
  1465. payload.acdb_dev_id[num_copps] =
  1466. fe_dai_app_type_cfg
  1467. [fedai_id][session_type]
  1468. [i].acdb_dev_id;
  1469. payload.sample_rate[num_copps] =
  1470. fe_dai_app_type_cfg
  1471. [fedai_id][session_type]
  1472. [i].sample_rate;
  1473. num_copps++;
  1474. }
  1475. }
  1476. if ((perf_mode == LEGACY_PCM_MODE) &&
  1477. (msm_bedais[i].passthr_mode[fedai_id] ==
  1478. LEGACY_PCM))
  1479. msm_pcm_routing_cfg_pp(msm_bedais[i].port_id,
  1480. copp_idx, topology,
  1481. channels);
  1482. }
  1483. }
  1484. if (num_copps) {
  1485. payload.num_copps = num_copps;
  1486. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1487. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1488. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1489. }
  1490. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1491. dspst_id, stream_type);
  1492. mutex_unlock(&routing_lock);
  1493. return ret;
  1494. }
  1495. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1496. int dspst_id, int stream_type,
  1497. struct msm_pcm_routing_evt event_info)
  1498. {
  1499. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1500. stream_type)) {
  1501. pr_err("%s: failed to reg phy stream\n", __func__);
  1502. return -EINVAL;
  1503. }
  1504. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1505. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1506. else
  1507. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1508. return 0;
  1509. }
  1510. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1511. {
  1512. int i, port_type, session_type, path_type, topology;
  1513. struct msm_pcm_routing_fdai_data *fdai;
  1514. if (!is_mm_lsm_fe_id(fedai_id)) {
  1515. /* bad ID assigned in machine driver */
  1516. pr_err("%s: bad MM ID\n", __func__);
  1517. return;
  1518. }
  1519. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1520. port_type = MSM_AFE_PORT_TYPE_RX;
  1521. session_type = SESSION_TYPE_RX;
  1522. path_type = ADM_PATH_PLAYBACK;
  1523. } else {
  1524. port_type = MSM_AFE_PORT_TYPE_TX;
  1525. session_type = SESSION_TYPE_TX;
  1526. path_type = ADM_PATH_LIVE_REC;
  1527. }
  1528. mutex_lock(&routing_lock);
  1529. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1530. if (!is_be_dai_extproc(i) &&
  1531. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1532. (msm_bedais[i].active) &&
  1533. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1534. int idx;
  1535. unsigned long copp =
  1536. session_copp_map[fedai_id][session_type][i];
  1537. fdai = &fe_dai_map[fedai_id][session_type];
  1538. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1539. if (test_bit(idx, &copp))
  1540. break;
  1541. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1542. pr_debug("%s: copp idx is invalid, exiting\n",
  1543. __func__);
  1544. continue;
  1545. }
  1546. topology = adm_get_topology_for_port_copp_idx(
  1547. msm_bedais[i].port_id, idx);
  1548. msm_routing_unload_topology(topology);
  1549. adm_close(msm_bedais[i].port_id, fdai->perf_mode, idx);
  1550. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1551. __func__, copp, fedai_id, session_type, i);
  1552. clear_bit(idx,
  1553. &session_copp_map[fedai_id][session_type][i]);
  1554. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1555. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1556. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1557. (msm_bedais[i].passthr_mode[fedai_id] ==
  1558. LEGACY_PCM))
  1559. msm_pcm_routing_deinit_pp(msm_bedais[i].port_id,
  1560. topology);
  1561. }
  1562. }
  1563. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1564. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1565. mutex_unlock(&routing_lock);
  1566. }
  1567. /* Check if FE/BE route is set */
  1568. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1569. {
  1570. bool rc = false;
  1571. if (!is_mm_lsm_fe_id(fe_id)) {
  1572. /* recheck FE ID in the mixer control defined in this file */
  1573. pr_err("%s: bad MM ID\n", __func__);
  1574. return rc;
  1575. }
  1576. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1577. rc = true;
  1578. return rc;
  1579. }
  1580. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1581. {
  1582. int session_type, path_type, topology;
  1583. u32 channels, sample_rate;
  1584. uint16_t bits_per_sample = 16;
  1585. struct msm_pcm_routing_fdai_data *fdai;
  1586. uint32_t passthr_mode;
  1587. bool is_lsm;
  1588. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1589. if (!is_mm_lsm_fe_id(val)) {
  1590. /* recheck FE ID in the mixer control defined in this file */
  1591. pr_err("%s: bad MM ID\n", __func__);
  1592. return;
  1593. }
  1594. if (!route_check_fe_id_adm_support(val)) {
  1595. /* ignore adm open if not supported for fe_id */
  1596. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1597. return;
  1598. }
  1599. passthr_mode = msm_bedais[reg].passthr_mode[val];
  1600. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1601. MSM_AFE_PORT_TYPE_RX) {
  1602. session_type = SESSION_TYPE_RX;
  1603. if (passthr_mode != LEGACY_PCM)
  1604. path_type = ADM_PATH_COMPRESSED_RX;
  1605. else
  1606. path_type = ADM_PATH_PLAYBACK;
  1607. } else {
  1608. session_type = SESSION_TYPE_TX;
  1609. if (passthr_mode != LEGACY_PCM)
  1610. path_type = ADM_PATH_COMPRESSED_TX;
  1611. else
  1612. path_type = ADM_PATH_LIVE_REC;
  1613. }
  1614. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1615. (val <= MSM_FRONTEND_DAI_LSM8);
  1616. mutex_lock(&routing_lock);
  1617. if (set) {
  1618. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1619. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1620. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1621. voc_start_playback(set, msm_bedais[reg].port_id);
  1622. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1623. fdai = &fe_dai_map[val][session_type];
  1624. if (msm_bedais[reg].active && fdai->strm_id !=
  1625. INVALID_SESSION) {
  1626. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1627. /*
  1628. * check if ADM needs to be configured with different
  1629. * channel mapping than backend
  1630. */
  1631. if (!msm_bedais[reg].adm_override_ch)
  1632. channels = msm_bedais[reg].channel;
  1633. else
  1634. channels = msm_bedais[reg].adm_override_ch;
  1635. if (session_type == SESSION_TYPE_TX &&
  1636. fdai->be_srate &&
  1637. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1638. pr_debug("%s: flush strm %d diff BE rates\n",
  1639. __func__, fdai->strm_id);
  1640. if (fdai->event_info.event_func)
  1641. fdai->event_info.event_func(
  1642. MSM_PCM_RT_EVT_BUF_RECFG,
  1643. fdai->event_info.priv_data);
  1644. fdai->be_srate = 0; /* might not need it */
  1645. }
  1646. bits_per_sample = msm_routing_get_bit_width(
  1647. msm_bedais[reg].format);
  1648. app_type =
  1649. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1650. if (app_type && is_lsm) {
  1651. app_type_idx =
  1652. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1653. sample_rate =
  1654. fe_dai_app_type_cfg[val][session_type][reg]
  1655. .sample_rate;
  1656. bits_per_sample =
  1657. lsm_app_type_cfg[app_type_idx].bit_width;
  1658. } else if (app_type) {
  1659. app_type_idx =
  1660. msm_pcm_routing_get_app_type_idx(app_type);
  1661. sample_rate =
  1662. fe_dai_app_type_cfg[val][session_type][reg]
  1663. .sample_rate;
  1664. bits_per_sample =
  1665. app_type_cfg[app_type_idx].bit_width;
  1666. } else
  1667. sample_rate = msm_bedais[reg].sample_rate;
  1668. topology = msm_routing_get_adm_topology(val,
  1669. session_type,
  1670. reg);
  1671. acdb_dev_id =
  1672. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1673. copp_idx = adm_open(msm_bedais[reg].port_id, path_type,
  1674. sample_rate, channels, topology,
  1675. fdai->perf_mode, bits_per_sample,
  1676. app_type, acdb_dev_id);
  1677. if ((copp_idx < 0) ||
  1678. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1679. pr_err("%s: adm open failed\n", __func__);
  1680. mutex_unlock(&routing_lock);
  1681. return;
  1682. }
  1683. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1684. __func__, val, session_type, reg);
  1685. set_bit(copp_idx,
  1686. &session_copp_map[val][session_type][reg]);
  1687. if (msm_is_resample_needed(
  1688. sample_rate,
  1689. msm_bedais[reg].sample_rate))
  1690. adm_copp_mfc_cfg(
  1691. msm_bedais[reg].port_id, copp_idx,
  1692. msm_bedais[reg].sample_rate);
  1693. if (session_type == SESSION_TYPE_RX &&
  1694. fdai->event_info.event_func)
  1695. fdai->event_info.event_func(
  1696. MSM_PCM_RT_EVT_DEVSWITCH,
  1697. fdai->event_info.priv_data);
  1698. msm_pcm_routing_build_matrix(val, session_type,
  1699. path_type,
  1700. fdai->perf_mode,
  1701. passthr_mode);
  1702. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  1703. (passthr_mode == LEGACY_PCM))
  1704. msm_pcm_routing_cfg_pp(msm_bedais[reg].port_id,
  1705. copp_idx, topology,
  1706. channels);
  1707. }
  1708. } else {
  1709. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1710. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1711. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1712. voc_start_playback(set, msm_bedais[reg].port_id);
  1713. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1714. fdai = &fe_dai_map[val][session_type];
  1715. if (msm_bedais[reg].active && fdai->strm_id !=
  1716. INVALID_SESSION) {
  1717. int idx;
  1718. int port_id;
  1719. unsigned long copp =
  1720. session_copp_map[val][session_type][reg];
  1721. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1722. if (test_bit(idx, &copp))
  1723. break;
  1724. port_id = msm_bedais[reg].port_id;
  1725. topology = adm_get_topology_for_port_copp_idx(port_id,
  1726. idx);
  1727. msm_routing_unload_topology(topology);
  1728. adm_close(msm_bedais[reg].port_id, fdai->perf_mode,
  1729. idx);
  1730. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  1731. __func__, copp, val, session_type, reg,
  1732. topology);
  1733. clear_bit(idx,
  1734. &session_copp_map[val][session_type][reg]);
  1735. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1736. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1737. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1738. (passthr_mode == LEGACY_PCM))
  1739. msm_pcm_routing_deinit_pp(
  1740. msm_bedais[reg].port_id,
  1741. topology);
  1742. msm_pcm_routing_build_matrix(val, session_type,
  1743. path_type,
  1744. fdai->perf_mode,
  1745. passthr_mode);
  1746. }
  1747. }
  1748. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  1749. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  1750. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  1751. mutex_unlock(&routing_lock);
  1752. }
  1753. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  1754. struct snd_ctl_elem_value *ucontrol)
  1755. {
  1756. struct soc_mixer_control *mc =
  1757. (struct soc_mixer_control *)kcontrol->private_value;
  1758. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1759. ucontrol->value.integer.value[0] = 1;
  1760. else
  1761. ucontrol->value.integer.value[0] = 0;
  1762. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1763. ucontrol->value.integer.value[0]);
  1764. return 0;
  1765. }
  1766. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  1767. struct snd_ctl_elem_value *ucontrol)
  1768. {
  1769. struct snd_soc_dapm_widget *widget =
  1770. snd_soc_dapm_kcontrol_widget(kcontrol);
  1771. struct soc_mixer_control *mc =
  1772. (struct soc_mixer_control *)kcontrol->private_value;
  1773. struct snd_soc_dapm_update *update = NULL;
  1774. if (ucontrol->value.integer.value[0] &&
  1775. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  1776. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1777. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1778. update);
  1779. } else if (!ucontrol->value.integer.value[0] &&
  1780. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  1781. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1782. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1783. update);
  1784. }
  1785. return 1;
  1786. }
  1787. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  1788. struct snd_ctl_elem_value *ucontrol)
  1789. {
  1790. struct soc_mixer_control *mc =
  1791. (struct soc_mixer_control *)kcontrol->private_value;
  1792. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1793. ucontrol->value.integer.value[0] = 1;
  1794. else
  1795. ucontrol->value.integer.value[0] = 0;
  1796. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1797. ucontrol->value.integer.value[0]);
  1798. return 0;
  1799. }
  1800. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  1801. struct snd_ctl_elem_value *ucontrol)
  1802. {
  1803. struct snd_soc_dapm_widget *widget =
  1804. snd_soc_dapm_kcontrol_widget(kcontrol);
  1805. struct soc_mixer_control *mc =
  1806. (struct soc_mixer_control *)kcontrol->private_value;
  1807. struct snd_soc_dapm_update *update = NULL;
  1808. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1809. ucontrol->value.integer.value[0]);
  1810. if (ucontrol->value.integer.value[0]) {
  1811. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  1812. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  1813. snd_soc_dapm_mixer_update_power(widget->dapm,
  1814. kcontrol, 1, update);
  1815. } else if (!ucontrol->value.integer.value[0]) {
  1816. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  1817. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  1818. snd_soc_dapm_mixer_update_power(widget->dapm,
  1819. kcontrol, 0, update);
  1820. }
  1821. return 1;
  1822. }
  1823. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  1824. {
  1825. u32 session_id = 0;
  1826. u16 path_type;
  1827. struct media_format_info voc_be_media_format;
  1828. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1829. session_id = msm_pcm_routing_get_voc_sessionid(val);
  1830. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  1831. __func__, val, session_id);
  1832. mutex_lock(&routing_lock);
  1833. if (set)
  1834. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1835. else
  1836. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1837. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  1838. afe_get_port_type(msm_bedais[reg].port_id) ==
  1839. MSM_AFE_PORT_TYPE_RX) {
  1840. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  1841. __func__, set, msm_bedais[reg].port_id);
  1842. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  1843. }
  1844. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  1845. MSM_AFE_PORT_TYPE_RX)
  1846. path_type = RX_PATH;
  1847. else
  1848. path_type = TX_PATH;
  1849. if (set) {
  1850. if (msm_bedais[reg].active) {
  1851. voc_set_route_flag(session_id, path_type, 1);
  1852. memset(&voc_be_media_format, 0,
  1853. sizeof(struct media_format_info));
  1854. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  1855. voc_be_media_format.num_channels =
  1856. msm_bedais[reg].channel;
  1857. voc_be_media_format.sample_rate =
  1858. msm_bedais[reg].sample_rate;
  1859. voc_be_media_format.bits_per_sample =
  1860. msm_bedais[reg].format;
  1861. /* Defaulting this to 1 for voice call usecases */
  1862. voc_be_media_format.channel_mapping[0] = 1;
  1863. voc_set_device_config(session_id, path_type,
  1864. &voc_be_media_format);
  1865. if (voc_get_route_flag(session_id, TX_PATH) &&
  1866. voc_get_route_flag(session_id, RX_PATH))
  1867. voc_enable_device(session_id);
  1868. } else {
  1869. pr_debug("%s BE is not active\n", __func__);
  1870. }
  1871. } else {
  1872. voc_set_route_flag(session_id, path_type, 0);
  1873. voc_disable_device(session_id);
  1874. }
  1875. mutex_unlock(&routing_lock);
  1876. }
  1877. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  1878. struct snd_ctl_elem_value *ucontrol)
  1879. {
  1880. struct soc_mixer_control *mc =
  1881. (struct soc_mixer_control *)kcontrol->private_value;
  1882. mutex_lock(&routing_lock);
  1883. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1884. ucontrol->value.integer.value[0] = 1;
  1885. else
  1886. ucontrol->value.integer.value[0] = 0;
  1887. mutex_unlock(&routing_lock);
  1888. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1889. ucontrol->value.integer.value[0]);
  1890. return 0;
  1891. }
  1892. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  1893. struct snd_ctl_elem_value *ucontrol)
  1894. {
  1895. struct snd_soc_dapm_widget *widget =
  1896. snd_soc_dapm_kcontrol_widget(kcontrol);
  1897. struct soc_mixer_control *mc =
  1898. (struct soc_mixer_control *)kcontrol->private_value;
  1899. struct snd_soc_dapm_update *update = NULL;
  1900. if (ucontrol->value.integer.value[0]) {
  1901. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  1902. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1903. update);
  1904. } else {
  1905. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  1906. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1907. update);
  1908. }
  1909. return 1;
  1910. }
  1911. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1912. struct snd_ctl_elem_value *ucontrol)
  1913. {
  1914. struct soc_mixer_control *mc =
  1915. (struct soc_mixer_control *)kcontrol->private_value;
  1916. mutex_lock(&routing_lock);
  1917. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  1918. ucontrol->value.integer.value[0] = 1;
  1919. else
  1920. ucontrol->value.integer.value[0] = 0;
  1921. mutex_unlock(&routing_lock);
  1922. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1923. ucontrol->value.integer.value[0]);
  1924. return 0;
  1925. }
  1926. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  1927. struct snd_ctl_elem_value *ucontrol)
  1928. {
  1929. struct snd_soc_dapm_widget *widget =
  1930. snd_soc_dapm_kcontrol_widget(kcontrol);
  1931. struct soc_mixer_control *mc =
  1932. (struct soc_mixer_control *)kcontrol->private_value;
  1933. struct snd_soc_dapm_update *update = NULL;
  1934. if (ucontrol->value.integer.value[0]) {
  1935. mutex_lock(&routing_lock);
  1936. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1937. mutex_unlock(&routing_lock);
  1938. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  1939. update);
  1940. } else {
  1941. mutex_lock(&routing_lock);
  1942. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  1943. mutex_unlock(&routing_lock);
  1944. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  1945. update);
  1946. }
  1947. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  1948. ucontrol->value.integer.value[0]);
  1949. return 1;
  1950. }
  1951. /*
  1952. * Return the mapping between port ID and backend ID to enable the AFE callback
  1953. * to determine the acdb_dev_id from the port id
  1954. */
  1955. int msm_pcm_get_be_id_from_port_id(int port_id)
  1956. {
  1957. int i;
  1958. int be_id = -EINVAL;
  1959. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1960. if (msm_bedais[i].port_id == port_id) {
  1961. be_id = i;
  1962. break;
  1963. }
  1964. }
  1965. return be_id;
  1966. }
  1967. /*
  1968. * Return the registered dev_acdb_id given a port ID to enable identifying the
  1969. * correct AFE calibration information by comparing the header information.
  1970. */
  1971. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  1972. {
  1973. int acdb_id = -EINVAL;
  1974. int i = 0;
  1975. int session;
  1976. int port_type = afe_get_port_type(port_id);
  1977. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  1978. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  1979. __func__, port_id, be_id, port_type);
  1980. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  1981. session = SESSION_TYPE_TX;
  1982. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  1983. session = SESSION_TYPE_RX;
  1984. } else {
  1985. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  1986. acdb_id = -EINVAL;
  1987. goto exit;
  1988. }
  1989. if (be_id < 0) {
  1990. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  1991. goto exit;
  1992. }
  1993. mutex_lock(&routing_lock);
  1994. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  1995. MSM_FRONTEND_DAI_MAX);
  1996. if (i < MSM_FRONTEND_DAI_MAX)
  1997. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  1998. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  1999. __func__, i, session, be_id, acdb_id);
  2000. mutex_unlock(&routing_lock);
  2001. exit:
  2002. return acdb_id;
  2003. }
  2004. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2005. struct snd_ctl_elem_value *ucontrol)
  2006. {
  2007. ucontrol->value.integer.value[0] = fm_switch_enable;
  2008. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2009. ucontrol->value.integer.value[0]);
  2010. return 0;
  2011. }
  2012. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2013. struct snd_ctl_elem_value *ucontrol)
  2014. {
  2015. struct snd_soc_dapm_widget *widget =
  2016. snd_soc_dapm_kcontrol_widget(kcontrol);
  2017. struct snd_soc_dapm_update *update = NULL;
  2018. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2019. ucontrol->value.integer.value[0]);
  2020. if (ucontrol->value.integer.value[0])
  2021. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2022. update);
  2023. else
  2024. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2025. update);
  2026. fm_switch_enable = ucontrol->value.integer.value[0];
  2027. return 1;
  2028. }
  2029. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2030. struct snd_ctl_elem_value *ucontrol)
  2031. {
  2032. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2033. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2034. ucontrol->value.integer.value[0]);
  2035. return 0;
  2036. }
  2037. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2038. struct snd_ctl_elem_value *ucontrol)
  2039. {
  2040. struct snd_soc_dapm_widget *widget =
  2041. snd_soc_dapm_kcontrol_widget(kcontrol);
  2042. struct snd_soc_dapm_update *update = NULL;
  2043. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2044. ucontrol->value.integer.value[0]);
  2045. if (ucontrol->value.integer.value[0])
  2046. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2047. 1, update);
  2048. else
  2049. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2050. 0, update);
  2051. hfp_switch_enable = ucontrol->value.integer.value[0];
  2052. return 1;
  2053. }
  2054. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2055. struct snd_ctl_elem_value *ucontrol)
  2056. {
  2057. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2058. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2059. ucontrol->value.integer.value[0]);
  2060. return 0;
  2061. }
  2062. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2063. struct snd_ctl_elem_value *ucontrol)
  2064. {
  2065. struct snd_soc_dapm_widget *widget =
  2066. snd_soc_dapm_kcontrol_widget(kcontrol);
  2067. struct snd_soc_dapm_update *update = NULL;
  2068. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2069. ucontrol->value.integer.value[0]);
  2070. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2071. if (a2dp_switch_enable)
  2072. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2073. 1, update);
  2074. else
  2075. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2076. 0, update);
  2077. return 1;
  2078. }
  2079. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2080. struct snd_ctl_elem_value *ucontrol)
  2081. {
  2082. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2083. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2084. ucontrol->value.integer.value[0]);
  2085. return 0;
  2086. }
  2087. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2088. struct snd_ctl_elem_value *ucontrol)
  2089. {
  2090. struct snd_soc_dapm_widget *widget =
  2091. snd_soc_dapm_kcontrol_widget(kcontrol);
  2092. struct snd_soc_dapm_update *update = NULL;
  2093. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2094. ucontrol->value.integer.value[0]);
  2095. if (ucontrol->value.integer.value[0])
  2096. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2097. update);
  2098. else
  2099. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2100. update);
  2101. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2102. return 1;
  2103. }
  2104. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2105. struct snd_ctl_elem_value *ucontrol)
  2106. {
  2107. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2108. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2109. ucontrol->value.integer.value[0]);
  2110. return 0;
  2111. }
  2112. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2113. struct snd_ctl_elem_value *ucontrol)
  2114. {
  2115. struct snd_soc_dapm_widget *widget =
  2116. snd_soc_dapm_kcontrol_widget(kcontrol);
  2117. struct snd_soc_dapm_update *update = NULL;
  2118. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2119. ucontrol->value.integer.value[0]);
  2120. if (ucontrol->value.integer.value[0])
  2121. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2122. update);
  2123. else
  2124. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2125. update);
  2126. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2127. return 1;
  2128. }
  2129. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2130. struct snd_ctl_elem_value *ucontrol)
  2131. {
  2132. ucontrol->value.integer.value[0] = usb_switch_enable;
  2133. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2134. ucontrol->value.integer.value[0]);
  2135. return 0;
  2136. }
  2137. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2138. struct snd_ctl_elem_value *ucontrol)
  2139. {
  2140. struct snd_soc_dapm_widget *widget =
  2141. snd_soc_dapm_kcontrol_widget(kcontrol);
  2142. struct snd_soc_dapm_update *update = NULL;
  2143. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2144. ucontrol->value.integer.value[0]);
  2145. if (ucontrol->value.integer.value[0])
  2146. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2147. 1, update);
  2148. else
  2149. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2150. 0, update);
  2151. usb_switch_enable = ucontrol->value.integer.value[0];
  2152. return 1;
  2153. }
  2154. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2155. struct snd_ctl_elem_value *ucontrol)
  2156. {
  2157. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2158. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2159. ucontrol->value.integer.value[0]);
  2160. return 0;
  2161. }
  2162. static int msm_routing_put_pri_mi2s_switch_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 snd_soc_dapm_update *update = NULL;
  2168. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2169. ucontrol->value.integer.value[0]);
  2170. if (ucontrol->value.integer.value[0])
  2171. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2172. update);
  2173. else
  2174. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2175. update);
  2176. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2177. return 1;
  2178. }
  2179. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2180. struct snd_ctl_elem_value *ucontrol)
  2181. {
  2182. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2183. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2184. ucontrol->value.integer.value[0]);
  2185. return 0;
  2186. }
  2187. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2188. struct snd_ctl_elem_value *ucontrol)
  2189. {
  2190. struct snd_soc_dapm_widget *widget =
  2191. snd_soc_dapm_kcontrol_widget(kcontrol);
  2192. struct snd_soc_dapm_update *update = NULL;
  2193. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2194. ucontrol->value.integer.value[0]);
  2195. if (ucontrol->value.integer.value[0])
  2196. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2197. update);
  2198. else
  2199. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2200. update);
  2201. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2202. return 1;
  2203. }
  2204. static int msm_routing_get_tert_mi2s_switch_mixer(
  2205. struct snd_kcontrol *kcontrol,
  2206. struct snd_ctl_elem_value *ucontrol)
  2207. {
  2208. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2209. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2210. ucontrol->value.integer.value[0]);
  2211. return 0;
  2212. }
  2213. static int msm_routing_put_tert_mi2s_switch_mixer(
  2214. struct snd_kcontrol *kcontrol,
  2215. struct snd_ctl_elem_value *ucontrol)
  2216. {
  2217. struct snd_soc_dapm_widget *widget =
  2218. snd_soc_dapm_kcontrol_widget(kcontrol);
  2219. struct snd_soc_dapm_update *update = NULL;
  2220. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2221. ucontrol->value.integer.value[0]);
  2222. if (ucontrol->value.integer.value[0])
  2223. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2224. update);
  2225. else
  2226. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2227. update);
  2228. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2229. return 1;
  2230. }
  2231. static int msm_routing_get_quat_mi2s_switch_mixer(
  2232. struct snd_kcontrol *kcontrol,
  2233. struct snd_ctl_elem_value *ucontrol)
  2234. {
  2235. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2236. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2237. ucontrol->value.integer.value[0]);
  2238. return 0;
  2239. }
  2240. static int msm_routing_put_quat_mi2s_switch_mixer(
  2241. struct snd_kcontrol *kcontrol,
  2242. struct snd_ctl_elem_value *ucontrol)
  2243. {
  2244. struct snd_soc_dapm_widget *widget =
  2245. snd_soc_dapm_kcontrol_widget(kcontrol);
  2246. struct snd_soc_dapm_update *update = NULL;
  2247. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2248. ucontrol->value.integer.value[0]);
  2249. if (ucontrol->value.integer.value[0])
  2250. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2251. update);
  2252. else
  2253. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2254. update);
  2255. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2256. return 1;
  2257. }
  2258. static int msm_routing_get_quin_mi2s_switch_mixer(
  2259. struct snd_kcontrol *kcontrol,
  2260. struct snd_ctl_elem_value *ucontrol)
  2261. {
  2262. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2263. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2264. ucontrol->value.integer.value[0]);
  2265. return 0;
  2266. }
  2267. static int msm_routing_put_quin_mi2s_switch_mixer(
  2268. struct snd_kcontrol *kcontrol,
  2269. struct snd_ctl_elem_value *ucontrol)
  2270. {
  2271. struct snd_soc_dapm_widget *widget =
  2272. snd_soc_dapm_kcontrol_widget(kcontrol);
  2273. struct snd_soc_dapm_update *update = NULL;
  2274. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2275. ucontrol->value.integer.value[0]);
  2276. if (ucontrol->value.integer.value[0])
  2277. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2278. update);
  2279. else
  2280. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2281. update);
  2282. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2283. return 1;
  2284. }
  2285. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2286. struct snd_ctl_elem_value *ucontrol)
  2287. {
  2288. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2289. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2290. ucontrol->value.integer.value[0]);
  2291. return 0;
  2292. }
  2293. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2294. struct snd_ctl_elem_value *ucontrol)
  2295. {
  2296. struct snd_soc_dapm_widget *widget =
  2297. snd_soc_dapm_kcontrol_widget(kcontrol);
  2298. struct snd_soc_dapm_update *update = NULL;
  2299. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2300. ucontrol->value.integer.value[0]);
  2301. if (ucontrol->value.integer.value[0])
  2302. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2303. update);
  2304. else
  2305. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2306. update);
  2307. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2308. return 1;
  2309. }
  2310. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2311. struct snd_ctl_elem_value *ucontrol)
  2312. {
  2313. ucontrol->value.integer.value[0] = lsm_port_index;
  2314. return 0;
  2315. }
  2316. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2317. struct snd_ctl_elem_value *ucontrol)
  2318. {
  2319. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2320. int mux = ucontrol->value.enumerated.item[0];
  2321. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2322. if (mux >= e->items) {
  2323. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2324. return -EINVAL;
  2325. }
  2326. pr_debug("%s: LSM enable %ld\n", __func__,
  2327. ucontrol->value.integer.value[0]);
  2328. switch (ucontrol->value.integer.value[0]) {
  2329. case 1:
  2330. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2331. break;
  2332. case 2:
  2333. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2334. break;
  2335. case 3:
  2336. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2337. break;
  2338. case 4:
  2339. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2340. break;
  2341. case 5:
  2342. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2343. break;
  2344. case 6:
  2345. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2346. break;
  2347. case 7:
  2348. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2349. break;
  2350. case 8:
  2351. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2352. break;
  2353. case 9:
  2354. lsm_port = ADM_LSM_PORT_ID;
  2355. break;
  2356. case 10:
  2357. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2358. break;
  2359. case 11:
  2360. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2361. break;
  2362. case 12:
  2363. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2364. break;
  2365. default:
  2366. pr_err("Default lsm port");
  2367. break;
  2368. }
  2369. set_lsm_port(lsm_port);
  2370. lsm_port_index = ucontrol->value.integer.value[0];
  2371. return 0;
  2372. }
  2373. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2374. struct snd_ctl_elem_value *ucontrol)
  2375. {
  2376. int i;
  2377. u16 port_id;
  2378. enum afe_mad_type mad_type;
  2379. pr_debug("%s: enter\n", __func__);
  2380. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2381. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2382. strlen(lsm_port_text[i])))
  2383. break;
  2384. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2385. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2386. return -EINVAL;
  2387. }
  2388. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2389. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2390. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2391. strlen(lsm_port_text[7])))
  2392. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2393. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2394. strlen(lsm_port_text[8])))
  2395. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2396. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2397. strlen(lsm_port_text[10])))
  2398. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2399. mad_type = afe_port_get_mad_type(port_id);
  2400. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2401. mad_type);
  2402. switch (mad_type) {
  2403. case MAD_HW_NONE:
  2404. ucontrol->value.integer.value[0] = MADNONE;
  2405. break;
  2406. case MAD_HW_AUDIO:
  2407. ucontrol->value.integer.value[0] = MADAUDIO;
  2408. break;
  2409. case MAD_HW_BEACON:
  2410. ucontrol->value.integer.value[0] = MADBEACON;
  2411. break;
  2412. case MAD_HW_ULTRASOUND:
  2413. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2414. break;
  2415. case MAD_SW_AUDIO:
  2416. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2417. break;
  2418. default:
  2419. WARN(1, "Unknown\n");
  2420. return -EINVAL;
  2421. }
  2422. return 0;
  2423. }
  2424. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2425. struct snd_ctl_elem_value *ucontrol)
  2426. {
  2427. int i;
  2428. u16 port_id;
  2429. enum afe_mad_type mad_type;
  2430. pr_debug("%s: enter\n", __func__);
  2431. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2432. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2433. strlen(lsm_port_text[i])))
  2434. break;
  2435. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2436. WARN(1, "Invalid id name %s\n", kcontrol->id.name);
  2437. return -EINVAL;
  2438. }
  2439. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2440. switch (ucontrol->value.integer.value[0]) {
  2441. case MADNONE:
  2442. mad_type = MAD_HW_NONE;
  2443. break;
  2444. case MADAUDIO:
  2445. mad_type = MAD_HW_AUDIO;
  2446. break;
  2447. case MADBEACON:
  2448. mad_type = MAD_HW_BEACON;
  2449. break;
  2450. case MADULTRASOUND:
  2451. mad_type = MAD_HW_ULTRASOUND;
  2452. break;
  2453. case MADSWAUDIO:
  2454. mad_type = MAD_SW_AUDIO;
  2455. break;
  2456. default:
  2457. WARN(1, "Unknown\n");
  2458. return -EINVAL;
  2459. }
  2460. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2461. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2462. strlen(lsm_port_text[7])))
  2463. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2464. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2465. strlen(lsm_port_text[8])))
  2466. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2467. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2468. strlen(lsm_port_text[10])))
  2469. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2470. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2471. mad_type);
  2472. return afe_port_set_mad_type(port_id, mad_type);
  2473. }
  2474. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2475. static SOC_ENUM_SINGLE_EXT_DECL(slim_7_rx_adm_override_chs,
  2476. adm_override_chs_text);
  2477. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2478. {
  2479. int backend_id;
  2480. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2481. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2482. } else {
  2483. pr_err("%s: unsupported backend id: %s",
  2484. __func__, kcontrol->id.name);
  2485. return -EINVAL;
  2486. }
  2487. return backend_id;
  2488. }
  2489. static int msm_routing_adm_channel_config_get(
  2490. struct snd_kcontrol *kcontrol,
  2491. struct snd_ctl_elem_value *ucontrol)
  2492. {
  2493. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2494. if (backend_id >= 0) {
  2495. mutex_lock(&routing_lock);
  2496. ucontrol->value.integer.value[0] =
  2497. msm_bedais[backend_id].adm_override_ch;
  2498. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2499. ucontrol->value.integer.value[0], backend_id);
  2500. mutex_unlock(&routing_lock);
  2501. }
  2502. return 0;
  2503. }
  2504. static int msm_routing_adm_channel_config_put(
  2505. struct snd_kcontrol *kcontrol,
  2506. struct snd_ctl_elem_value *ucontrol)
  2507. {
  2508. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2509. if (backend_id >= 0) {
  2510. mutex_lock(&routing_lock);
  2511. msm_bedais[backend_id].adm_override_ch =
  2512. ucontrol->value.integer.value[0];
  2513. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2514. __func__, backend_id,
  2515. msm_bedais[backend_id].adm_override_ch);
  2516. mutex_unlock(&routing_lock);
  2517. }
  2518. return 0;
  2519. }
  2520. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2521. SOC_ENUM_EXT("SLIM7_RX ADM Channels", slim_7_rx_adm_override_chs,
  2522. msm_routing_adm_channel_config_get,
  2523. msm_routing_adm_channel_config_put),
  2524. };
  2525. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2526. struct snd_ctl_elem_value *ucontrol)
  2527. {
  2528. mutex_lock(&routing_lock);
  2529. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2530. mutex_unlock(&routing_lock);
  2531. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2532. ucontrol->value.integer.value[0]);
  2533. return 0;
  2534. };
  2535. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2536. struct snd_ctl_elem_value *ucontrol)
  2537. {
  2538. struct aanc_data aanc_info;
  2539. mutex_lock(&routing_lock);
  2540. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2541. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2542. ucontrol->value.integer.value[0]);
  2543. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2544. if (ucontrol->value.integer.value[0] == 0) {
  2545. aanc_info.aanc_active = false;
  2546. aanc_info.aanc_tx_port = 0;
  2547. aanc_info.aanc_rx_port = 0;
  2548. } else {
  2549. aanc_info.aanc_active = true;
  2550. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2551. aanc_info.aanc_tx_port =
  2552. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2553. }
  2554. afe_set_aanc_info(&aanc_info);
  2555. mutex_unlock(&routing_lock);
  2556. return 0;
  2557. };
  2558. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2559. struct snd_ctl_elem_value *ucontrol)
  2560. {
  2561. int idx = 0, shift = 0;
  2562. struct soc_mixer_control *mc =
  2563. (struct soc_mixer_control *)kcontrol->private_value;
  2564. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2565. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2566. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2567. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2568. return -EINVAL;
  2569. }
  2570. if (test_bit(shift,
  2571. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2572. ucontrol->value.integer.value[0] = 1;
  2573. else
  2574. ucontrol->value.integer.value[0] = 0;
  2575. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2576. ucontrol->value.integer.value[0]);
  2577. return 0;
  2578. }
  2579. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2580. struct snd_ctl_elem_value *ucontrol)
  2581. {
  2582. int idx = 0, shift = 0;
  2583. struct soc_mixer_control *mc =
  2584. (struct soc_mixer_control *)kcontrol->private_value;
  2585. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2586. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2587. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2588. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2589. return -EINVAL;
  2590. }
  2591. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2592. __func__, mc->shift, mc->rshift,
  2593. ucontrol->value.integer.value[0], idx, shift);
  2594. if (ucontrol->value.integer.value[0]) {
  2595. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2596. msm_bedais[mc->rshift].port_id);
  2597. set_bit(shift,
  2598. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2599. } else {
  2600. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2601. msm_bedais[mc->rshift].port_id);
  2602. clear_bit(shift,
  2603. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2604. }
  2605. return 1;
  2606. }
  2607. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2608. struct snd_ctl_elem_value *ucontrol)
  2609. {
  2610. u16 fe_id = 0;
  2611. fe_id = ((struct soc_mixer_control *)
  2612. kcontrol->private_value)->shift;
  2613. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2614. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2615. return -EINVAL;
  2616. }
  2617. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  2618. return 0;
  2619. }
  2620. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  2621. struct snd_ctl_elem_value *ucontrol)
  2622. {
  2623. u16 fe_id = 0;
  2624. fe_id = ((struct soc_mixer_control *)
  2625. kcontrol->private_value)->shift;
  2626. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2627. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2628. return -EINVAL;
  2629. }
  2630. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  2631. return 1;
  2632. }
  2633. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  2634. struct snd_ctl_elem_value *ucontrol)
  2635. {
  2636. u16 fe_id = 0;
  2637. fe_id = ((struct soc_multi_mixer_control *)
  2638. kcontrol->private_value)->shift;
  2639. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2640. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2641. return -EINVAL;
  2642. }
  2643. ucontrol->value.integer.value[0] =
  2644. channel_mixer[fe_id].output_channel;
  2645. return 0;
  2646. }
  2647. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. u16 fe_id = 0;
  2651. fe_id = ((struct soc_multi_mixer_control *)
  2652. kcontrol->private_value)->shift;
  2653. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2654. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2655. return -EINVAL;
  2656. }
  2657. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  2658. fe_id,
  2659. (unsigned int)(ucontrol->value.integer.value[0]));
  2660. channel_mixer[fe_id].output_channel =
  2661. (unsigned int)(ucontrol->value.integer.value[0]);
  2662. return 1;
  2663. }
  2664. static const char *const ch_mixer[] = {"Disable", "Enable"};
  2665. /* If new backend is added, need update this array */
  2666. static const char *const be_name[] = {
  2667. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  2668. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  2669. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  2670. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  2671. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  2672. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  2673. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  2674. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  2675. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  2676. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  2677. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  2678. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  2679. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "SPDIF_RX",
  2680. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  2681. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  2682. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  2683. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  2684. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  2685. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  2686. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  2687. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  2688. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  2689. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  2690. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  2691. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  2692. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  2693. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  2694. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  2695. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  2696. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  2697. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  2698. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  2699. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  2700. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  2701. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX", "DISPLAY_PORT_RX1",
  2702. "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX", "QUAT_AUXPCM_TX",
  2703. "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX",
  2704. "INT0_MI2S_RX", "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX",
  2705. "INT2_MI2S_RX", "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX",
  2706. "INT4_MI2S_RX", "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX",
  2707. "INT6_MI2S_RX", "INT6_MI2S_TX", "WSA_CDC_DMA_RX_0",
  2708. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1", "WSA_CDC_DMA_TX_1",
  2709. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1"
  2710. };
  2711. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  2712. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  2713. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  2714. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  2715. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  2716. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  2717. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  2718. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  2719. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  2720. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  2721. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  2722. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  2723. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  2724. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  2725. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  2726. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  2727. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  2728. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  2729. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  2730. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  2731. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  2732. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  2733. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  2734. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  2735. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  2736. unsigned int channels,
  2737. unsigned int items, const char *const names[])
  2738. {
  2739. if (uinfo->value.enumerated.item >= items)
  2740. uinfo->value.enumerated.item = items - 1;
  2741. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  2742. sizeof(uinfo->value.enumerated.name),
  2743. "ALSA: too long item name '%s'\n",
  2744. names[uinfo->value.enumerated.item]);
  2745. strlcpy(uinfo->value.enumerated.name,
  2746. names[uinfo->value.enumerated.item],
  2747. sizeof(uinfo->value.enumerated.name));
  2748. return 0;
  2749. }
  2750. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  2751. struct snd_ctl_elem_info *uinfo)
  2752. {
  2753. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2754. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2755. uinfo->count = 1;
  2756. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  2757. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2758. return 0;
  2759. }
  2760. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  2761. struct snd_ctl_elem_value *ucontrol)
  2762. {
  2763. u16 fe_id = 0;
  2764. fe_id = ((struct soc_enum *)
  2765. kcontrol->private_value)->shift_l;
  2766. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2767. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2768. return -EINVAL;
  2769. }
  2770. pr_debug("%s: FE %d %s\n", __func__,
  2771. fe_id,
  2772. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  2773. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  2774. return 0;
  2775. }
  2776. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  2777. struct snd_ctl_elem_value *ucontrol)
  2778. {
  2779. u16 fe_id = 0;
  2780. fe_id = ((struct soc_enum *)
  2781. kcontrol->private_value)->shift_l;
  2782. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2783. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2784. return -EINVAL;
  2785. }
  2786. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  2787. pr_debug("%s: %s FE %d\n", __func__,
  2788. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  2789. fe_id);
  2790. return 0;
  2791. }
  2792. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  2793. struct snd_ctl_elem_info *uinfo)
  2794. {
  2795. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2796. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  2797. uinfo->count = 1;
  2798. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  2799. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  2800. return 0;
  2801. }
  2802. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  2803. struct snd_ctl_elem_value *ucontrol)
  2804. {
  2805. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2806. u16 fe_id = 0, in_ch = 0;
  2807. fe_id = e->shift_l;
  2808. in_ch = e->shift_r;
  2809. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2810. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2811. return -EINVAL;
  2812. }
  2813. if (in_ch >= ADM_MAX_CHANNELS) {
  2814. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2815. return -EINVAL;
  2816. }
  2817. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  2818. return 1;
  2819. }
  2820. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  2821. struct snd_ctl_elem_value *ucontrol)
  2822. {
  2823. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2824. u16 fe_id = 0, in_ch = 0;
  2825. fe_id = e->shift_l;
  2826. in_ch = e->shift_r;
  2827. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2828. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2829. return -EINVAL;
  2830. }
  2831. if (in_ch >= ADM_MAX_CHANNELS) {
  2832. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  2833. return -EINVAL;
  2834. }
  2835. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  2836. return 1;
  2837. }
  2838. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  2839. struct snd_ctl_elem_info *uinfo)
  2840. {
  2841. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  2842. uinfo->count = ADM_MAX_CHANNELS;
  2843. uinfo->value.integer.min = 0;
  2844. uinfo->value.integer.max = WEIGHT_0_DB;
  2845. return 0;
  2846. }
  2847. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  2848. struct snd_ctl_elem_value *ucontrol)
  2849. {
  2850. u16 fe_id = 0, out_ch = 0;
  2851. int i, weight;
  2852. fe_id = ((struct soc_multi_mixer_control *)
  2853. kcontrol->private_value)->shift;
  2854. out_ch = ((struct soc_multi_mixer_control *)
  2855. kcontrol->private_value)->rshift;
  2856. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2857. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2858. return -EINVAL;
  2859. }
  2860. if (out_ch >= ADM_MAX_CHANNELS) {
  2861. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2862. return -EINVAL;
  2863. }
  2864. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  2865. __func__, fe_id,
  2866. ucontrol->value.integer.value[0],
  2867. ucontrol->value.integer.value[1],
  2868. ucontrol->value.integer.value[2],
  2869. ucontrol->value.integer.value[3],
  2870. ucontrol->value.integer.value[4],
  2871. ucontrol->value.integer.value[5],
  2872. ucontrol->value.integer.value[6],
  2873. ucontrol->value.integer.value[7]);
  2874. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  2875. weight = ucontrol->value.integer.value[i];
  2876. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  2877. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  2878. __func__, fe_id, out_ch, i,
  2879. channel_mixer[fe_id].channel_weight[out_ch][i]);
  2880. }
  2881. return 0;
  2882. }
  2883. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  2884. struct snd_ctl_elem_value *ucontrol)
  2885. {
  2886. u16 fe_id = 0, out_ch = 0;
  2887. int i;
  2888. fe_id = ((struct soc_multi_mixer_control *)
  2889. kcontrol->private_value)->shift;
  2890. out_ch = ((struct soc_multi_mixer_control *)
  2891. kcontrol->private_value)->rshift;
  2892. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2893. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2894. return -EINVAL;
  2895. }
  2896. if (out_ch >= ADM_MAX_CHANNELS) {
  2897. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  2898. return -EINVAL;
  2899. }
  2900. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  2901. ucontrol->value.integer.value[i] =
  2902. channel_mixer[fe_id].channel_weight[out_ch][i];
  2903. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  2904. __func__, fe_id,
  2905. ucontrol->value.integer.value[0],
  2906. ucontrol->value.integer.value[1],
  2907. ucontrol->value.integer.value[2],
  2908. ucontrol->value.integer.value[3],
  2909. ucontrol->value.integer.value[4],
  2910. ucontrol->value.integer.value[5],
  2911. ucontrol->value.integer.value[6],
  2912. ucontrol->value.integer.value[7]);
  2913. return 0;
  2914. }
  2915. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  2916. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  2917. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2918. msm_pcm_get_channel_rule_index,
  2919. msm_pcm_put_channel_rule_index),
  2920. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  2921. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2922. msm_pcm_get_channel_rule_index,
  2923. msm_pcm_put_channel_rule_index),
  2924. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  2925. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2926. msm_pcm_get_channel_rule_index,
  2927. msm_pcm_put_channel_rule_index),
  2928. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  2929. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2930. msm_pcm_get_channel_rule_index,
  2931. msm_pcm_put_channel_rule_index),
  2932. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  2933. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2934. msm_pcm_get_channel_rule_index,
  2935. msm_pcm_put_channel_rule_index),
  2936. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  2937. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2938. msm_pcm_get_channel_rule_index,
  2939. msm_pcm_put_channel_rule_index),
  2940. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  2941. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  2942. msm_pcm_get_out_chs,
  2943. msm_pcm_put_out_chs),
  2944. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  2945. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  2946. msm_pcm_get_out_chs,
  2947. msm_pcm_put_out_chs),
  2948. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  2949. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  2950. msm_pcm_get_out_chs,
  2951. msm_pcm_put_out_chs),
  2952. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  2953. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  2954. msm_pcm_get_out_chs,
  2955. msm_pcm_put_out_chs),
  2956. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  2957. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  2958. msm_pcm_get_out_chs,
  2959. msm_pcm_put_out_chs),
  2960. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  2961. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  2962. msm_pcm_get_out_chs,
  2963. msm_pcm_put_out_chs),
  2964. {
  2965. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2966. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2967. .name = "MultiMedia1 Channel Mixer",
  2968. .info = msm_pcm_channel_mixer_info,
  2969. .get = msm_pcm_channel_mixer_get,
  2970. .put = msm_pcm_channel_mixer_put,
  2971. .private_value = (unsigned long)&(mm1_channel_mux)
  2972. },
  2973. {
  2974. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2975. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2976. .name = "MultiMedia2 Channel Mixer",
  2977. .info = msm_pcm_channel_mixer_info,
  2978. .get = msm_pcm_channel_mixer_get,
  2979. .put = msm_pcm_channel_mixer_put,
  2980. .private_value = (unsigned long)&(mm2_channel_mux)
  2981. },
  2982. {
  2983. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2984. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2985. .name = "MultiMedia3 Channel Mixer",
  2986. .info = msm_pcm_channel_mixer_info,
  2987. .get = msm_pcm_channel_mixer_get,
  2988. .put = msm_pcm_channel_mixer_put,
  2989. .private_value = (unsigned long)&(mm3_channel_mux)
  2990. },
  2991. {
  2992. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  2993. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  2994. .name = "MultiMedia4 Channel Mixer",
  2995. .info = msm_pcm_channel_mixer_info,
  2996. .get = msm_pcm_channel_mixer_get,
  2997. .put = msm_pcm_channel_mixer_put,
  2998. .private_value = (unsigned long)&(mm4_channel_mux)
  2999. },
  3000. {
  3001. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3002. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3003. .name = "MultiMedia1 Output Channel1",
  3004. .info = msm_pcm_channel_weight_info,
  3005. .get = msm_pcm_channel_weight_get,
  3006. .put = msm_pcm_channel_weight_put,
  3007. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3008. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3009. },
  3010. {
  3011. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3012. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3013. .name = "MultiMedia1 Output Channel2",
  3014. .info = msm_pcm_channel_weight_info,
  3015. .get = msm_pcm_channel_weight_get,
  3016. .put = msm_pcm_channel_weight_put,
  3017. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3018. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3019. },
  3020. {
  3021. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3022. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3023. .name = "MultiMedia1 Output Channel3",
  3024. .info = msm_pcm_channel_weight_info,
  3025. .get = msm_pcm_channel_weight_get,
  3026. .put = msm_pcm_channel_weight_put,
  3027. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3028. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3029. },
  3030. {
  3031. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3032. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3033. .name = "MultiMedia1 Output Channel4",
  3034. .info = msm_pcm_channel_weight_info,
  3035. .get = msm_pcm_channel_weight_get,
  3036. .put = msm_pcm_channel_weight_put,
  3037. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3038. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3039. },
  3040. {
  3041. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3042. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3043. .name = "MultiMedia1 Output Channel5",
  3044. .info = msm_pcm_channel_weight_info,
  3045. .get = msm_pcm_channel_weight_get,
  3046. .put = msm_pcm_channel_weight_put,
  3047. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3048. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3049. },
  3050. {
  3051. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3052. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3053. .name = "MultiMedia1 Output Channel6",
  3054. .info = msm_pcm_channel_weight_info,
  3055. .get = msm_pcm_channel_weight_get,
  3056. .put = msm_pcm_channel_weight_put,
  3057. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3058. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3059. },
  3060. {
  3061. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3062. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3063. .name = "MultiMedia1 Output Channel7",
  3064. .info = msm_pcm_channel_weight_info,
  3065. .get = msm_pcm_channel_weight_get,
  3066. .put = msm_pcm_channel_weight_put,
  3067. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3068. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3069. },
  3070. {
  3071. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3072. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3073. .name = "MultiMedia1 Output Channel8",
  3074. .info = msm_pcm_channel_weight_info,
  3075. .get = msm_pcm_channel_weight_get,
  3076. .put = msm_pcm_channel_weight_put,
  3077. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3078. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3079. },
  3080. {
  3081. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3082. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3083. .name = "MultiMedia2 Output Channel1",
  3084. .info = msm_pcm_channel_weight_info,
  3085. .get = msm_pcm_channel_weight_get,
  3086. .put = msm_pcm_channel_weight_put,
  3087. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3088. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3089. },
  3090. {
  3091. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3092. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3093. .name = "MultiMedia2 Output Channel2",
  3094. .info = msm_pcm_channel_weight_info,
  3095. .get = msm_pcm_channel_weight_get,
  3096. .put = msm_pcm_channel_weight_put,
  3097. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3098. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3099. },
  3100. {
  3101. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3102. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3103. .name = "MultiMedia2 Output Channel3",
  3104. .info = msm_pcm_channel_weight_info,
  3105. .get = msm_pcm_channel_weight_get,
  3106. .put = msm_pcm_channel_weight_put,
  3107. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3108. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3109. },
  3110. {
  3111. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3112. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3113. .name = "MultiMedia3 Output Channel1",
  3114. .info = msm_pcm_channel_weight_info,
  3115. .get = msm_pcm_channel_weight_get,
  3116. .put = msm_pcm_channel_weight_put,
  3117. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3118. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3119. },
  3120. {
  3121. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3122. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3123. .name = "MultiMedia3 Output Channel2",
  3124. .info = msm_pcm_channel_weight_info,
  3125. .get = msm_pcm_channel_weight_get,
  3126. .put = msm_pcm_channel_weight_put,
  3127. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3128. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3129. },
  3130. {
  3131. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3132. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3133. .name = "MultiMedia1 Channel1",
  3134. .info = msm_pcm_channel_input_be_info,
  3135. .get = msm_pcm_channel_input_be_get,
  3136. .put = msm_pcm_channel_input_be_put,
  3137. .private_value = (unsigned long)&(mm1_ch1_enum)
  3138. },
  3139. {
  3140. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3141. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3142. .name = "MultiMedia1 Channel2",
  3143. .info = msm_pcm_channel_input_be_info,
  3144. .get = msm_pcm_channel_input_be_get,
  3145. .put = msm_pcm_channel_input_be_put,
  3146. .private_value = (unsigned long)&(mm1_ch2_enum)
  3147. },
  3148. {
  3149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3151. .name = "MultiMedia1 Channel3",
  3152. .info = msm_pcm_channel_input_be_info,
  3153. .get = msm_pcm_channel_input_be_get,
  3154. .put = msm_pcm_channel_input_be_put,
  3155. .private_value = (unsigned long)&(mm1_ch3_enum)
  3156. },
  3157. {
  3158. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3159. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3160. .name = "MultiMedia1 Channel4",
  3161. .info = msm_pcm_channel_input_be_info,
  3162. .get = msm_pcm_channel_input_be_get,
  3163. .put = msm_pcm_channel_input_be_put,
  3164. .private_value = (unsigned long)&(mm1_ch4_enum)
  3165. },
  3166. {
  3167. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3168. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3169. .name = "MultiMedia1 Channel5",
  3170. .info = msm_pcm_channel_input_be_info,
  3171. .get = msm_pcm_channel_input_be_get,
  3172. .put = msm_pcm_channel_input_be_put,
  3173. .private_value = (unsigned long)&(mm1_ch5_enum)
  3174. },
  3175. {
  3176. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3177. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3178. .name = "MultiMedia1 Channel6",
  3179. .info = msm_pcm_channel_input_be_info,
  3180. .get = msm_pcm_channel_input_be_get,
  3181. .put = msm_pcm_channel_input_be_put,
  3182. .private_value = (unsigned long)&(mm1_ch6_enum)
  3183. },
  3184. {
  3185. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3186. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3187. .name = "MultiMedia1 Channel7",
  3188. .info = msm_pcm_channel_input_be_info,
  3189. .get = msm_pcm_channel_input_be_get,
  3190. .put = msm_pcm_channel_input_be_put,
  3191. .private_value = (unsigned long)&(mm1_ch7_enum)
  3192. },
  3193. {
  3194. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3195. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3196. .name = "MultiMedia1 Channel8",
  3197. .info = msm_pcm_channel_input_be_info,
  3198. .get = msm_pcm_channel_input_be_get,
  3199. .put = msm_pcm_channel_input_be_put,
  3200. .private_value = (unsigned long)&(mm1_ch8_enum)
  3201. },
  3202. };
  3203. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  3204. struct snd_ctl_elem_value *ucontrol)
  3205. {
  3206. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  3207. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  3208. ucontrol->value.integer.value[0]);
  3209. return 0;
  3210. }
  3211. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  3212. struct snd_ctl_elem_value *ucontrol)
  3213. {
  3214. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  3215. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  3216. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  3217. return 0;
  3218. }
  3219. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  3220. "Four", "Five", "Six", "Seven", "Eight"};
  3221. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  3222. struct snd_ctl_elem_value *ucontrol)
  3223. {
  3224. switch (msm_ec_ref_bit_format) {
  3225. case SNDRV_PCM_FORMAT_S24_LE:
  3226. ucontrol->value.integer.value[0] = 2;
  3227. break;
  3228. case SNDRV_PCM_FORMAT_S16_LE:
  3229. ucontrol->value.integer.value[0] = 1;
  3230. break;
  3231. default:
  3232. ucontrol->value.integer.value[0] = 0;
  3233. break;
  3234. }
  3235. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  3236. __func__, ucontrol->value.integer.value[0]);
  3237. return 0;
  3238. }
  3239. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  3240. struct snd_ctl_elem_value *ucontrol)
  3241. {
  3242. u16 bit_width = 0;
  3243. switch (ucontrol->value.integer.value[0]) {
  3244. case 2:
  3245. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  3246. break;
  3247. case 1:
  3248. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  3249. break;
  3250. default:
  3251. msm_ec_ref_bit_format = 0;
  3252. break;
  3253. }
  3254. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  3255. bit_width = 16;
  3256. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  3257. bit_width = 24;
  3258. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  3259. __func__, msm_ec_ref_bit_format);
  3260. adm_ec_ref_rx_bit_width(bit_width);
  3261. return 0;
  3262. }
  3263. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  3264. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  3265. struct snd_ctl_elem_value *ucontrol)
  3266. {
  3267. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  3268. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  3269. __func__, ucontrol->value.integer.value[0]);
  3270. return 0;
  3271. }
  3272. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  3273. struct snd_ctl_elem_value *ucontrol)
  3274. {
  3275. switch (ucontrol->value.integer.value[0]) {
  3276. case 0:
  3277. msm_ec_ref_sampling_rate = 0;
  3278. break;
  3279. case 1:
  3280. msm_ec_ref_sampling_rate = 8000;
  3281. break;
  3282. case 2:
  3283. msm_ec_ref_sampling_rate = 16000;
  3284. break;
  3285. case 3:
  3286. msm_ec_ref_sampling_rate = 32000;
  3287. break;
  3288. case 4:
  3289. msm_ec_ref_sampling_rate = 44100;
  3290. break;
  3291. case 5:
  3292. msm_ec_ref_sampling_rate = 48000;
  3293. break;
  3294. case 6:
  3295. msm_ec_ref_sampling_rate = 96000;
  3296. break;
  3297. case 7:
  3298. msm_ec_ref_sampling_rate = 192000;
  3299. break;
  3300. case 8:
  3301. msm_ec_ref_sampling_rate = 384000;
  3302. break;
  3303. default:
  3304. msm_ec_ref_sampling_rate = 48000;
  3305. break;
  3306. }
  3307. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  3308. __func__, msm_ec_ref_sampling_rate);
  3309. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  3310. return 0;
  3311. }
  3312. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  3313. "32000", "44100", "48000", "96000", "192000", "384000"};
  3314. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  3315. SOC_ENUM_SINGLE_EXT(9, ec_ref_ch_text),
  3316. SOC_ENUM_SINGLE_EXT(3, ec_ref_bit_format_text),
  3317. SOC_ENUM_SINGLE_EXT(9, ec_ref_rate_text),
  3318. };
  3319. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  3320. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  3321. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  3322. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  3323. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  3324. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  3325. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  3326. };
  3327. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  3328. struct snd_ctl_elem_value *ucontrol)
  3329. {
  3330. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  3331. mutex_lock(&routing_lock);
  3332. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  3333. mutex_unlock(&routing_lock);
  3334. return 0;
  3335. }
  3336. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  3337. struct snd_ctl_elem_value *ucontrol)
  3338. {
  3339. int ec_ref_port_id;
  3340. struct snd_soc_dapm_widget *widget =
  3341. snd_soc_dapm_kcontrol_widget(kcontrol);
  3342. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3343. struct snd_soc_dapm_update *update = NULL;
  3344. mutex_lock(&routing_lock);
  3345. switch (ucontrol->value.integer.value[0]) {
  3346. case 0:
  3347. msm_route_ec_ref_rx = 0;
  3348. ec_ref_port_id = AFE_PORT_INVALID;
  3349. break;
  3350. case 1:
  3351. msm_route_ec_ref_rx = 1;
  3352. ec_ref_port_id = SLIMBUS_0_RX;
  3353. break;
  3354. case 2:
  3355. msm_route_ec_ref_rx = 2;
  3356. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  3357. break;
  3358. case 3:
  3359. msm_route_ec_ref_rx = 3;
  3360. ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3361. break;
  3362. case 4:
  3363. msm_route_ec_ref_rx = 4;
  3364. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3365. break;
  3366. case 5:
  3367. msm_route_ec_ref_rx = 5;
  3368. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3369. break;
  3370. case 6:
  3371. msm_route_ec_ref_rx = 6;
  3372. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3373. break;
  3374. case 7:
  3375. msm_route_ec_ref_rx = 7;
  3376. ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  3377. break;
  3378. case 9:
  3379. msm_route_ec_ref_rx = 9;
  3380. ec_ref_port_id = SLIMBUS_5_RX;
  3381. break;
  3382. case 10:
  3383. msm_route_ec_ref_rx = 10;
  3384. ec_ref_port_id = SLIMBUS_1_TX;
  3385. break;
  3386. case 11:
  3387. msm_route_ec_ref_rx = 11;
  3388. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  3389. break;
  3390. case 12:
  3391. msm_route_ec_ref_rx = 12;
  3392. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  3393. break;
  3394. case 13:
  3395. msm_route_ec_ref_rx = 13;
  3396. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  3397. break;
  3398. case 14:
  3399. msm_route_ec_ref_rx = 14;
  3400. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  3401. break;
  3402. case 15:
  3403. msm_route_ec_ref_rx = 15;
  3404. ec_ref_port_id = SLIMBUS_6_RX;
  3405. break;
  3406. case 16:
  3407. msm_route_ec_ref_rx = 16;
  3408. ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  3409. break;
  3410. case 17:
  3411. msm_route_ec_ref_rx = 17;
  3412. ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  3413. break;
  3414. case 18:
  3415. msm_route_ec_ref_rx = 18;
  3416. ec_ref_port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  3417. break;
  3418. case 19:
  3419. msm_route_ec_ref_rx = 19;
  3420. ec_ref_port_id = AFE_PORT_ID_USB_RX;
  3421. break;
  3422. case 20:
  3423. msm_route_ec_ref_rx = 20;
  3424. ec_ref_port_id = AFE_PORT_ID_INT0_MI2S_RX;
  3425. break;
  3426. case 21:
  3427. msm_route_ec_ref_rx = 21;
  3428. ec_ref_port_id = AFE_PORT_ID_INT4_MI2S_RX;
  3429. break;
  3430. case 22:
  3431. msm_route_ec_ref_rx = 22;
  3432. ec_ref_port_id = AFE_PORT_ID_INT3_MI2S_TX;
  3433. break;
  3434. case 23:
  3435. msm_route_ec_ref_rx = 23;
  3436. ec_ref_port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  3437. break;
  3438. case 24:
  3439. msm_route_ec_ref_rx = 24;
  3440. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  3441. break;
  3442. case 25:
  3443. msm_route_ec_ref_rx = 25;
  3444. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  3445. break;
  3446. case 26:
  3447. msm_route_ec_ref_rx = 26;
  3448. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  3449. break;
  3450. case 27:
  3451. msm_route_ec_ref_rx = 27;
  3452. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  3453. break;
  3454. case 28:
  3455. msm_route_ec_ref_rx = 28;
  3456. ec_ref_port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  3457. break;
  3458. default:
  3459. msm_route_ec_ref_rx = 0; /* NONE */
  3460. pr_err("%s EC ref rx %ld not valid\n",
  3461. __func__, ucontrol->value.integer.value[0]);
  3462. ec_ref_port_id = AFE_PORT_INVALID;
  3463. break;
  3464. }
  3465. adm_ec_ref_rx_id(ec_ref_port_id);
  3466. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  3467. __func__, msm_route_ec_ref_rx);
  3468. mutex_unlock(&routing_lock);
  3469. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  3470. msm_route_ec_ref_rx, e, update);
  3471. return 0;
  3472. }
  3473. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  3474. "PRI_MI2S_TX", "SEC_MI2S_TX",
  3475. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  3476. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  3477. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  3478. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  3479. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  3480. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  3481. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2"
  3482. };
  3483. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  3484. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  3485. };
  3486. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  3487. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  3488. msm_route_ec_ref_rx_enum[0],
  3489. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3490. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  3491. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  3492. msm_route_ec_ref_rx_enum[0],
  3493. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3494. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  3495. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  3496. msm_route_ec_ref_rx_enum[0],
  3497. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3498. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  3499. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  3500. msm_route_ec_ref_rx_enum[0],
  3501. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3502. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  3503. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  3504. msm_route_ec_ref_rx_enum[0],
  3505. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3506. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  3507. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  3508. msm_route_ec_ref_rx_enum[0],
  3509. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3510. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  3511. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  3512. msm_route_ec_ref_rx_enum[0],
  3513. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3514. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  3515. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  3516. msm_route_ec_ref_rx_enum[0],
  3517. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3518. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  3519. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  3520. msm_route_ec_ref_rx_enum[0],
  3521. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3522. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  3523. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  3524. msm_route_ec_ref_rx_enum[0],
  3525. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3526. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  3527. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  3528. msm_route_ec_ref_rx_enum[0],
  3529. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3530. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  3531. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  3532. msm_route_ec_ref_rx_enum[0],
  3533. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3534. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  3535. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  3536. msm_route_ec_ref_rx_enum[0],
  3537. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3538. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  3539. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  3540. msm_route_ec_ref_rx_enum[0],
  3541. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3542. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  3543. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  3544. msm_route_ec_ref_rx_enum[0],
  3545. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  3546. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  3547. struct snd_ctl_elem_value *ucontrol)
  3548. {
  3549. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  3550. mutex_lock(&routing_lock);
  3551. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  3552. mutex_unlock(&routing_lock);
  3553. return 0;
  3554. }
  3555. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  3556. struct snd_ctl_elem_value *ucontrol)
  3557. {
  3558. struct snd_soc_dapm_widget *widget =
  3559. snd_soc_dapm_kcontrol_widget(kcontrol);
  3560. int mux = ucontrol->value.enumerated.item[0];
  3561. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3562. int ret = 1;
  3563. bool state = true;
  3564. uint16_t ext_ec_ref_port_id;
  3565. struct snd_soc_dapm_update *update = NULL;
  3566. if (mux >= e->items) {
  3567. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  3568. return -EINVAL;
  3569. }
  3570. mutex_lock(&routing_lock);
  3571. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  3572. switch (msm_route_ext_ec_ref) {
  3573. case EXT_EC_REF_PRI_MI2S_TX:
  3574. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  3575. break;
  3576. case EXT_EC_REF_SEC_MI2S_TX:
  3577. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  3578. break;
  3579. case EXT_EC_REF_TERT_MI2S_TX:
  3580. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  3581. break;
  3582. case EXT_EC_REF_QUAT_MI2S_TX:
  3583. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  3584. break;
  3585. case EXT_EC_REF_QUIN_MI2S_TX:
  3586. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  3587. break;
  3588. case EXT_EC_REF_SLIM_1_TX:
  3589. ext_ec_ref_port_id = SLIMBUS_1_TX;
  3590. break;
  3591. case EXT_EC_REF_NONE:
  3592. default:
  3593. ext_ec_ref_port_id = AFE_PORT_INVALID;
  3594. state = false;
  3595. break;
  3596. }
  3597. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  3598. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  3599. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  3600. mutex_unlock(&routing_lock);
  3601. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  3602. update);
  3603. } else {
  3604. ret = -EINVAL;
  3605. mutex_unlock(&routing_lock);
  3606. }
  3607. return ret;
  3608. }
  3609. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  3610. "SEC_MI2S_TX", "TERT_MI2S_TX",
  3611. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  3612. "SLIM_1_TX"};
  3613. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  3614. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  3615. };
  3616. static const struct snd_kcontrol_new voc_ext_ec_mux =
  3617. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  3618. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  3619. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  3620. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3621. MSM_BACKEND_DAI_PRI_I2S_RX,
  3622. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3623. msm_routing_put_audio_mixer),
  3624. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3625. MSM_BACKEND_DAI_PRI_I2S_RX,
  3626. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3627. msm_routing_put_audio_mixer),
  3628. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3629. MSM_BACKEND_DAI_PRI_I2S_RX,
  3630. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3631. msm_routing_put_audio_mixer),
  3632. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3633. MSM_BACKEND_DAI_PRI_I2S_RX,
  3634. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3635. msm_routing_put_audio_mixer),
  3636. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3637. MSM_BACKEND_DAI_PRI_I2S_RX,
  3638. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3639. msm_routing_put_audio_mixer),
  3640. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3641. MSM_BACKEND_DAI_PRI_I2S_RX,
  3642. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3643. msm_routing_put_audio_mixer),
  3644. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3645. MSM_BACKEND_DAI_PRI_I2S_RX,
  3646. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3647. msm_routing_put_audio_mixer),
  3648. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3649. MSM_BACKEND_DAI_PRI_I2S_RX,
  3650. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3651. msm_routing_put_audio_mixer),
  3652. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3653. MSM_BACKEND_DAI_PRI_I2S_RX,
  3654. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3655. msm_routing_put_audio_mixer),
  3656. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3657. MSM_BACKEND_DAI_PRI_I2S_RX,
  3658. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3659. msm_routing_put_audio_mixer),
  3660. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3661. MSM_BACKEND_DAI_PRI_I2S_RX,
  3662. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3663. msm_routing_put_audio_mixer),
  3664. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3665. MSM_BACKEND_DAI_PRI_I2S_RX,
  3666. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3667. msm_routing_put_audio_mixer),
  3668. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3669. MSM_BACKEND_DAI_PRI_I2S_RX,
  3670. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3671. msm_routing_put_audio_mixer),
  3672. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3673. MSM_BACKEND_DAI_PRI_I2S_RX,
  3674. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3675. msm_routing_put_audio_mixer),
  3676. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3677. MSM_BACKEND_DAI_PRI_I2S_RX,
  3678. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3679. msm_routing_put_audio_mixer),
  3680. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3681. MSM_BACKEND_DAI_PRI_I2S_RX,
  3682. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3683. msm_routing_put_audio_mixer),
  3684. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3685. MSM_BACKEND_DAI_PRI_I2S_RX,
  3686. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3687. msm_routing_put_audio_mixer),
  3688. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3689. MSM_BACKEND_DAI_PRI_I2S_RX,
  3690. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3691. msm_routing_put_audio_mixer),
  3692. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3693. MSM_BACKEND_DAI_PRI_I2S_RX,
  3694. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3695. msm_routing_put_audio_mixer),
  3696. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3697. MSM_BACKEND_DAI_PRI_I2S_RX,
  3698. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3699. msm_routing_put_audio_mixer),
  3700. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3701. MSM_BACKEND_DAI_PRI_I2S_RX,
  3702. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3703. msm_routing_put_audio_mixer),
  3704. };
  3705. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  3706. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3707. MSM_BACKEND_DAI_SEC_I2S_RX,
  3708. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3709. msm_routing_put_audio_mixer),
  3710. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3711. MSM_BACKEND_DAI_SEC_I2S_RX,
  3712. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3713. msm_routing_put_audio_mixer),
  3714. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3715. MSM_BACKEND_DAI_SEC_I2S_RX,
  3716. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3717. msm_routing_put_audio_mixer),
  3718. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3719. MSM_BACKEND_DAI_SEC_I2S_RX,
  3720. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3721. msm_routing_put_audio_mixer),
  3722. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3723. MSM_BACKEND_DAI_SEC_I2S_RX,
  3724. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3725. msm_routing_put_audio_mixer),
  3726. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3727. MSM_BACKEND_DAI_SEC_I2S_RX,
  3728. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3729. msm_routing_put_audio_mixer),
  3730. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3731. MSM_BACKEND_DAI_SEC_I2S_RX,
  3732. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3733. msm_routing_put_audio_mixer),
  3734. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3735. MSM_BACKEND_DAI_SEC_I2S_RX,
  3736. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3737. msm_routing_put_audio_mixer),
  3738. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3739. MSM_BACKEND_DAI_SEC_I2S_RX,
  3740. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3741. msm_routing_put_audio_mixer),
  3742. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3743. MSM_BACKEND_DAI_SEC_I2S_RX,
  3744. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3745. msm_routing_put_audio_mixer),
  3746. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3747. MSM_BACKEND_DAI_SEC_I2S_RX,
  3748. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3749. msm_routing_put_audio_mixer),
  3750. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3751. MSM_BACKEND_DAI_SEC_I2S_RX,
  3752. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3753. msm_routing_put_audio_mixer),
  3754. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3755. MSM_BACKEND_DAI_SEC_I2S_RX,
  3756. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3757. msm_routing_put_audio_mixer),
  3758. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3759. MSM_BACKEND_DAI_SEC_I2S_RX,
  3760. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3761. msm_routing_put_audio_mixer),
  3762. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3763. MSM_BACKEND_DAI_SEC_I2S_RX,
  3764. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3765. msm_routing_put_audio_mixer),
  3766. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3767. MSM_BACKEND_DAI_SEC_I2S_RX,
  3768. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3769. msm_routing_put_audio_mixer),
  3770. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3771. MSM_BACKEND_DAI_SEC_I2S_RX,
  3772. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3773. msm_routing_put_audio_mixer),
  3774. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3775. MSM_BACKEND_DAI_SEC_I2S_RX,
  3776. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3777. msm_routing_put_audio_mixer),
  3778. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3779. MSM_BACKEND_DAI_SEC_I2S_RX,
  3780. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3781. msm_routing_put_audio_mixer),
  3782. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3783. MSM_BACKEND_DAI_SEC_I2S_RX,
  3784. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3785. msm_routing_put_audio_mixer),
  3786. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3787. MSM_BACKEND_DAI_SEC_I2S_RX,
  3788. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3789. msm_routing_put_audio_mixer),
  3790. };
  3791. static const struct snd_kcontrol_new spdif_rx_mixer_controls[] = {
  3792. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3793. MSM_BACKEND_DAI_SPDIF_RX,
  3794. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3795. msm_routing_put_audio_mixer),
  3796. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3797. MSM_BACKEND_DAI_SPDIF_RX,
  3798. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3799. msm_routing_put_audio_mixer),
  3800. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3801. MSM_BACKEND_DAI_SPDIF_RX,
  3802. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3803. msm_routing_put_audio_mixer),
  3804. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3805. MSM_BACKEND_DAI_SPDIF_RX,
  3806. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3807. msm_routing_put_audio_mixer),
  3808. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3809. MSM_BACKEND_DAI_SPDIF_RX,
  3810. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3811. msm_routing_put_audio_mixer),
  3812. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3813. MSM_BACKEND_DAI_SPDIF_RX,
  3814. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3815. msm_routing_put_audio_mixer),
  3816. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3817. MSM_BACKEND_DAI_SPDIF_RX,
  3818. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3819. msm_routing_put_audio_mixer),
  3820. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3821. MSM_BACKEND_DAI_SPDIF_RX,
  3822. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3823. msm_routing_put_audio_mixer),
  3824. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3825. MSM_BACKEND_DAI_SPDIF_RX,
  3826. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3827. msm_routing_put_audio_mixer),
  3828. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3829. MSM_BACKEND_DAI_SPDIF_RX,
  3830. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3831. msm_routing_put_audio_mixer),
  3832. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3833. MSM_BACKEND_DAI_SPDIF_RX,
  3834. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3835. msm_routing_put_audio_mixer),
  3836. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3837. MSM_BACKEND_DAI_SPDIF_RX,
  3838. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3839. msm_routing_put_audio_mixer),
  3840. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3841. MSM_BACKEND_DAI_SPDIF_RX,
  3842. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3843. msm_routing_put_audio_mixer),
  3844. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3845. MSM_BACKEND_DAI_SPDIF_RX,
  3846. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3847. msm_routing_put_audio_mixer),
  3848. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3849. MSM_BACKEND_DAI_SPDIF_RX,
  3850. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3851. msm_routing_put_audio_mixer),
  3852. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3853. MSM_BACKEND_DAI_SPDIF_RX,
  3854. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3855. msm_routing_put_audio_mixer),
  3856. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  3857. MSM_BACKEND_DAI_SPDIF_RX,
  3858. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  3859. msm_routing_put_audio_mixer),
  3860. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  3861. MSM_BACKEND_DAI_SPDIF_RX,
  3862. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  3863. msm_routing_put_audio_mixer),
  3864. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  3865. MSM_BACKEND_DAI_SPDIF_RX,
  3866. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  3867. msm_routing_put_audio_mixer),
  3868. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  3869. MSM_BACKEND_DAI_SPDIF_RX,
  3870. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  3871. msm_routing_put_audio_mixer),
  3872. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  3873. MSM_BACKEND_DAI_SPDIF_RX,
  3874. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  3875. msm_routing_put_audio_mixer),
  3876. };
  3877. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  3878. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3879. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3880. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3881. msm_routing_put_audio_mixer),
  3882. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3883. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3884. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3885. msm_routing_put_audio_mixer),
  3886. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3887. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3888. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3889. msm_routing_put_audio_mixer),
  3890. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3891. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3892. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3893. msm_routing_put_audio_mixer),
  3894. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3895. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3896. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3897. msm_routing_put_audio_mixer),
  3898. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3899. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3900. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3901. msm_routing_put_audio_mixer),
  3902. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3903. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3904. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3905. msm_routing_put_audio_mixer),
  3906. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3907. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3908. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3909. msm_routing_put_audio_mixer),
  3910. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3911. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3912. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3913. msm_routing_put_audio_mixer),
  3914. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3915. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3916. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3917. msm_routing_put_audio_mixer),
  3918. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3919. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3920. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3921. msm_routing_put_audio_mixer),
  3922. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3923. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3924. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3925. msm_routing_put_audio_mixer),
  3926. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3927. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3928. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3929. msm_routing_put_audio_mixer),
  3930. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3931. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3932. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3933. msm_routing_put_audio_mixer),
  3934. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  3935. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3936. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  3937. msm_routing_put_audio_mixer),
  3938. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  3939. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  3940. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  3941. msm_routing_put_audio_mixer),
  3942. };
  3943. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  3944. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  3945. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3946. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  3947. msm_routing_put_audio_mixer),
  3948. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  3949. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3950. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  3951. msm_routing_put_audio_mixer),
  3952. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  3953. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3954. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  3955. msm_routing_put_audio_mixer),
  3956. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  3957. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3958. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  3959. msm_routing_put_audio_mixer),
  3960. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  3961. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3962. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  3963. msm_routing_put_audio_mixer),
  3964. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  3965. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3966. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  3967. msm_routing_put_audio_mixer),
  3968. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  3969. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3970. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  3971. msm_routing_put_audio_mixer),
  3972. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  3973. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3974. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  3975. msm_routing_put_audio_mixer),
  3976. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  3977. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3978. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  3979. msm_routing_put_audio_mixer),
  3980. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  3981. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3982. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  3983. msm_routing_put_audio_mixer),
  3984. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  3985. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3986. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  3987. msm_routing_put_audio_mixer),
  3988. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  3989. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3990. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  3991. msm_routing_put_audio_mixer),
  3992. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  3993. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3994. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  3995. msm_routing_put_audio_mixer),
  3996. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  3997. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  3998. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  3999. msm_routing_put_audio_mixer),
  4000. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4001. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4002. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4003. msm_routing_put_audio_mixer),
  4004. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4005. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4006. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4007. msm_routing_put_audio_mixer),
  4008. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4009. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4010. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4011. msm_routing_put_audio_mixer),
  4012. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4013. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4014. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4015. msm_routing_put_audio_mixer),
  4016. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4017. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4018. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4019. msm_routing_put_audio_mixer),
  4020. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4021. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4022. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4023. msm_routing_put_audio_mixer),
  4024. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4025. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  4026. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4027. msm_routing_put_audio_mixer),
  4028. };
  4029. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  4030. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4031. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4032. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4033. msm_routing_put_audio_mixer),
  4034. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4035. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4036. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4037. msm_routing_put_audio_mixer),
  4038. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4039. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4040. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4041. msm_routing_put_audio_mixer),
  4042. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4043. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4044. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4045. msm_routing_put_audio_mixer),
  4046. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4047. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4048. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4049. msm_routing_put_audio_mixer),
  4050. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4051. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4052. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4053. msm_routing_put_audio_mixer),
  4054. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4055. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4056. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4057. msm_routing_put_audio_mixer),
  4058. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4059. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4060. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4061. msm_routing_put_audio_mixer),
  4062. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4063. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4064. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4065. msm_routing_put_audio_mixer),
  4066. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4067. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4068. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4069. msm_routing_put_audio_mixer),
  4070. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4071. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4072. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4073. msm_routing_put_audio_mixer),
  4074. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4075. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4076. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4077. msm_routing_put_audio_mixer),
  4078. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4079. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4080. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4081. msm_routing_put_audio_mixer),
  4082. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4083. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4084. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4085. msm_routing_put_audio_mixer),
  4086. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4087. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4088. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4089. msm_routing_put_audio_mixer),
  4090. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4091. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4092. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4093. msm_routing_put_audio_mixer),
  4094. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4095. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4096. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4097. msm_routing_put_audio_mixer),
  4098. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4099. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4100. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4101. msm_routing_put_audio_mixer),
  4102. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4103. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4104. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4105. msm_routing_put_audio_mixer),
  4106. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4107. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4108. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4109. msm_routing_put_audio_mixer),
  4110. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4111. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  4112. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4113. msm_routing_put_audio_mixer),
  4114. };
  4115. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  4116. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4117. MSM_BACKEND_DAI_MI2S_RX,
  4118. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4119. msm_routing_put_audio_mixer),
  4120. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4121. MSM_BACKEND_DAI_MI2S_RX,
  4122. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4123. msm_routing_put_audio_mixer),
  4124. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4125. MSM_BACKEND_DAI_MI2S_RX,
  4126. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4127. msm_routing_put_audio_mixer),
  4128. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4129. MSM_BACKEND_DAI_MI2S_RX,
  4130. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4131. msm_routing_put_audio_mixer),
  4132. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4133. MSM_BACKEND_DAI_MI2S_RX,
  4134. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4135. msm_routing_put_audio_mixer),
  4136. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4137. MSM_BACKEND_DAI_MI2S_RX,
  4138. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4139. msm_routing_put_audio_mixer),
  4140. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4141. MSM_BACKEND_DAI_MI2S_RX,
  4142. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4143. msm_routing_put_audio_mixer),
  4144. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4145. MSM_BACKEND_DAI_MI2S_RX,
  4146. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4147. msm_routing_put_audio_mixer),
  4148. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4149. MSM_BACKEND_DAI_MI2S_RX,
  4150. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4151. msm_routing_put_audio_mixer),
  4152. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4153. MSM_BACKEND_DAI_MI2S_RX,
  4154. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4155. msm_routing_put_audio_mixer),
  4156. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4157. MSM_BACKEND_DAI_MI2S_RX,
  4158. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4159. msm_routing_put_audio_mixer),
  4160. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4161. MSM_BACKEND_DAI_MI2S_RX,
  4162. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4163. msm_routing_put_audio_mixer),
  4164. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4165. MSM_BACKEND_DAI_MI2S_RX,
  4166. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4167. msm_routing_put_audio_mixer),
  4168. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4169. MSM_BACKEND_DAI_MI2S_RX,
  4170. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4171. msm_routing_put_audio_mixer),
  4172. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4173. MSM_BACKEND_DAI_MI2S_RX,
  4174. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4175. msm_routing_put_audio_mixer),
  4176. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4177. MSM_BACKEND_DAI_MI2S_RX,
  4178. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4179. msm_routing_put_audio_mixer),
  4180. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4181. MSM_BACKEND_DAI_MI2S_RX,
  4182. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4183. msm_routing_put_audio_mixer),
  4184. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4185. MSM_BACKEND_DAI_MI2S_RX,
  4186. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4187. msm_routing_put_audio_mixer),
  4188. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4189. MSM_BACKEND_DAI_MI2S_RX,
  4190. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4191. msm_routing_put_audio_mixer),
  4192. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4193. MSM_BACKEND_DAI_MI2S_RX,
  4194. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4195. msm_routing_put_audio_mixer),
  4196. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4197. MSM_BACKEND_DAI_MI2S_RX,
  4198. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4199. msm_routing_put_audio_mixer),
  4200. };
  4201. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  4202. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4203. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4204. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4205. msm_routing_put_audio_mixer),
  4206. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4207. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4208. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4209. msm_routing_put_audio_mixer),
  4210. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4211. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4212. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4213. msm_routing_put_audio_mixer),
  4214. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4215. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4216. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4217. msm_routing_put_audio_mixer),
  4218. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4219. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4220. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4221. msm_routing_put_audio_mixer),
  4222. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4223. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4224. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4225. msm_routing_put_audio_mixer),
  4226. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4227. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4228. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4229. msm_routing_put_audio_mixer),
  4230. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4231. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4232. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4233. msm_routing_put_audio_mixer),
  4234. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4235. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4236. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4237. msm_routing_put_audio_mixer),
  4238. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4239. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4240. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4241. msm_routing_put_audio_mixer),
  4242. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4243. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4244. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4245. msm_routing_put_audio_mixer),
  4246. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4247. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4248. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4249. msm_routing_put_audio_mixer),
  4250. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4251. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4252. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4253. msm_routing_put_audio_mixer),
  4254. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4255. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4256. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4257. msm_routing_put_audio_mixer),
  4258. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4259. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4260. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4261. msm_routing_put_audio_mixer),
  4262. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4263. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4264. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4265. msm_routing_put_audio_mixer),
  4266. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4267. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4268. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4269. msm_routing_put_audio_mixer),
  4270. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4271. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4272. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4273. msm_routing_put_audio_mixer),
  4274. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4275. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4276. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4277. msm_routing_put_audio_mixer),
  4278. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4279. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4280. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4281. msm_routing_put_audio_mixer),
  4282. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4283. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  4284. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4285. msm_routing_put_audio_mixer),
  4286. };
  4287. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  4288. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4289. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4290. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4291. msm_routing_put_audio_mixer),
  4292. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4293. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4294. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4295. msm_routing_put_audio_mixer),
  4296. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4297. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4298. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4299. msm_routing_put_audio_mixer),
  4300. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4301. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4302. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4303. msm_routing_put_audio_mixer),
  4304. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4305. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4306. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4307. msm_routing_put_audio_mixer),
  4308. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4309. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4310. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4311. msm_routing_put_audio_mixer),
  4312. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4313. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4314. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4315. msm_routing_put_audio_mixer),
  4316. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4317. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4318. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4319. msm_routing_put_audio_mixer),
  4320. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4321. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4322. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4323. msm_routing_put_audio_mixer),
  4324. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4325. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4326. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4327. msm_routing_put_audio_mixer),
  4328. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4329. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4330. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4331. msm_routing_put_audio_mixer),
  4332. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4333. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4334. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4335. msm_routing_put_audio_mixer),
  4336. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4337. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4338. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4339. msm_routing_put_audio_mixer),
  4340. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4341. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4342. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4343. msm_routing_put_audio_mixer),
  4344. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4345. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4346. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4347. msm_routing_put_audio_mixer),
  4348. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4349. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4350. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4351. msm_routing_put_audio_mixer),
  4352. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4353. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4354. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4355. msm_routing_put_audio_mixer),
  4356. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4357. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4358. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4359. msm_routing_put_audio_mixer),
  4360. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4361. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4362. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4363. msm_routing_put_audio_mixer),
  4364. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4365. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4366. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4367. msm_routing_put_audio_mixer),
  4368. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4369. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  4370. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4371. msm_routing_put_audio_mixer),
  4372. };
  4373. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  4374. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4375. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4376. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4377. msm_routing_put_audio_mixer),
  4378. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4379. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4380. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4381. msm_routing_put_audio_mixer),
  4382. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4383. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4384. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4385. msm_routing_put_audio_mixer),
  4386. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4387. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4388. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4389. msm_routing_put_audio_mixer),
  4390. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4391. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4392. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4393. msm_routing_put_audio_mixer),
  4394. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4395. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4396. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4397. msm_routing_put_audio_mixer),
  4398. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4399. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4400. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4401. msm_routing_put_audio_mixer),
  4402. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4403. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4404. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4405. msm_routing_put_audio_mixer),
  4406. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4407. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4408. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4409. msm_routing_put_audio_mixer),
  4410. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4411. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4412. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4413. msm_routing_put_audio_mixer),
  4414. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4415. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4416. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4417. msm_routing_put_audio_mixer),
  4418. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4419. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4420. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4421. msm_routing_put_audio_mixer),
  4422. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4423. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4424. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4425. msm_routing_put_audio_mixer),
  4426. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4427. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4428. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4429. msm_routing_put_audio_mixer),
  4430. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4431. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4432. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4433. msm_routing_put_audio_mixer),
  4434. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4435. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4436. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4437. msm_routing_put_audio_mixer),
  4438. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4439. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4440. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4441. msm_routing_put_audio_mixer),
  4442. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4443. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4444. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4445. msm_routing_put_audio_mixer),
  4446. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4447. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  4448. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4449. msm_routing_put_audio_mixer),
  4450. };
  4451. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  4452. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  4454. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4455. msm_routing_put_audio_mixer),
  4456. };
  4457. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  4458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4459. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4461. msm_routing_put_audio_mixer),
  4462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4463. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4465. msm_routing_put_audio_mixer),
  4466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4467. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4469. msm_routing_put_audio_mixer),
  4470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4471. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4473. msm_routing_put_audio_mixer),
  4474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4475. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4477. msm_routing_put_audio_mixer),
  4478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4479. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4481. msm_routing_put_audio_mixer),
  4482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4483. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4485. msm_routing_put_audio_mixer),
  4486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4487. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4489. msm_routing_put_audio_mixer),
  4490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4491. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4493. msm_routing_put_audio_mixer),
  4494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4495. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4497. msm_routing_put_audio_mixer),
  4498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4499. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4501. msm_routing_put_audio_mixer),
  4502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4503. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4505. msm_routing_put_audio_mixer),
  4506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4507. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4509. msm_routing_put_audio_mixer),
  4510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4511. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4513. msm_routing_put_audio_mixer),
  4514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4515. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4517. msm_routing_put_audio_mixer),
  4518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4519. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4521. msm_routing_put_audio_mixer),
  4522. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4523. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4524. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4525. msm_routing_put_audio_mixer),
  4526. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4527. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4528. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4529. msm_routing_put_audio_mixer),
  4530. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4531. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4533. msm_routing_put_audio_mixer),
  4534. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4535. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4537. msm_routing_put_audio_mixer),
  4538. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4539. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  4540. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4541. msm_routing_put_audio_mixer),
  4542. };
  4543. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  4544. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4545. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4546. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4547. msm_routing_put_audio_mixer),
  4548. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4549. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4550. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4551. msm_routing_put_audio_mixer),
  4552. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4553. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4554. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4555. msm_routing_put_audio_mixer),
  4556. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4557. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4558. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4559. msm_routing_put_audio_mixer),
  4560. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4561. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4562. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4563. msm_routing_put_audio_mixer),
  4564. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4565. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4566. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4567. msm_routing_put_audio_mixer),
  4568. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4569. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4570. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4571. msm_routing_put_audio_mixer),
  4572. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4573. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4574. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4575. msm_routing_put_audio_mixer),
  4576. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4577. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4578. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4579. msm_routing_put_audio_mixer),
  4580. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4581. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4582. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4583. msm_routing_put_audio_mixer),
  4584. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4585. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4586. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4587. msm_routing_put_audio_mixer),
  4588. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4589. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4590. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4591. msm_routing_put_audio_mixer),
  4592. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4593. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4594. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4595. msm_routing_put_audio_mixer),
  4596. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4597. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4598. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4599. msm_routing_put_audio_mixer),
  4600. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4601. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4602. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4603. msm_routing_put_audio_mixer),
  4604. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4605. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4606. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4607. msm_routing_put_audio_mixer),
  4608. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4609. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4610. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4611. msm_routing_put_audio_mixer),
  4612. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4613. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4614. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4615. msm_routing_put_audio_mixer),
  4616. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4617. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4618. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4619. msm_routing_put_audio_mixer),
  4620. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4621. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4622. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4623. msm_routing_put_audio_mixer),
  4624. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4625. MSM_BACKEND_DAI_PRI_MI2S_RX,
  4626. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4627. msm_routing_put_audio_mixer),
  4628. };
  4629. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  4630. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4631. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4632. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4633. msm_routing_put_audio_mixer),
  4634. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4635. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4636. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4637. msm_routing_put_audio_mixer),
  4638. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4639. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4640. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4641. msm_routing_put_audio_mixer),
  4642. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4643. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4644. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4645. msm_routing_put_audio_mixer),
  4646. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4647. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4648. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4649. msm_routing_put_audio_mixer),
  4650. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4651. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4652. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4653. msm_routing_put_audio_mixer),
  4654. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4655. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4656. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4657. msm_routing_put_audio_mixer),
  4658. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4659. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4660. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4661. msm_routing_put_audio_mixer),
  4662. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4663. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4664. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4665. msm_routing_put_audio_mixer),
  4666. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4667. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4668. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4669. msm_routing_put_audio_mixer),
  4670. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4671. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4672. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4673. msm_routing_put_audio_mixer),
  4674. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4675. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4676. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4677. msm_routing_put_audio_mixer),
  4678. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4679. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4680. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4681. msm_routing_put_audio_mixer),
  4682. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4683. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4684. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4685. msm_routing_put_audio_mixer),
  4686. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4687. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4688. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4689. msm_routing_put_audio_mixer),
  4690. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4691. MSM_BACKEND_DAI_INT0_MI2S_RX,
  4692. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4693. msm_routing_put_audio_mixer),
  4694. };
  4695. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  4696. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4697. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4698. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4699. msm_routing_put_audio_mixer),
  4700. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4701. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4702. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4703. msm_routing_put_audio_mixer),
  4704. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4705. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4706. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4707. msm_routing_put_audio_mixer),
  4708. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4709. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4710. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4711. msm_routing_put_audio_mixer),
  4712. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4713. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4714. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4715. msm_routing_put_audio_mixer),
  4716. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4717. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4718. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4719. msm_routing_put_audio_mixer),
  4720. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4721. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4722. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4723. msm_routing_put_audio_mixer),
  4724. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4725. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4726. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4727. msm_routing_put_audio_mixer),
  4728. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4729. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4730. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4731. msm_routing_put_audio_mixer),
  4732. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4733. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4734. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4735. msm_routing_put_audio_mixer),
  4736. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4737. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4738. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4739. msm_routing_put_audio_mixer),
  4740. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4741. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4742. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4743. msm_routing_put_audio_mixer),
  4744. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4745. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4746. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4747. msm_routing_put_audio_mixer),
  4748. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4749. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4750. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4751. msm_routing_put_audio_mixer),
  4752. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4753. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4754. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4755. msm_routing_put_audio_mixer),
  4756. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4757. MSM_BACKEND_DAI_INT4_MI2S_RX,
  4758. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4759. msm_routing_put_audio_mixer),
  4760. };
  4761. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  4762. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4763. MSM_BACKEND_DAI_HDMI_RX,
  4764. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4765. msm_routing_put_audio_mixer),
  4766. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4767. MSM_BACKEND_DAI_HDMI_RX,
  4768. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4769. msm_routing_put_audio_mixer),
  4770. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4771. MSM_BACKEND_DAI_HDMI_RX,
  4772. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4773. msm_routing_put_audio_mixer),
  4774. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4775. MSM_BACKEND_DAI_HDMI_RX,
  4776. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4777. msm_routing_put_audio_mixer),
  4778. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4779. MSM_BACKEND_DAI_HDMI_RX,
  4780. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4781. msm_routing_put_audio_mixer),
  4782. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4783. MSM_BACKEND_DAI_HDMI_RX,
  4784. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4785. msm_routing_put_audio_mixer),
  4786. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4787. MSM_BACKEND_DAI_HDMI_RX,
  4788. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4789. msm_routing_put_audio_mixer),
  4790. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4791. MSM_BACKEND_DAI_HDMI_RX,
  4792. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4793. msm_routing_put_audio_mixer),
  4794. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4795. MSM_BACKEND_DAI_HDMI_RX,
  4796. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4797. msm_routing_put_audio_mixer),
  4798. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4799. MSM_BACKEND_DAI_HDMI_RX,
  4800. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4801. msm_routing_put_audio_mixer),
  4802. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4803. MSM_BACKEND_DAI_HDMI_RX,
  4804. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4805. msm_routing_put_audio_mixer),
  4806. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4807. MSM_BACKEND_DAI_HDMI_RX,
  4808. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4809. msm_routing_put_audio_mixer),
  4810. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4811. MSM_BACKEND_DAI_HDMI_RX,
  4812. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4813. msm_routing_put_audio_mixer),
  4814. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4815. MSM_BACKEND_DAI_HDMI_RX,
  4816. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4817. msm_routing_put_audio_mixer),
  4818. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4819. MSM_BACKEND_DAI_HDMI_RX,
  4820. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4821. msm_routing_put_audio_mixer),
  4822. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4823. MSM_BACKEND_DAI_HDMI_RX,
  4824. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4825. msm_routing_put_audio_mixer),
  4826. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  4827. MSM_BACKEND_DAI_HDMI_RX,
  4828. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  4829. msm_routing_put_audio_mixer),
  4830. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  4831. MSM_BACKEND_DAI_HDMI_RX,
  4832. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  4833. msm_routing_put_audio_mixer),
  4834. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  4835. MSM_BACKEND_DAI_HDMI_RX,
  4836. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  4837. msm_routing_put_audio_mixer),
  4838. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  4839. MSM_BACKEND_DAI_HDMI_RX,
  4840. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  4841. msm_routing_put_audio_mixer),
  4842. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  4843. MSM_BACKEND_DAI_HDMI_RX,
  4844. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  4845. msm_routing_put_audio_mixer),
  4846. };
  4847. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  4848. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4849. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4850. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4851. msm_routing_put_audio_mixer),
  4852. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4853. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4854. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4855. msm_routing_put_audio_mixer),
  4856. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4857. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4858. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4859. msm_routing_put_audio_mixer),
  4860. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4861. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4862. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4863. msm_routing_put_audio_mixer),
  4864. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4865. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4866. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4867. msm_routing_put_audio_mixer),
  4868. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4869. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4870. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4871. msm_routing_put_audio_mixer),
  4872. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4873. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4874. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4875. msm_routing_put_audio_mixer),
  4876. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4877. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4878. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4879. msm_routing_put_audio_mixer),
  4880. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4881. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4882. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4883. msm_routing_put_audio_mixer),
  4884. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4885. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4886. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4887. msm_routing_put_audio_mixer),
  4888. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4889. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4890. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4891. msm_routing_put_audio_mixer),
  4892. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4893. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4894. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4895. msm_routing_put_audio_mixer),
  4896. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4897. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4898. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4899. msm_routing_put_audio_mixer),
  4900. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4901. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4902. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4903. msm_routing_put_audio_mixer),
  4904. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4905. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4906. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4907. msm_routing_put_audio_mixer),
  4908. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4909. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  4910. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4911. msm_routing_put_audio_mixer),
  4912. };
  4913. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  4914. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4915. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4916. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4917. msm_routing_put_audio_mixer),
  4918. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4919. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4920. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4921. msm_routing_put_audio_mixer),
  4922. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  4923. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4924. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  4925. msm_routing_put_audio_mixer),
  4926. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  4927. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4928. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  4929. msm_routing_put_audio_mixer),
  4930. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4931. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4932. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4933. msm_routing_put_audio_mixer),
  4934. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  4935. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4936. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  4937. msm_routing_put_audio_mixer),
  4938. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  4939. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4940. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  4941. msm_routing_put_audio_mixer),
  4942. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  4943. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4944. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  4945. msm_routing_put_audio_mixer),
  4946. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4947. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4948. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4949. msm_routing_put_audio_mixer),
  4950. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  4951. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4952. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  4953. msm_routing_put_audio_mixer),
  4954. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  4955. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4956. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  4957. msm_routing_put_audio_mixer),
  4958. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  4959. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4960. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  4961. msm_routing_put_audio_mixer),
  4962. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  4963. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4964. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  4965. msm_routing_put_audio_mixer),
  4966. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  4967. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4968. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  4969. msm_routing_put_audio_mixer),
  4970. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  4971. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4972. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  4973. msm_routing_put_audio_mixer),
  4974. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  4975. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  4976. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  4977. msm_routing_put_audio_mixer),
  4978. };
  4979. /* incall music delivery mixer */
  4980. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  4981. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  4982. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4983. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  4984. msm_routing_put_audio_mixer),
  4985. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  4986. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4987. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  4988. msm_routing_put_audio_mixer),
  4989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  4990. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  4992. msm_routing_put_audio_mixer),
  4993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  4994. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  4995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  4996. msm_routing_put_audio_mixer),
  4997. };
  4998. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  4999. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5000. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5002. msm_routing_put_audio_mixer),
  5003. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5004. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5005. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5006. msm_routing_put_audio_mixer),
  5007. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5008. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5009. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5010. msm_routing_put_audio_mixer),
  5011. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5012. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  5013. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5014. msm_routing_put_audio_mixer),
  5015. };
  5016. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  5017. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5018. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5019. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5020. msm_routing_put_audio_mixer),
  5021. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5022. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5024. msm_routing_put_audio_mixer),
  5025. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5026. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5027. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5028. msm_routing_put_audio_mixer),
  5029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5030. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  5031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5032. msm_routing_put_audio_mixer),
  5033. };
  5034. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  5035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5036. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5038. msm_routing_put_audio_mixer),
  5039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5040. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5042. msm_routing_put_audio_mixer),
  5043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5044. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5046. msm_routing_put_audio_mixer),
  5047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5048. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5050. msm_routing_put_audio_mixer),
  5051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5052. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5054. msm_routing_put_audio_mixer),
  5055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5056. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5058. msm_routing_put_audio_mixer),
  5059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5060. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5062. msm_routing_put_audio_mixer),
  5063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5064. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5066. msm_routing_put_audio_mixer),
  5067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5068. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5070. msm_routing_put_audio_mixer),
  5071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5072. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5074. msm_routing_put_audio_mixer),
  5075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5076. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5078. msm_routing_put_audio_mixer),
  5079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5080. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5082. msm_routing_put_audio_mixer),
  5083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5084. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5086. msm_routing_put_audio_mixer),
  5087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5088. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5090. msm_routing_put_audio_mixer),
  5091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5092. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5094. msm_routing_put_audio_mixer),
  5095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5096. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  5097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5098. msm_routing_put_audio_mixer),
  5099. };
  5100. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  5101. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5102. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5103. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5104. msm_routing_put_audio_mixer),
  5105. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5106. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5108. msm_routing_put_audio_mixer),
  5109. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5110. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5112. msm_routing_put_audio_mixer),
  5113. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5114. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5115. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5116. msm_routing_put_audio_mixer),
  5117. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5118. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5119. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5120. msm_routing_put_audio_mixer),
  5121. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5122. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5123. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5124. msm_routing_put_audio_mixer),
  5125. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5126. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5127. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5128. msm_routing_put_audio_mixer),
  5129. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5130. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5131. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5132. msm_routing_put_audio_mixer),
  5133. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5134. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5135. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5136. msm_routing_put_audio_mixer),
  5137. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5138. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5139. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5140. msm_routing_put_audio_mixer),
  5141. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5142. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5143. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5144. msm_routing_put_audio_mixer),
  5145. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5146. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5147. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5148. msm_routing_put_audio_mixer),
  5149. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5150. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5151. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5152. msm_routing_put_audio_mixer),
  5153. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5154. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5155. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5156. msm_routing_put_audio_mixer),
  5157. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5158. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5159. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5160. msm_routing_put_audio_mixer),
  5161. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5162. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  5163. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5164. msm_routing_put_audio_mixer),
  5165. };
  5166. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  5167. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5168. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5169. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5170. msm_routing_put_audio_mixer),
  5171. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5172. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5173. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5174. msm_routing_put_audio_mixer),
  5175. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5176. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5178. msm_routing_put_audio_mixer),
  5179. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5180. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5182. msm_routing_put_audio_mixer),
  5183. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5184. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5185. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5186. msm_routing_put_audio_mixer),
  5187. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5188. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5189. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5190. msm_routing_put_audio_mixer),
  5191. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5192. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5193. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5194. msm_routing_put_audio_mixer),
  5195. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5196. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5197. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5198. msm_routing_put_audio_mixer),
  5199. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5200. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5202. msm_routing_put_audio_mixer),
  5203. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5204. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5205. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5206. msm_routing_put_audio_mixer),
  5207. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5208. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5209. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5210. msm_routing_put_audio_mixer),
  5211. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5212. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5213. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5214. msm_routing_put_audio_mixer),
  5215. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5216. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5217. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5218. msm_routing_put_audio_mixer),
  5219. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5220. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5221. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5222. msm_routing_put_audio_mixer),
  5223. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5225. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5226. msm_routing_put_audio_mixer),
  5227. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  5229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5230. msm_routing_put_audio_mixer),
  5231. };
  5232. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  5233. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5234. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5235. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5236. msm_routing_put_audio_mixer),
  5237. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5238. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5239. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5240. msm_routing_put_audio_mixer),
  5241. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5242. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5243. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5244. msm_routing_put_audio_mixer),
  5245. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5246. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5247. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5248. msm_routing_put_audio_mixer),
  5249. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5250. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5251. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5252. msm_routing_put_audio_mixer),
  5253. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5254. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5255. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5256. msm_routing_put_audio_mixer),
  5257. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5258. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5259. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5260. msm_routing_put_audio_mixer),
  5261. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5262. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5263. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5264. msm_routing_put_audio_mixer),
  5265. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5266. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5267. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5268. msm_routing_put_audio_mixer),
  5269. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5270. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5272. msm_routing_put_audio_mixer),
  5273. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5274. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5275. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5276. msm_routing_put_audio_mixer),
  5277. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5278. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5279. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5280. msm_routing_put_audio_mixer),
  5281. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5282. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5283. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5284. msm_routing_put_audio_mixer),
  5285. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5286. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5287. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5288. msm_routing_put_audio_mixer),
  5289. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5290. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5291. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5292. msm_routing_put_audio_mixer),
  5293. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5294. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  5295. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5296. msm_routing_put_audio_mixer),
  5297. };
  5298. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  5299. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5300. MSM_BACKEND_DAI_USB_RX,
  5301. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5302. msm_routing_put_audio_mixer),
  5303. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5304. MSM_BACKEND_DAI_USB_RX,
  5305. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5306. msm_routing_put_audio_mixer),
  5307. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5308. MSM_BACKEND_DAI_USB_RX,
  5309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5310. msm_routing_put_audio_mixer),
  5311. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5312. MSM_BACKEND_DAI_USB_RX,
  5313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5314. msm_routing_put_audio_mixer),
  5315. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5316. MSM_BACKEND_DAI_USB_RX,
  5317. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5318. msm_routing_put_audio_mixer),
  5319. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5320. MSM_BACKEND_DAI_USB_RX,
  5321. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5322. msm_routing_put_audio_mixer),
  5323. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5324. MSM_BACKEND_DAI_USB_RX,
  5325. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5326. msm_routing_put_audio_mixer),
  5327. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5328. MSM_BACKEND_DAI_USB_RX,
  5329. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5330. msm_routing_put_audio_mixer),
  5331. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5332. MSM_BACKEND_DAI_USB_RX,
  5333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5334. msm_routing_put_audio_mixer),
  5335. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5336. MSM_BACKEND_DAI_USB_RX,
  5337. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5338. msm_routing_put_audio_mixer),
  5339. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5340. MSM_BACKEND_DAI_USB_RX,
  5341. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5342. msm_routing_put_audio_mixer),
  5343. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5344. MSM_BACKEND_DAI_USB_RX,
  5345. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5346. msm_routing_put_audio_mixer),
  5347. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5348. MSM_BACKEND_DAI_USB_RX,
  5349. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5350. msm_routing_put_audio_mixer),
  5351. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5352. MSM_BACKEND_DAI_USB_RX,
  5353. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5354. msm_routing_put_audio_mixer),
  5355. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5356. MSM_BACKEND_DAI_USB_RX,
  5357. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5358. msm_routing_put_audio_mixer),
  5359. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5360. MSM_BACKEND_DAI_USB_RX,
  5361. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5362. msm_routing_put_audio_mixer),
  5363. };
  5364. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  5365. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5366. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5367. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5368. msm_routing_put_audio_mixer),
  5369. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5370. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5371. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5372. msm_routing_put_audio_mixer),
  5373. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5374. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5375. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5376. msm_routing_put_audio_mixer),
  5377. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5378. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5380. msm_routing_put_audio_mixer),
  5381. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5382. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5384. msm_routing_put_audio_mixer),
  5385. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5386. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5387. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5388. msm_routing_put_audio_mixer),
  5389. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5390. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5391. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5392. msm_routing_put_audio_mixer),
  5393. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5394. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5395. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5396. msm_routing_put_audio_mixer),
  5397. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5398. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5399. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5400. msm_routing_put_audio_mixer),
  5401. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5402. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5403. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5404. msm_routing_put_audio_mixer),
  5405. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5406. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5407. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5408. msm_routing_put_audio_mixer),
  5409. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5410. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5411. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5412. msm_routing_put_audio_mixer),
  5413. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5414. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5415. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5416. msm_routing_put_audio_mixer),
  5417. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5418. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5419. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5420. msm_routing_put_audio_mixer),
  5421. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5422. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5423. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5424. msm_routing_put_audio_mixer),
  5425. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5426. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5427. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5428. msm_routing_put_audio_mixer),
  5429. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5430. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5431. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5432. msm_routing_put_audio_mixer),
  5433. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5434. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5435. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5436. msm_routing_put_audio_mixer),
  5437. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5438. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5439. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5440. msm_routing_put_audio_mixer),
  5441. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5442. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5443. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5444. msm_routing_put_audio_mixer),
  5445. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5446. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  5447. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5448. msm_routing_put_audio_mixer),
  5449. };
  5450. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  5451. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5452. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5453. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5454. msm_routing_put_audio_mixer),
  5455. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5456. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5457. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5458. msm_routing_put_audio_mixer),
  5459. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5460. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5461. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5462. msm_routing_put_audio_mixer),
  5463. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5464. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5465. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5466. msm_routing_put_audio_mixer),
  5467. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5468. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5469. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5470. msm_routing_put_audio_mixer),
  5471. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5472. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5473. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5474. msm_routing_put_audio_mixer),
  5475. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5476. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5477. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5478. msm_routing_put_audio_mixer),
  5479. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5480. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5481. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5482. msm_routing_put_audio_mixer),
  5483. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5484. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5485. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5486. msm_routing_put_audio_mixer),
  5487. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5488. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5489. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5490. msm_routing_put_audio_mixer),
  5491. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5492. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5493. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5494. msm_routing_put_audio_mixer),
  5495. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5496. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5497. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5498. msm_routing_put_audio_mixer),
  5499. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5500. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5501. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5502. msm_routing_put_audio_mixer),
  5503. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5504. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5505. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5506. msm_routing_put_audio_mixer),
  5507. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5508. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5509. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5510. msm_routing_put_audio_mixer),
  5511. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5512. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  5513. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5514. msm_routing_put_audio_mixer),
  5515. };
  5516. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  5517. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5518. MSM_BACKEND_DAI_INT_FM_RX,
  5519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5520. msm_routing_put_audio_mixer),
  5521. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5522. MSM_BACKEND_DAI_INT_FM_RX,
  5523. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5524. msm_routing_put_audio_mixer),
  5525. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5526. MSM_BACKEND_DAI_INT_FM_RX,
  5527. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5528. msm_routing_put_audio_mixer),
  5529. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5530. MSM_BACKEND_DAI_INT_FM_RX,
  5531. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5532. msm_routing_put_audio_mixer),
  5533. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5534. MSM_BACKEND_DAI_INT_FM_RX,
  5535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5536. msm_routing_put_audio_mixer),
  5537. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5538. MSM_BACKEND_DAI_INT_FM_RX,
  5539. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5540. msm_routing_put_audio_mixer),
  5541. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5542. MSM_BACKEND_DAI_INT_FM_RX,
  5543. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5544. msm_routing_put_audio_mixer),
  5545. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5546. MSM_BACKEND_DAI_INT_FM_RX,
  5547. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5548. msm_routing_put_audio_mixer),
  5549. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5550. MSM_BACKEND_DAI_INT_FM_RX,
  5551. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5552. msm_routing_put_audio_mixer),
  5553. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5554. MSM_BACKEND_DAI_INT_FM_RX,
  5555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5556. msm_routing_put_audio_mixer),
  5557. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5558. MSM_BACKEND_DAI_INT_FM_RX,
  5559. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5560. msm_routing_put_audio_mixer),
  5561. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5562. MSM_BACKEND_DAI_INT_FM_RX,
  5563. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5564. msm_routing_put_audio_mixer),
  5565. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5566. MSM_BACKEND_DAI_INT_FM_RX,
  5567. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5568. msm_routing_put_audio_mixer),
  5569. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5570. MSM_BACKEND_DAI_INT_FM_RX,
  5571. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5572. msm_routing_put_audio_mixer),
  5573. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5574. MSM_BACKEND_DAI_INT_FM_RX,
  5575. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5576. msm_routing_put_audio_mixer),
  5577. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5578. MSM_BACKEND_DAI_INT_FM_RX,
  5579. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5580. msm_routing_put_audio_mixer),
  5581. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5582. MSM_BACKEND_DAI_INT_FM_RX,
  5583. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5584. msm_routing_put_audio_mixer),
  5585. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5586. MSM_BACKEND_DAI_INT_FM_RX,
  5587. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5588. msm_routing_put_audio_mixer),
  5589. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5590. MSM_BACKEND_DAI_INT_FM_RX,
  5591. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5592. msm_routing_put_audio_mixer),
  5593. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5594. MSM_BACKEND_DAI_INT_FM_RX,
  5595. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5596. msm_routing_put_audio_mixer),
  5597. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5598. MSM_BACKEND_DAI_INT_FM_RX,
  5599. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5600. msm_routing_put_audio_mixer),
  5601. };
  5602. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  5603. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5604. MSM_BACKEND_DAI_AFE_PCM_RX,
  5605. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5606. msm_routing_put_audio_mixer),
  5607. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5608. MSM_BACKEND_DAI_AFE_PCM_RX,
  5609. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5610. msm_routing_put_audio_mixer),
  5611. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5612. MSM_BACKEND_DAI_AFE_PCM_RX,
  5613. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5614. msm_routing_put_audio_mixer),
  5615. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5616. MSM_BACKEND_DAI_AFE_PCM_RX,
  5617. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5618. msm_routing_put_audio_mixer),
  5619. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5620. MSM_BACKEND_DAI_AFE_PCM_RX,
  5621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5622. msm_routing_put_audio_mixer),
  5623. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5624. MSM_BACKEND_DAI_AFE_PCM_RX,
  5625. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5626. msm_routing_put_audio_mixer),
  5627. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5628. MSM_BACKEND_DAI_AFE_PCM_RX,
  5629. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5630. msm_routing_put_audio_mixer),
  5631. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5632. MSM_BACKEND_DAI_AFE_PCM_RX,
  5633. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5634. msm_routing_put_audio_mixer),
  5635. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5636. MSM_BACKEND_DAI_AFE_PCM_RX,
  5637. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5638. msm_routing_put_audio_mixer),
  5639. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5640. MSM_BACKEND_DAI_AFE_PCM_RX,
  5641. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5642. msm_routing_put_audio_mixer),
  5643. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5644. MSM_BACKEND_DAI_AFE_PCM_RX,
  5645. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5646. msm_routing_put_audio_mixer),
  5647. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5648. MSM_BACKEND_DAI_AFE_PCM_RX,
  5649. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5650. msm_routing_put_audio_mixer),
  5651. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5652. MSM_BACKEND_DAI_AFE_PCM_RX,
  5653. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5654. msm_routing_put_audio_mixer),
  5655. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5656. MSM_BACKEND_DAI_AFE_PCM_RX,
  5657. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5658. msm_routing_put_audio_mixer),
  5659. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5660. MSM_BACKEND_DAI_AFE_PCM_RX,
  5661. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5662. msm_routing_put_audio_mixer),
  5663. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5664. MSM_BACKEND_DAI_AFE_PCM_RX,
  5665. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5666. msm_routing_put_audio_mixer),
  5667. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5668. MSM_BACKEND_DAI_AFE_PCM_RX,
  5669. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5670. msm_routing_put_audio_mixer),
  5671. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5672. MSM_BACKEND_DAI_AFE_PCM_RX,
  5673. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5674. msm_routing_put_audio_mixer),
  5675. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5676. MSM_BACKEND_DAI_AFE_PCM_RX,
  5677. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5678. msm_routing_put_audio_mixer),
  5679. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5680. MSM_BACKEND_DAI_AFE_PCM_RX,
  5681. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5682. msm_routing_put_audio_mixer),
  5683. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5684. MSM_BACKEND_DAI_AFE_PCM_RX,
  5685. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5686. msm_routing_put_audio_mixer),
  5687. };
  5688. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  5689. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5690. MSM_BACKEND_DAI_AUXPCM_RX,
  5691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5692. msm_routing_put_audio_mixer),
  5693. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5694. MSM_BACKEND_DAI_AUXPCM_RX,
  5695. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5696. msm_routing_put_audio_mixer),
  5697. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5698. MSM_BACKEND_DAI_AUXPCM_RX,
  5699. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5700. msm_routing_put_audio_mixer),
  5701. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5702. MSM_BACKEND_DAI_AUXPCM_RX,
  5703. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5704. msm_routing_put_audio_mixer),
  5705. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5706. MSM_BACKEND_DAI_AUXPCM_RX,
  5707. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5708. msm_routing_put_audio_mixer),
  5709. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5710. MSM_BACKEND_DAI_AUXPCM_RX,
  5711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5712. msm_routing_put_audio_mixer),
  5713. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5714. MSM_BACKEND_DAI_AUXPCM_RX,
  5715. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5716. msm_routing_put_audio_mixer),
  5717. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5718. MSM_BACKEND_DAI_AUXPCM_RX,
  5719. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5720. msm_routing_put_audio_mixer),
  5721. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5722. MSM_BACKEND_DAI_AUXPCM_RX,
  5723. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5724. msm_routing_put_audio_mixer),
  5725. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5726. MSM_BACKEND_DAI_AUXPCM_RX,
  5727. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5728. msm_routing_put_audio_mixer),
  5729. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5730. MSM_BACKEND_DAI_AUXPCM_RX,
  5731. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5732. msm_routing_put_audio_mixer),
  5733. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5734. MSM_BACKEND_DAI_AUXPCM_RX,
  5735. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5736. msm_routing_put_audio_mixer),
  5737. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5738. MSM_BACKEND_DAI_AUXPCM_RX,
  5739. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5740. msm_routing_put_audio_mixer),
  5741. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5742. MSM_BACKEND_DAI_AUXPCM_RX,
  5743. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5744. msm_routing_put_audio_mixer),
  5745. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5746. MSM_BACKEND_DAI_AUXPCM_RX,
  5747. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5748. msm_routing_put_audio_mixer),
  5749. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5750. MSM_BACKEND_DAI_AUXPCM_RX,
  5751. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5752. msm_routing_put_audio_mixer),
  5753. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5754. MSM_BACKEND_DAI_AUXPCM_RX,
  5755. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5756. msm_routing_put_audio_mixer),
  5757. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5758. MSM_BACKEND_DAI_AUXPCM_RX,
  5759. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5760. msm_routing_put_audio_mixer),
  5761. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5762. MSM_BACKEND_DAI_AUXPCM_RX,
  5763. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5764. msm_routing_put_audio_mixer),
  5765. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5766. MSM_BACKEND_DAI_AUXPCM_RX,
  5767. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5768. msm_routing_put_audio_mixer),
  5769. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5770. MSM_BACKEND_DAI_AUXPCM_RX,
  5771. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5772. msm_routing_put_audio_mixer),
  5773. };
  5774. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  5775. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5776. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5777. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5778. msm_routing_put_audio_mixer),
  5779. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5780. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5781. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5782. msm_routing_put_audio_mixer),
  5783. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5784. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5785. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5786. msm_routing_put_audio_mixer),
  5787. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5788. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5789. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5790. msm_routing_put_audio_mixer),
  5791. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5792. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5793. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5794. msm_routing_put_audio_mixer),
  5795. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5796. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5798. msm_routing_put_audio_mixer),
  5799. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5800. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5801. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5802. msm_routing_put_audio_mixer),
  5803. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5804. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5805. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5806. msm_routing_put_audio_mixer),
  5807. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5808. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5809. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5810. msm_routing_put_audio_mixer),
  5811. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5812. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5813. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5814. msm_routing_put_audio_mixer),
  5815. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5816. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5817. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5818. msm_routing_put_audio_mixer),
  5819. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5820. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5821. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5822. msm_routing_put_audio_mixer),
  5823. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5824. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5825. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5826. msm_routing_put_audio_mixer),
  5827. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5828. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5829. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5830. msm_routing_put_audio_mixer),
  5831. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5832. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5833. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5834. msm_routing_put_audio_mixer),
  5835. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5836. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5837. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5838. msm_routing_put_audio_mixer),
  5839. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5840. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5841. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5842. msm_routing_put_audio_mixer),
  5843. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5844. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5845. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5846. msm_routing_put_audio_mixer),
  5847. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5848. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5849. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5850. msm_routing_put_audio_mixer),
  5851. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5852. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5853. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5854. msm_routing_put_audio_mixer),
  5855. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5856. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  5857. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5858. msm_routing_put_audio_mixer),
  5859. };
  5860. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  5861. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5862. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5863. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5864. msm_routing_put_audio_mixer),
  5865. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5866. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5867. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5868. msm_routing_put_audio_mixer),
  5869. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5870. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5871. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5872. msm_routing_put_audio_mixer),
  5873. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5874. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5875. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5876. msm_routing_put_audio_mixer),
  5877. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5878. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5879. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5880. msm_routing_put_audio_mixer),
  5881. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5882. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5883. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5884. msm_routing_put_audio_mixer),
  5885. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5886. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5887. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5888. msm_routing_put_audio_mixer),
  5889. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5890. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5892. msm_routing_put_audio_mixer),
  5893. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5894. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5895. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5896. msm_routing_put_audio_mixer),
  5897. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5898. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5899. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5900. msm_routing_put_audio_mixer),
  5901. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5902. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5903. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5904. msm_routing_put_audio_mixer),
  5905. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5906. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5907. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5908. msm_routing_put_audio_mixer),
  5909. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5910. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5911. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5912. msm_routing_put_audio_mixer),
  5913. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5914. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5915. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5916. msm_routing_put_audio_mixer),
  5917. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5918. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5919. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5920. msm_routing_put_audio_mixer),
  5921. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5922. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  5923. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5924. msm_routing_put_audio_mixer),
  5925. };
  5926. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  5927. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5928. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5930. msm_routing_put_audio_mixer),
  5931. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5932. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5934. msm_routing_put_audio_mixer),
  5935. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5936. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5937. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5938. msm_routing_put_audio_mixer),
  5939. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5940. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5941. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5942. msm_routing_put_audio_mixer),
  5943. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5944. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5945. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5946. msm_routing_put_audio_mixer),
  5947. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5948. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5949. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5950. msm_routing_put_audio_mixer),
  5951. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5952. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5953. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5954. msm_routing_put_audio_mixer),
  5955. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5956. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5958. msm_routing_put_audio_mixer),
  5959. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5960. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5961. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5962. msm_routing_put_audio_mixer),
  5963. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5964. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5965. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5966. msm_routing_put_audio_mixer),
  5967. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5968. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5969. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5970. msm_routing_put_audio_mixer),
  5971. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5972. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5973. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5974. msm_routing_put_audio_mixer),
  5975. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5976. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5977. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5978. msm_routing_put_audio_mixer),
  5979. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5980. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5981. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5982. msm_routing_put_audio_mixer),
  5983. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5984. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5985. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5986. msm_routing_put_audio_mixer),
  5987. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5988. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  5989. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5990. msm_routing_put_audio_mixer),
  5991. };
  5992. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  5993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5994. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5996. msm_routing_put_audio_mixer),
  5997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5998. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  5999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6000. msm_routing_put_audio_mixer),
  6001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6002. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6004. msm_routing_put_audio_mixer),
  6005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6006. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6008. msm_routing_put_audio_mixer),
  6009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6010. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6012. msm_routing_put_audio_mixer),
  6013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6014. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6016. msm_routing_put_audio_mixer),
  6017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6018. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6020. msm_routing_put_audio_mixer),
  6021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6022. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6024. msm_routing_put_audio_mixer),
  6025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6026. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6028. msm_routing_put_audio_mixer),
  6029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6030. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6032. msm_routing_put_audio_mixer),
  6033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6034. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6036. msm_routing_put_audio_mixer),
  6037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6038. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6040. msm_routing_put_audio_mixer),
  6041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6042. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6044. msm_routing_put_audio_mixer),
  6045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6046. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6048. msm_routing_put_audio_mixer),
  6049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6050. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6052. msm_routing_put_audio_mixer),
  6053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6054. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  6055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6056. msm_routing_put_audio_mixer),
  6057. };
  6058. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  6059. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6060. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6061. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6062. msm_routing_put_audio_mixer),
  6063. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6064. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6065. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6066. msm_routing_put_audio_mixer),
  6067. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6068. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6069. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6070. msm_routing_put_audio_mixer),
  6071. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6072. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6073. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6074. msm_routing_put_audio_mixer),
  6075. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6076. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6077. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6078. msm_routing_put_audio_mixer),
  6079. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6080. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6081. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6082. msm_routing_put_audio_mixer),
  6083. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6084. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6085. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6086. msm_routing_put_audio_mixer),
  6087. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6088. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6089. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6090. msm_routing_put_audio_mixer),
  6091. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6092. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6093. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6094. msm_routing_put_audio_mixer),
  6095. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6096. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6097. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6098. msm_routing_put_audio_mixer),
  6099. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6100. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6101. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6102. msm_routing_put_audio_mixer),
  6103. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6104. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6105. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6106. msm_routing_put_audio_mixer),
  6107. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6108. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6109. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6110. msm_routing_put_audio_mixer),
  6111. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6112. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6113. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6114. msm_routing_put_audio_mixer),
  6115. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6116. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6117. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6118. msm_routing_put_audio_mixer),
  6119. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6120. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  6121. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6122. msm_routing_put_audio_mixer),
  6123. };
  6124. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  6125. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6126. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6127. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6128. msm_routing_put_audio_mixer),
  6129. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6130. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6132. msm_routing_put_audio_mixer),
  6133. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6134. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6136. msm_routing_put_audio_mixer),
  6137. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6138. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6139. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6140. msm_routing_put_audio_mixer),
  6141. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6142. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6143. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6144. msm_routing_put_audio_mixer),
  6145. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6146. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6147. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6148. msm_routing_put_audio_mixer),
  6149. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6150. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6151. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6152. msm_routing_put_audio_mixer),
  6153. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6154. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6155. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6156. msm_routing_put_audio_mixer),
  6157. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6158. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6159. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6160. msm_routing_put_audio_mixer),
  6161. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6162. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6163. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6164. msm_routing_put_audio_mixer),
  6165. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6166. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6167. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6168. msm_routing_put_audio_mixer),
  6169. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6170. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6171. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6172. msm_routing_put_audio_mixer),
  6173. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6174. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6175. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6176. msm_routing_put_audio_mixer),
  6177. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6178. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6179. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6180. msm_routing_put_audio_mixer),
  6181. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6182. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6183. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6184. msm_routing_put_audio_mixer),
  6185. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6186. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  6187. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6188. msm_routing_put_audio_mixer),
  6189. };
  6190. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  6191. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6192. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6193. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6194. msm_routing_put_audio_mixer),
  6195. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6196. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6197. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6198. msm_routing_put_audio_mixer),
  6199. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6200. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6202. msm_routing_put_audio_mixer),
  6203. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6204. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6206. msm_routing_put_audio_mixer),
  6207. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6208. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6209. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6210. msm_routing_put_audio_mixer),
  6211. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6212. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6213. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6214. msm_routing_put_audio_mixer),
  6215. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6216. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6217. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6218. msm_routing_put_audio_mixer),
  6219. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6220. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6221. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6222. msm_routing_put_audio_mixer),
  6223. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6224. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6226. msm_routing_put_audio_mixer),
  6227. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6228. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6229. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6230. msm_routing_put_audio_mixer),
  6231. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6232. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6233. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6234. msm_routing_put_audio_mixer),
  6235. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6236. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6237. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6238. msm_routing_put_audio_mixer),
  6239. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6240. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6241. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6242. msm_routing_put_audio_mixer),
  6243. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6244. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6245. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6246. msm_routing_put_audio_mixer),
  6247. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6248. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6249. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6250. msm_routing_put_audio_mixer),
  6251. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6252. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  6253. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6254. msm_routing_put_audio_mixer),
  6255. };
  6256. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  6257. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6258. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6260. msm_routing_put_audio_mixer),
  6261. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6262. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6264. msm_routing_put_audio_mixer),
  6265. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6266. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6268. msm_routing_put_audio_mixer),
  6269. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6270. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6272. msm_routing_put_audio_mixer),
  6273. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6274. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6276. msm_routing_put_audio_mixer),
  6277. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6278. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6280. msm_routing_put_audio_mixer),
  6281. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6282. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6283. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6284. msm_routing_put_audio_mixer),
  6285. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6286. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6288. msm_routing_put_audio_mixer),
  6289. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6290. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6292. msm_routing_put_audio_mixer),
  6293. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6294. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6296. msm_routing_put_audio_mixer),
  6297. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6298. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6299. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6300. msm_routing_put_audio_mixer),
  6301. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6302. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6303. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6304. msm_routing_put_audio_mixer),
  6305. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6306. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6307. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6308. msm_routing_put_audio_mixer),
  6309. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6310. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6311. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6312. msm_routing_put_audio_mixer),
  6313. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6314. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6315. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6316. msm_routing_put_audio_mixer),
  6317. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6318. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  6319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6320. msm_routing_put_audio_mixer),
  6321. };
  6322. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  6323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6324. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6326. msm_routing_put_audio_mixer),
  6327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6328. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6330. msm_routing_put_audio_mixer),
  6331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6332. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6334. msm_routing_put_audio_mixer),
  6335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6336. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6338. msm_routing_put_audio_mixer),
  6339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6340. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6342. msm_routing_put_audio_mixer),
  6343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6344. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6346. msm_routing_put_audio_mixer),
  6347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6348. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6350. msm_routing_put_audio_mixer),
  6351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6352. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6354. msm_routing_put_audio_mixer),
  6355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6356. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6358. msm_routing_put_audio_mixer),
  6359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6360. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6362. msm_routing_put_audio_mixer),
  6363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6364. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6366. msm_routing_put_audio_mixer),
  6367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6368. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6370. msm_routing_put_audio_mixer),
  6371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6372. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6374. msm_routing_put_audio_mixer),
  6375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6376. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6378. msm_routing_put_audio_mixer),
  6379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6380. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6382. msm_routing_put_audio_mixer),
  6383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6384. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  6385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6386. msm_routing_put_audio_mixer),
  6387. };
  6388. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  6389. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6390. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6391. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6392. msm_routing_put_audio_mixer),
  6393. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6394. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6395. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6396. msm_routing_put_audio_mixer),
  6397. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6398. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6399. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6400. msm_routing_put_audio_mixer),
  6401. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6402. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6404. msm_routing_put_audio_mixer),
  6405. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6406. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6407. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6408. msm_routing_put_audio_mixer),
  6409. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6410. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6411. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6412. msm_routing_put_audio_mixer),
  6413. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6414. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6415. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6416. msm_routing_put_audio_mixer),
  6417. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6418. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6419. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6420. msm_routing_put_audio_mixer),
  6421. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6422. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6423. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6424. msm_routing_put_audio_mixer),
  6425. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6426. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6427. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6428. msm_routing_put_audio_mixer),
  6429. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6430. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6431. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6432. msm_routing_put_audio_mixer),
  6433. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6434. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6435. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6436. msm_routing_put_audio_mixer),
  6437. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6438. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6439. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6440. msm_routing_put_audio_mixer),
  6441. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6442. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6443. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6444. msm_routing_put_audio_mixer),
  6445. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6446. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6447. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6448. msm_routing_put_audio_mixer),
  6449. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6450. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  6451. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6452. msm_routing_put_audio_mixer),
  6453. };
  6454. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  6455. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6456. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6457. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6458. msm_routing_put_audio_mixer),
  6459. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6460. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6461. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6462. msm_routing_put_audio_mixer),
  6463. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6464. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6465. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6466. msm_routing_put_audio_mixer),
  6467. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6468. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6469. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6470. msm_routing_put_audio_mixer),
  6471. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6472. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6473. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6474. msm_routing_put_audio_mixer),
  6475. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6476. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6477. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6478. msm_routing_put_audio_mixer),
  6479. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6480. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6481. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6482. msm_routing_put_audio_mixer),
  6483. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6484. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6485. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6486. msm_routing_put_audio_mixer),
  6487. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6488. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6489. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6490. msm_routing_put_audio_mixer),
  6491. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6492. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6493. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6494. msm_routing_put_audio_mixer),
  6495. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6496. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6497. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6498. msm_routing_put_audio_mixer),
  6499. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6500. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6501. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6502. msm_routing_put_audio_mixer),
  6503. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6504. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6505. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6506. msm_routing_put_audio_mixer),
  6507. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6508. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6509. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6510. msm_routing_put_audio_mixer),
  6511. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6512. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6513. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6514. msm_routing_put_audio_mixer),
  6515. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6516. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  6517. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6518. msm_routing_put_audio_mixer),
  6519. };
  6520. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  6521. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6522. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6524. msm_routing_put_audio_mixer),
  6525. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6526. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6527. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6528. msm_routing_put_audio_mixer),
  6529. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6530. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6531. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6532. msm_routing_put_audio_mixer),
  6533. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6534. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6535. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6536. msm_routing_put_audio_mixer),
  6537. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6538. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6540. msm_routing_put_audio_mixer),
  6541. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6542. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6543. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6544. msm_routing_put_audio_mixer),
  6545. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6546. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6547. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6548. msm_routing_put_audio_mixer),
  6549. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6550. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6551. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6552. msm_routing_put_audio_mixer),
  6553. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6554. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6555. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6556. msm_routing_put_audio_mixer),
  6557. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6558. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6560. msm_routing_put_audio_mixer),
  6561. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6562. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6563. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6564. msm_routing_put_audio_mixer),
  6565. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6566. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6567. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6568. msm_routing_put_audio_mixer),
  6569. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6570. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6571. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6572. msm_routing_put_audio_mixer),
  6573. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6574. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6575. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6576. msm_routing_put_audio_mixer),
  6577. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6578. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6579. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6580. msm_routing_put_audio_mixer),
  6581. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6582. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  6583. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6584. msm_routing_put_audio_mixer),
  6585. };
  6586. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  6587. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6588. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6589. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6590. msm_routing_put_audio_mixer),
  6591. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6592. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6593. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6594. msm_routing_put_audio_mixer),
  6595. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6596. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6597. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6598. msm_routing_put_audio_mixer),
  6599. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6600. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6601. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6602. msm_routing_put_audio_mixer),
  6603. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6604. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6606. msm_routing_put_audio_mixer),
  6607. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6608. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6609. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6610. msm_routing_put_audio_mixer),
  6611. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6612. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6613. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6614. msm_routing_put_audio_mixer),
  6615. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6616. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6617. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6618. msm_routing_put_audio_mixer),
  6619. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6620. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6621. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6622. msm_routing_put_audio_mixer),
  6623. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6624. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6625. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6626. msm_routing_put_audio_mixer),
  6627. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6628. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6629. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6630. msm_routing_put_audio_mixer),
  6631. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6632. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6633. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6634. msm_routing_put_audio_mixer),
  6635. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6636. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6637. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6638. msm_routing_put_audio_mixer),
  6639. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6640. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6641. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6642. msm_routing_put_audio_mixer),
  6643. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6644. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6645. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6646. msm_routing_put_audio_mixer),
  6647. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6648. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  6649. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6650. msm_routing_put_audio_mixer),
  6651. };
  6652. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  6653. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6654. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  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_SEC_TDM_TX_0,
  6715. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6716. msm_routing_put_audio_mixer),
  6717. };
  6718. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  6719. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6720. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6721. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6722. msm_routing_put_audio_mixer),
  6723. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6724. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6726. msm_routing_put_audio_mixer),
  6727. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6728. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6729. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6730. msm_routing_put_audio_mixer),
  6731. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6732. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6733. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6734. msm_routing_put_audio_mixer),
  6735. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6736. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6737. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6738. msm_routing_put_audio_mixer),
  6739. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6740. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6742. msm_routing_put_audio_mixer),
  6743. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6744. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6745. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6746. msm_routing_put_audio_mixer),
  6747. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6748. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6749. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6750. msm_routing_put_audio_mixer),
  6751. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6752. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6753. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6754. msm_routing_put_audio_mixer),
  6755. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6756. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6757. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6758. msm_routing_put_audio_mixer),
  6759. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6760. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6761. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6762. msm_routing_put_audio_mixer),
  6763. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6764. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6765. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6766. msm_routing_put_audio_mixer),
  6767. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6768. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6769. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6770. msm_routing_put_audio_mixer),
  6771. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6772. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6773. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6774. msm_routing_put_audio_mixer),
  6775. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6776. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6777. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6778. msm_routing_put_audio_mixer),
  6779. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6780. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  6781. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6782. msm_routing_put_audio_mixer),
  6783. };
  6784. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  6785. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6786. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6787. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6788. msm_routing_put_audio_mixer),
  6789. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6790. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6791. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6792. msm_routing_put_audio_mixer),
  6793. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6794. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6795. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6796. msm_routing_put_audio_mixer),
  6797. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6798. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6799. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6800. msm_routing_put_audio_mixer),
  6801. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6802. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6803. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6804. msm_routing_put_audio_mixer),
  6805. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6806. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6808. msm_routing_put_audio_mixer),
  6809. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6810. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6811. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6812. msm_routing_put_audio_mixer),
  6813. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6814. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6815. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6816. msm_routing_put_audio_mixer),
  6817. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6818. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6819. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6820. msm_routing_put_audio_mixer),
  6821. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6822. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6823. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6824. msm_routing_put_audio_mixer),
  6825. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6826. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6827. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6828. msm_routing_put_audio_mixer),
  6829. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6830. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6831. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6832. msm_routing_put_audio_mixer),
  6833. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6834. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6835. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6836. msm_routing_put_audio_mixer),
  6837. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6838. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6839. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6840. msm_routing_put_audio_mixer),
  6841. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6842. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6843. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6844. msm_routing_put_audio_mixer),
  6845. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6846. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  6847. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6848. msm_routing_put_audio_mixer),
  6849. };
  6850. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  6851. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6852. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6854. msm_routing_put_audio_mixer),
  6855. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6856. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6858. msm_routing_put_audio_mixer),
  6859. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6860. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6861. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6862. msm_routing_put_audio_mixer),
  6863. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6864. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6865. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6866. msm_routing_put_audio_mixer),
  6867. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6868. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6869. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6870. msm_routing_put_audio_mixer),
  6871. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6872. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6873. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6874. msm_routing_put_audio_mixer),
  6875. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6876. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6877. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6878. msm_routing_put_audio_mixer),
  6879. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6880. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6882. msm_routing_put_audio_mixer),
  6883. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6884. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6885. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6886. msm_routing_put_audio_mixer),
  6887. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6888. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6889. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6890. msm_routing_put_audio_mixer),
  6891. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6892. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6893. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6894. msm_routing_put_audio_mixer),
  6895. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6896. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6897. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6898. msm_routing_put_audio_mixer),
  6899. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6900. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6901. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6902. msm_routing_put_audio_mixer),
  6903. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6904. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6905. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6906. msm_routing_put_audio_mixer),
  6907. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6908. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6909. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6910. msm_routing_put_audio_mixer),
  6911. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6912. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  6913. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6914. msm_routing_put_audio_mixer),
  6915. };
  6916. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  6917. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6918. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6919. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6920. msm_routing_put_audio_mixer),
  6921. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6922. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6923. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6924. msm_routing_put_audio_mixer),
  6925. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6926. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6927. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6928. msm_routing_put_audio_mixer),
  6929. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6930. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6931. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6932. msm_routing_put_audio_mixer),
  6933. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6934. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6935. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6936. msm_routing_put_audio_mixer),
  6937. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6938. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6939. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6940. msm_routing_put_audio_mixer),
  6941. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6942. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6943. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6944. msm_routing_put_audio_mixer),
  6945. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6946. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6948. msm_routing_put_audio_mixer),
  6949. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6950. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6951. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6952. msm_routing_put_audio_mixer),
  6953. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6954. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6955. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6956. msm_routing_put_audio_mixer),
  6957. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6958. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6959. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6960. msm_routing_put_audio_mixer),
  6961. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6962. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6963. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6964. msm_routing_put_audio_mixer),
  6965. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6966. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6967. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6968. msm_routing_put_audio_mixer),
  6969. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6970. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6971. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6972. msm_routing_put_audio_mixer),
  6973. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6974. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6975. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6976. msm_routing_put_audio_mixer),
  6977. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6978. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  6979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6980. msm_routing_put_audio_mixer),
  6981. };
  6982. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  6983. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6984. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6986. msm_routing_put_audio_mixer),
  6987. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6988. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6989. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6990. msm_routing_put_audio_mixer),
  6991. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6992. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6993. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6994. msm_routing_put_audio_mixer),
  6995. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6996. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  6997. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6998. msm_routing_put_audio_mixer),
  6999. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7000. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7001. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7002. msm_routing_put_audio_mixer),
  7003. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7004. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7005. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7006. msm_routing_put_audio_mixer),
  7007. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7008. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7009. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7010. msm_routing_put_audio_mixer),
  7011. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7012. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7013. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7014. msm_routing_put_audio_mixer),
  7015. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7016. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7017. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7018. msm_routing_put_audio_mixer),
  7019. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7020. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7021. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7022. msm_routing_put_audio_mixer),
  7023. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7024. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7025. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7026. msm_routing_put_audio_mixer),
  7027. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7028. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7029. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7030. msm_routing_put_audio_mixer),
  7031. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7032. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7033. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7034. msm_routing_put_audio_mixer),
  7035. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7036. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7037. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7038. msm_routing_put_audio_mixer),
  7039. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7040. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7041. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7042. msm_routing_put_audio_mixer),
  7043. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7044. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  7045. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7046. msm_routing_put_audio_mixer),
  7047. };
  7048. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  7049. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7050. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7051. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7052. msm_routing_put_audio_mixer),
  7053. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7054. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7056. msm_routing_put_audio_mixer),
  7057. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7058. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7059. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7060. msm_routing_put_audio_mixer),
  7061. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7062. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7063. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7064. msm_routing_put_audio_mixer),
  7065. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7066. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7067. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7068. msm_routing_put_audio_mixer),
  7069. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7070. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7071. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7072. msm_routing_put_audio_mixer),
  7073. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7074. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7075. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7076. msm_routing_put_audio_mixer),
  7077. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7078. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7079. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7080. msm_routing_put_audio_mixer),
  7081. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7082. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7083. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7084. msm_routing_put_audio_mixer),
  7085. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7086. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7087. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7088. msm_routing_put_audio_mixer),
  7089. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7090. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7091. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7092. msm_routing_put_audio_mixer),
  7093. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7094. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7095. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7096. msm_routing_put_audio_mixer),
  7097. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7098. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7099. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7100. msm_routing_put_audio_mixer),
  7101. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7102. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7103. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7104. msm_routing_put_audio_mixer),
  7105. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7106. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7107. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7108. msm_routing_put_audio_mixer),
  7109. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7110. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  7111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7112. msm_routing_put_audio_mixer),
  7113. };
  7114. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  7115. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7116. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7117. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7118. msm_routing_put_audio_mixer),
  7119. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7120. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7121. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7122. msm_routing_put_audio_mixer),
  7123. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7124. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7125. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7126. msm_routing_put_audio_mixer),
  7127. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7128. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7129. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7130. msm_routing_put_audio_mixer),
  7131. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7132. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7133. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7134. msm_routing_put_audio_mixer),
  7135. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7146. msm_routing_put_audio_mixer),
  7147. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7148. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7152. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7153. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7154. msm_routing_put_audio_mixer),
  7155. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7156. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7157. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7158. msm_routing_put_audio_mixer),
  7159. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7160. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7161. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7162. msm_routing_put_audio_mixer),
  7163. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7164. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7165. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7166. msm_routing_put_audio_mixer),
  7167. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7168. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7169. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7170. msm_routing_put_audio_mixer),
  7171. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7172. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7173. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7174. msm_routing_put_audio_mixer),
  7175. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7176. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7178. msm_routing_put_audio_mixer),
  7179. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7180. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  7181. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7182. msm_routing_put_audio_mixer),
  7183. };
  7184. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  7185. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7222. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7223. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7224. msm_routing_put_audio_mixer),
  7225. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7226. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7227. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7228. msm_routing_put_audio_mixer),
  7229. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7230. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7231. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7232. msm_routing_put_audio_mixer),
  7233. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7234. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7235. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7236. msm_routing_put_audio_mixer),
  7237. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7238. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7239. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7240. msm_routing_put_audio_mixer),
  7241. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7242. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7243. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7244. msm_routing_put_audio_mixer),
  7245. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7246. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7248. msm_routing_put_audio_mixer),
  7249. };
  7250. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  7251. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7292. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7293. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7294. msm_routing_put_audio_mixer),
  7295. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7296. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7297. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7298. msm_routing_put_audio_mixer),
  7299. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7300. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7301. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7302. msm_routing_put_audio_mixer),
  7303. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7304. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7305. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7306. msm_routing_put_audio_mixer),
  7307. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7308. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7309. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7310. msm_routing_put_audio_mixer),
  7311. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7312. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7313. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7314. msm_routing_put_audio_mixer),
  7315. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7316. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  7317. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7318. msm_routing_put_audio_mixer),
  7319. };
  7320. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  7321. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7362. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7363. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7364. msm_routing_put_audio_mixer),
  7365. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7366. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7367. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7368. msm_routing_put_audio_mixer),
  7369. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7370. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7371. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7372. msm_routing_put_audio_mixer),
  7373. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7374. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7375. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7376. msm_routing_put_audio_mixer),
  7377. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7378. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7379. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7380. msm_routing_put_audio_mixer),
  7381. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7382. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7383. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7384. msm_routing_put_audio_mixer),
  7385. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7386. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  7387. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7388. msm_routing_put_audio_mixer),
  7389. };
  7390. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  7391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  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_QUAT_TDM_RX_3,
  7453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7454. msm_routing_put_audio_mixer),
  7455. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7456. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  7457. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7458. msm_routing_put_audio_mixer),
  7459. };
  7460. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  7461. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  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_QUIN_TDM_RX_0,
  7523. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7524. msm_routing_put_audio_mixer),
  7525. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7526. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  7527. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7528. msm_routing_put_audio_mixer),
  7529. };
  7530. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  7531. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  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_TDM_TX_0,
  7593. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7594. msm_routing_put_audio_mixer),
  7595. };
  7596. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  7597. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7642. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7643. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7644. msm_routing_put_audio_mixer),
  7645. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7646. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7647. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7648. msm_routing_put_audio_mixer),
  7649. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7650. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7651. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7652. msm_routing_put_audio_mixer),
  7653. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7654. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7655. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7656. msm_routing_put_audio_mixer),
  7657. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7658. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7659. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7660. msm_routing_put_audio_mixer),
  7661. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7662. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  7663. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7664. msm_routing_put_audio_mixer),
  7665. };
  7666. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  7667. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7712. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7713. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7714. msm_routing_put_audio_mixer),
  7715. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7716. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7717. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7718. msm_routing_put_audio_mixer),
  7719. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7720. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7721. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7722. msm_routing_put_audio_mixer),
  7723. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7724. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7725. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7726. msm_routing_put_audio_mixer),
  7727. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7728. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7729. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7730. msm_routing_put_audio_mixer),
  7731. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7732. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  7733. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7734. msm_routing_put_audio_mixer),
  7735. };
  7736. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  7737. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7782. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7783. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7784. msm_routing_put_audio_mixer),
  7785. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7786. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7787. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7788. msm_routing_put_audio_mixer),
  7789. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7790. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7791. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7792. msm_routing_put_audio_mixer),
  7793. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7794. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7795. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7796. msm_routing_put_audio_mixer),
  7797. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7798. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7799. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7800. msm_routing_put_audio_mixer),
  7801. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  7802. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  7803. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  7804. msm_routing_put_audio_mixer),
  7805. };
  7806. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  7807. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_PRI_I2S_TX,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_MI2S_TX,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_PRI_MI2S_TX,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_INT2_MI2S_TX,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_INT3_MI2S_TX,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_AUXPCM_TX,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7852. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  7853. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7854. msm_routing_put_audio_mixer),
  7855. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  7856. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  7857. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7858. msm_routing_put_audio_mixer),
  7859. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  7860. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  7861. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7862. msm_routing_put_audio_mixer),
  7863. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  7864. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  7865. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7866. msm_routing_put_audio_mixer),
  7867. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  7868. MSM_BACKEND_DAI_INT_FM_TX,
  7869. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7870. msm_routing_put_audio_mixer),
  7871. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  7872. MSM_BACKEND_DAI_AFE_PCM_TX,
  7873. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7874. msm_routing_put_audio_mixer),
  7875. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  7876. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  7877. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7878. msm_routing_put_audio_mixer),
  7879. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  7880. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  7881. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7882. msm_routing_put_audio_mixer),
  7883. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  7884. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  7885. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7886. msm_routing_put_audio_mixer),
  7887. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  7888. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  7889. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7890. msm_routing_put_audio_mixer),
  7891. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  7892. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  7893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7894. msm_routing_put_audio_mixer),
  7895. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  7896. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  7897. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7898. msm_routing_put_audio_mixer),
  7899. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  7900. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  7901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7902. msm_routing_put_audio_mixer),
  7903. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  7904. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  7905. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7906. msm_routing_put_audio_mixer),
  7907. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  7908. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  7909. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7910. msm_routing_put_audio_mixer),
  7911. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  7912. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  7913. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7914. msm_routing_put_audio_mixer),
  7915. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  7916. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  7917. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7918. msm_routing_put_audio_mixer),
  7919. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  7920. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  7921. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7922. msm_routing_put_audio_mixer),
  7923. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_USB_TX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  7992. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  7993. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7994. msm_routing_put_audio_mixer),
  7995. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  7996. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  7997. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7998. msm_routing_put_audio_mixer),
  7999. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8000. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8001. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8002. msm_routing_put_audio_mixer),
  8003. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8004. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8005. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8006. msm_routing_put_audio_mixer),
  8007. };
  8008. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  8009. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_INT_FM_TX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_MI2S_TX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8062. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8063. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8064. msm_routing_put_audio_mixer),
  8065. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8066. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8067. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8068. msm_routing_put_audio_mixer),
  8069. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8070. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8071. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8072. msm_routing_put_audio_mixer),
  8073. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8074. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8075. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8076. msm_routing_put_audio_mixer),
  8077. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8078. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8079. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8080. msm_routing_put_audio_mixer),
  8081. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8082. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8083. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8084. msm_routing_put_audio_mixer),
  8085. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8086. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8087. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8088. msm_routing_put_audio_mixer),
  8089. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8090. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8091. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8092. msm_routing_put_audio_mixer),
  8093. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8094. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8095. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8096. msm_routing_put_audio_mixer),
  8097. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8098. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8099. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8100. msm_routing_put_audio_mixer),
  8101. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8102. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8103. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8104. msm_routing_put_audio_mixer),
  8105. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8106. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8107. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8108. msm_routing_put_audio_mixer),
  8109. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8110. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8111. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8112. msm_routing_put_audio_mixer),
  8113. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8114. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8116. msm_routing_put_audio_mixer),
  8117. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8118. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8119. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8120. msm_routing_put_audio_mixer),
  8121. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8122. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8124. msm_routing_put_audio_mixer),
  8125. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8126. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8128. msm_routing_put_audio_mixer),
  8129. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8130. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8131. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8132. msm_routing_put_audio_mixer),
  8133. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_USB_TX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. };
  8166. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  8167. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8168. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8169. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8170. msm_routing_put_audio_mixer),
  8171. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8172. MSM_BACKEND_DAI_INT_FM_TX,
  8173. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8174. msm_routing_put_audio_mixer),
  8175. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8176. MSM_BACKEND_DAI_MI2S_TX,
  8177. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8178. msm_routing_put_audio_mixer),
  8179. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8180. MSM_BACKEND_DAI_AFE_PCM_TX,
  8181. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8182. msm_routing_put_audio_mixer),
  8183. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8184. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8185. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8186. msm_routing_put_audio_mixer),
  8187. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  8188. MSM_BACKEND_DAI_AUXPCM_TX,
  8189. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8190. msm_routing_put_audio_mixer),
  8191. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8192. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8194. msm_routing_put_audio_mixer),
  8195. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8196. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8197. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8198. msm_routing_put_audio_mixer),
  8199. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8200. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8201. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8202. msm_routing_put_audio_mixer),
  8203. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8204. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8205. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8206. msm_routing_put_audio_mixer),
  8207. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8208. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8210. msm_routing_put_audio_mixer),
  8211. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8212. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8213. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8214. msm_routing_put_audio_mixer),
  8215. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8216. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8217. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8218. msm_routing_put_audio_mixer),
  8219. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8220. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8221. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8222. msm_routing_put_audio_mixer),
  8223. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8224. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8226. msm_routing_put_audio_mixer),
  8227. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8296. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8297. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8298. msm_routing_put_audio_mixer),
  8299. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8300. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8301. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8302. msm_routing_put_audio_mixer),
  8303. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8304. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8305. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8306. msm_routing_put_audio_mixer),
  8307. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8308. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8309. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8310. msm_routing_put_audio_mixer),
  8311. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8312. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8313. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8314. msm_routing_put_audio_mixer),
  8315. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8316. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8317. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8318. msm_routing_put_audio_mixer),
  8319. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8320. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8321. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8322. msm_routing_put_audio_mixer),
  8323. };
  8324. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  8325. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_TX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_AFE_PCM_TX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8390. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8391. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8392. msm_routing_put_audio_mixer),
  8393. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8394. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8395. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8396. msm_routing_put_audio_mixer),
  8397. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8398. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8399. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8400. msm_routing_put_audio_mixer),
  8401. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8402. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8403. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8404. msm_routing_put_audio_mixer),
  8405. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8406. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8407. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8408. msm_routing_put_audio_mixer),
  8409. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8410. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8412. msm_routing_put_audio_mixer),
  8413. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8414. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8415. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8416. msm_routing_put_audio_mixer),
  8417. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8418. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8419. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8420. msm_routing_put_audio_mixer),
  8421. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8422. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8423. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8424. msm_routing_put_audio_mixer),
  8425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8426. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8427. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8428. msm_routing_put_audio_mixer),
  8429. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8430. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8431. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8432. msm_routing_put_audio_mixer),
  8433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8434. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8436. msm_routing_put_audio_mixer),
  8437. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8438. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8439. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8440. msm_routing_put_audio_mixer),
  8441. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8442. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8443. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8444. msm_routing_put_audio_mixer),
  8445. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8446. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8448. msm_routing_put_audio_mixer),
  8449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8451. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8452. msm_routing_put_audio_mixer),
  8453. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8454. MSM_BACKEND_DAI_USB_TX,
  8455. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8456. msm_routing_put_audio_mixer),
  8457. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8458. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8459. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8460. msm_routing_put_audio_mixer),
  8461. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8462. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8463. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8464. msm_routing_put_audio_mixer),
  8465. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8466. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8467. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8468. msm_routing_put_audio_mixer),
  8469. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8470. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8471. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8472. msm_routing_put_audio_mixer),
  8473. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8474. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8475. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8476. msm_routing_put_audio_mixer),
  8477. };
  8478. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  8479. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8484. MSM_BACKEND_DAI_INT_FM_TX,
  8485. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8486. msm_routing_put_audio_mixer),
  8487. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  8488. MSM_BACKEND_DAI_MI2S_TX,
  8489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8490. msm_routing_put_audio_mixer),
  8491. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8492. MSM_BACKEND_DAI_AFE_PCM_TX,
  8493. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8494. msm_routing_put_audio_mixer),
  8495. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8496. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8497. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8498. msm_routing_put_audio_mixer),
  8499. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8500. MSM_BACKEND_DAI_AUXPCM_TX,
  8501. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8502. msm_routing_put_audio_mixer),
  8503. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  8504. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8505. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8506. msm_routing_put_audio_mixer),
  8507. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  8508. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8509. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8510. msm_routing_put_audio_mixer),
  8511. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  8512. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8513. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8514. msm_routing_put_audio_mixer),
  8515. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  8516. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  8517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8518. msm_routing_put_audio_mixer),
  8519. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8520. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8522. msm_routing_put_audio_mixer),
  8523. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8524. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8525. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8526. msm_routing_put_audio_mixer),
  8527. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8528. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8529. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8530. msm_routing_put_audio_mixer),
  8531. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8532. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8533. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8534. msm_routing_put_audio_mixer),
  8535. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8536. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8537. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8538. msm_routing_put_audio_mixer),
  8539. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8540. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8541. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8542. msm_routing_put_audio_mixer),
  8543. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8544. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8545. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8546. msm_routing_put_audio_mixer),
  8547. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8548. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8549. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8550. msm_routing_put_audio_mixer),
  8551. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8552. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8553. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8554. msm_routing_put_audio_mixer),
  8555. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8556. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8557. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8558. msm_routing_put_audio_mixer),
  8559. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8560. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8561. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8562. msm_routing_put_audio_mixer),
  8563. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8564. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8565. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8566. msm_routing_put_audio_mixer),
  8567. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8568. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8569. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8570. msm_routing_put_audio_mixer),
  8571. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8572. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8573. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8574. msm_routing_put_audio_mixer),
  8575. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8576. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8577. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8578. msm_routing_put_audio_mixer),
  8579. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8580. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8581. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8582. msm_routing_put_audio_mixer),
  8583. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_USB_TX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. };
  8656. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  8657. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8658. MSM_BACKEND_DAI_INT_FM_TX,
  8659. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8660. msm_routing_put_audio_mixer),
  8661. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8662. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8663. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8664. msm_routing_put_audio_mixer),
  8665. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8666. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8667. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8668. msm_routing_put_audio_mixer),
  8669. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8670. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8671. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8672. msm_routing_put_audio_mixer),
  8673. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8674. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8675. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8676. msm_routing_put_audio_mixer),
  8677. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8678. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8679. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8680. msm_routing_put_audio_mixer),
  8681. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_AUXPCM_TX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8750. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8751. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8752. msm_routing_put_audio_mixer),
  8753. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8754. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8755. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8756. msm_routing_put_audio_mixer),
  8757. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8758. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8759. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8760. msm_routing_put_audio_mixer),
  8761. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8762. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8763. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8764. msm_routing_put_audio_mixer),
  8765. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8766. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8767. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8768. msm_routing_put_audio_mixer),
  8769. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8770. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8771. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8772. msm_routing_put_audio_mixer),
  8773. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8774. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8775. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8776. msm_routing_put_audio_mixer),
  8777. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8778. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8779. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8780. msm_routing_put_audio_mixer),
  8781. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8782. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8783. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8784. msm_routing_put_audio_mixer),
  8785. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8786. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8787. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8788. msm_routing_put_audio_mixer),
  8789. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8790. MSM_BACKEND_DAI_USB_TX,
  8791. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8792. msm_routing_put_audio_mixer),
  8793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8795. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8796. msm_routing_put_audio_mixer),
  8797. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8798. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8799. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8800. msm_routing_put_audio_mixer),
  8801. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8802. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8803. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8804. msm_routing_put_audio_mixer),
  8805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8807. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8808. msm_routing_put_audio_mixer),
  8809. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8810. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8811. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8812. msm_routing_put_audio_mixer),
  8813. };
  8814. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  8815. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8820. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8821. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8822. msm_routing_put_audio_mixer),
  8823. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8824. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8825. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8826. msm_routing_put_audio_mixer),
  8827. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8828. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8829. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8830. msm_routing_put_audio_mixer),
  8831. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8832. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8833. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8834. msm_routing_put_audio_mixer),
  8835. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8836. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8837. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8838. msm_routing_put_audio_mixer),
  8839. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  8840. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  8841. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8842. msm_routing_put_audio_mixer),
  8843. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  8844. MSM_BACKEND_DAI_INT_FM_TX,
  8845. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8846. msm_routing_put_audio_mixer),
  8847. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  8848. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  8849. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8850. msm_routing_put_audio_mixer),
  8851. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  8852. MSM_BACKEND_DAI_AFE_PCM_TX,
  8853. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8854. msm_routing_put_audio_mixer),
  8855. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  8856. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  8857. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8858. msm_routing_put_audio_mixer),
  8859. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  8860. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  8861. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8862. msm_routing_put_audio_mixer),
  8863. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  8864. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  8865. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8866. msm_routing_put_audio_mixer),
  8867. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  8868. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  8869. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8870. msm_routing_put_audio_mixer),
  8871. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  8872. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  8873. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8874. msm_routing_put_audio_mixer),
  8875. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  8876. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  8877. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8878. msm_routing_put_audio_mixer),
  8879. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  8880. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  8881. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8882. msm_routing_put_audio_mixer),
  8883. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  8884. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  8885. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8886. msm_routing_put_audio_mixer),
  8887. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  8888. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  8889. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8890. msm_routing_put_audio_mixer),
  8891. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_USB_TX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8960. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  8961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8962. msm_routing_put_audio_mixer),
  8963. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  8964. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  8965. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8966. msm_routing_put_audio_mixer),
  8967. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  8968. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  8969. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8970. msm_routing_put_audio_mixer),
  8971. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  8972. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  8973. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8974. msm_routing_put_audio_mixer),
  8975. };
  8976. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  8977. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_PRI_MI2S_TX,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_INT2_MI2S_TX,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_INT3_MI2S_TX,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_INT_FM_TX,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_AFE_PCM_TX,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9034. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9036. msm_routing_put_audio_mixer),
  9037. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9038. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9039. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9040. msm_routing_put_audio_mixer),
  9041. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9042. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9043. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9044. msm_routing_put_audio_mixer),
  9045. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9046. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9047. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9048. msm_routing_put_audio_mixer),
  9049. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9050. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9051. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9052. msm_routing_put_audio_mixer),
  9053. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9054. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9056. msm_routing_put_audio_mixer),
  9057. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9058. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9060. msm_routing_put_audio_mixer),
  9061. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9062. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9063. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9064. msm_routing_put_audio_mixer),
  9065. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9066. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9067. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9068. msm_routing_put_audio_mixer),
  9069. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9070. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9071. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9072. msm_routing_put_audio_mixer),
  9073. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9074. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9075. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9076. msm_routing_put_audio_mixer),
  9077. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9078. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9079. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9080. msm_routing_put_audio_mixer),
  9081. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9082. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9083. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9084. msm_routing_put_audio_mixer),
  9085. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9086. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9087. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9088. msm_routing_put_audio_mixer),
  9089. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9090. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9091. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9092. msm_routing_put_audio_mixer),
  9093. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9094. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9095. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9096. msm_routing_put_audio_mixer),
  9097. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9098. MSM_BACKEND_DAI_USB_TX,
  9099. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9100. msm_routing_put_audio_mixer),
  9101. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9102. MSM_BACKEND_DAI_MI2S_TX,
  9103. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9104. msm_routing_put_audio_mixer),
  9105. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9106. MSM_BACKEND_DAI_AUXPCM_TX,
  9107. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9108. msm_routing_put_audio_mixer),
  9109. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. };
  9138. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  9139. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9140. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9141. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9142. msm_routing_put_audio_mixer),
  9143. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9144. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9145. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9146. msm_routing_put_audio_mixer),
  9147. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9148. MSM_BACKEND_DAI_INT_FM_TX,
  9149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9150. msm_routing_put_audio_mixer),
  9151. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9152. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9153. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9154. msm_routing_put_audio_mixer),
  9155. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9156. MSM_BACKEND_DAI_AFE_PCM_TX,
  9157. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9158. msm_routing_put_audio_mixer),
  9159. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9160. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9161. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9162. msm_routing_put_audio_mixer),
  9163. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9164. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9165. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9166. msm_routing_put_audio_mixer),
  9167. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9168. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9169. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9170. msm_routing_put_audio_mixer),
  9171. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9172. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9173. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9174. msm_routing_put_audio_mixer),
  9175. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9176. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9177. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9178. msm_routing_put_audio_mixer),
  9179. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9180. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9181. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9182. msm_routing_put_audio_mixer),
  9183. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. };
  9240. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  9241. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9242. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9243. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9244. msm_routing_put_audio_mixer),
  9245. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9246. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9247. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9248. msm_routing_put_audio_mixer),
  9249. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9250. MSM_BACKEND_DAI_INT_FM_TX,
  9251. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9252. msm_routing_put_audio_mixer),
  9253. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9254. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9255. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9256. msm_routing_put_audio_mixer),
  9257. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_AFE_PCM_TX,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9295. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9296. msm_routing_put_audio_mixer),
  9297. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_USB_TX,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_MI2S_TX,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_AUXPCM_TX,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  9322. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  9323. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9324. msm_routing_put_audio_mixer),
  9325. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  9326. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  9327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9328. msm_routing_put_audio_mixer),
  9329. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  9330. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  9331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9332. msm_routing_put_audio_mixer),
  9333. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9334. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9336. msm_routing_put_audio_mixer),
  9337. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  9338. MSM_BACKEND_DAI_INT2_MI2S_TX,
  9339. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9340. msm_routing_put_audio_mixer),
  9341. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9342. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9343. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9344. msm_routing_put_audio_mixer),
  9345. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9346. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9347. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9348. msm_routing_put_audio_mixer),
  9349. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9350. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9351. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9352. msm_routing_put_audio_mixer),
  9353. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9354. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9355. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9356. msm_routing_put_audio_mixer),
  9357. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9358. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9359. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9360. msm_routing_put_audio_mixer),
  9361. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9362. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9363. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9364. msm_routing_put_audio_mixer),
  9365. };
  9366. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  9367. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_INT_FM_TX,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_AFE_PCM_TX,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9396. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9397. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9398. msm_routing_put_audio_mixer),
  9399. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9400. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9401. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9402. msm_routing_put_audio_mixer),
  9403. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9404. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9405. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9406. msm_routing_put_audio_mixer),
  9407. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9408. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9409. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9410. msm_routing_put_audio_mixer),
  9411. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9412. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9413. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9414. msm_routing_put_audio_mixer),
  9415. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9416. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9417. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9418. msm_routing_put_audio_mixer),
  9419. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9420. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9421. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9422. msm_routing_put_audio_mixer),
  9423. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9424. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9425. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  9426. msm_routing_put_audio_mixer),
  9427. };
  9428. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  9429. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_INT_FM_TX,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_AFE_PCM_TX,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9470. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9471. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9472. msm_routing_put_audio_mixer),
  9473. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9474. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9475. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9476. msm_routing_put_audio_mixer),
  9477. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9478. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9479. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9480. msm_routing_put_audio_mixer),
  9481. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9482. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9483. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9484. msm_routing_put_audio_mixer),
  9485. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9486. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9487. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  9488. msm_routing_put_audio_mixer),
  9489. };
  9490. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  9491. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_INT_FM_TX,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_AFE_PCM_TX,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9544. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9545. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9546. msm_routing_put_audio_mixer),
  9547. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9548. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9549. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  9550. msm_routing_put_audio_mixer),
  9551. };
  9552. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  9553. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  9618. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  9619. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9620. msm_routing_put_audio_mixer),
  9621. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  9622. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  9623. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9624. msm_routing_put_audio_mixer),
  9625. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  9626. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  9627. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9628. msm_routing_put_audio_mixer),
  9629. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  9630. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  9631. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9632. msm_routing_put_audio_mixer),
  9633. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  9634. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  9635. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9636. msm_routing_put_audio_mixer),
  9637. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  9638. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  9639. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9640. msm_routing_put_audio_mixer),
  9641. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  9642. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  9643. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9644. msm_routing_put_audio_mixer),
  9645. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  9646. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  9647. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9648. msm_routing_put_audio_mixer),
  9649. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  9650. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  9651. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9652. msm_routing_put_audio_mixer),
  9653. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9654. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9655. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9656. msm_routing_put_audio_mixer),
  9657. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9658. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9659. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9660. msm_routing_put_audio_mixer),
  9661. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9662. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9663. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9664. msm_routing_put_audio_mixer),
  9665. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9666. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9667. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9668. msm_routing_put_audio_mixer),
  9669. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9670. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9671. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  9672. msm_routing_put_audio_mixer),
  9673. };
  9674. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  9675. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9684. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9685. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9686. msm_routing_put_audio_mixer),
  9687. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9688. MSM_BACKEND_DAI_INT_FM_TX,
  9689. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9690. msm_routing_put_audio_mixer),
  9691. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9692. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9693. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9694. msm_routing_put_audio_mixer),
  9695. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9696. MSM_BACKEND_DAI_AFE_PCM_TX,
  9697. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9698. msm_routing_put_audio_mixer),
  9699. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9700. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9701. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9702. msm_routing_put_audio_mixer),
  9703. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9704. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9705. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9706. msm_routing_put_audio_mixer),
  9707. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9708. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9709. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9710. msm_routing_put_audio_mixer),
  9711. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9712. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9713. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9714. msm_routing_put_audio_mixer),
  9715. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9716. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9717. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9718. msm_routing_put_audio_mixer),
  9719. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9720. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9721. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9722. msm_routing_put_audio_mixer),
  9723. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9724. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9725. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9726. msm_routing_put_audio_mixer),
  9727. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9728. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9729. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9730. msm_routing_put_audio_mixer),
  9731. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9732. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9733. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  9734. msm_routing_put_audio_mixer),
  9735. };
  9736. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  9737. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_PRI_MI2S_TX,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_INT3_MI2S_TX,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_INT_FM_TX,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  9758. MSM_BACKEND_DAI_AFE_PCM_TX,
  9759. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9760. msm_routing_put_audio_mixer),
  9761. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  9762. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  9763. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9764. msm_routing_put_audio_mixer),
  9765. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  9766. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  9767. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9768. msm_routing_put_audio_mixer),
  9769. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  9770. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  9771. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9772. msm_routing_put_audio_mixer),
  9773. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  9774. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  9775. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9776. msm_routing_put_audio_mixer),
  9777. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9778. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  9779. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9780. msm_routing_put_audio_mixer),
  9781. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9782. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  9783. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9784. msm_routing_put_audio_mixer),
  9785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  9786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  9787. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9788. msm_routing_put_audio_mixer),
  9789. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  9790. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  9791. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9792. msm_routing_put_audio_mixer),
  9793. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  9794. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  9795. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  9796. msm_routing_put_audio_mixer),
  9797. };
  9798. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  9799. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_PRI_I2S_RX,
  9801. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9802. msm_routing_put_voice_mixer),
  9803. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_PRI_I2S_RX,
  9805. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9806. msm_routing_put_voice_mixer),
  9807. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_PRI_I2S_RX,
  9809. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9810. msm_routing_put_voice_mixer),
  9811. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_PRI_I2S_RX,
  9813. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9814. msm_routing_put_voice_mixer),
  9815. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_PRI_I2S_RX,
  9817. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9818. msm_routing_put_voice_mixer),
  9819. };
  9820. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  9821. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9822. MSM_BACKEND_DAI_SEC_I2S_RX,
  9823. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9824. msm_routing_put_voice_mixer),
  9825. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_SEC_I2S_RX,
  9827. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9828. msm_routing_put_voice_mixer),
  9829. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_SEC_I2S_RX,
  9831. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9832. msm_routing_put_voice_mixer),
  9833. };
  9834. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  9835. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9836. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9837. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9838. msm_routing_put_voice_mixer),
  9839. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9840. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9841. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9842. msm_routing_put_voice_mixer),
  9843. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9844. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9845. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9846. msm_routing_put_voice_mixer),
  9847. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9848. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9849. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9850. msm_routing_put_voice_mixer),
  9851. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9852. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  9853. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9854. msm_routing_put_voice_mixer),
  9855. };
  9856. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  9857. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9859. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9860. msm_routing_put_voice_mixer),
  9861. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9863. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9864. msm_routing_put_voice_mixer),
  9865. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9867. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9868. msm_routing_put_voice_mixer),
  9869. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9871. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9872. msm_routing_put_voice_mixer),
  9873. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  9875. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9876. msm_routing_put_voice_mixer),
  9877. };
  9878. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  9879. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9880. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9881. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9882. msm_routing_put_voice_mixer),
  9883. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9884. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9885. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9886. msm_routing_put_voice_mixer),
  9887. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9888. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9890. msm_routing_put_voice_mixer),
  9891. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9892. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9893. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9894. msm_routing_put_voice_mixer),
  9895. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9896. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  9897. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9898. msm_routing_put_voice_mixer),
  9899. };
  9900. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  9901. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9902. MSM_BACKEND_DAI_USB_RX,
  9903. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9904. msm_routing_put_voice_mixer),
  9905. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9906. MSM_BACKEND_DAI_USB_RX,
  9907. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9908. msm_routing_put_voice_mixer),
  9909. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9910. MSM_BACKEND_DAI_USB_RX,
  9911. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9912. msm_routing_put_voice_mixer),
  9913. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9914. MSM_BACKEND_DAI_USB_RX,
  9915. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9916. msm_routing_put_voice_mixer),
  9917. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9918. MSM_BACKEND_DAI_USB_RX,
  9919. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9920. msm_routing_put_voice_mixer),
  9921. };
  9922. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  9923. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9925. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9926. msm_routing_put_voice_mixer),
  9927. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9929. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9930. msm_routing_put_voice_mixer),
  9931. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9933. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9934. msm_routing_put_voice_mixer),
  9935. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9937. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9938. msm_routing_put_voice_mixer),
  9939. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  9941. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9942. msm_routing_put_voice_mixer),
  9943. };
  9944. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  9945. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9946. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9947. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9948. msm_routing_put_voice_mixer),
  9949. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9950. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9951. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9952. msm_routing_put_voice_mixer),
  9953. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9954. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9955. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9956. msm_routing_put_voice_mixer),
  9957. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9958. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9959. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9960. msm_routing_put_voice_mixer),
  9961. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9962. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  9963. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9964. msm_routing_put_voice_mixer),
  9965. };
  9966. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  9967. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9969. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9970. msm_routing_put_voice_mixer),
  9971. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9972. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9973. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9974. msm_routing_put_voice_mixer),
  9975. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9976. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9977. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  9978. msm_routing_put_voice_mixer),
  9979. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  9980. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9981. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  9982. msm_routing_put_voice_mixer),
  9983. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  9984. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  9985. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  9986. msm_routing_put_voice_mixer),
  9987. };
  9988. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  9989. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_MI2S_RX,
  9991. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  9992. msm_routing_put_voice_mixer),
  9993. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_MI2S_RX,
  9995. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  9996. msm_routing_put_voice_mixer),
  9997. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_MI2S_RX,
  9999. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10000. msm_routing_put_voice_mixer),
  10001. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_MI2S_RX,
  10003. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10004. msm_routing_put_voice_mixer),
  10005. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_MI2S_RX,
  10007. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10008. msm_routing_put_voice_mixer),
  10009. };
  10010. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  10011. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10012. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10013. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10014. msm_routing_put_voice_mixer),
  10015. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10016. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10017. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10018. msm_routing_put_voice_mixer),
  10019. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10020. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10021. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10022. msm_routing_put_voice_mixer),
  10023. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10024. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10025. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10026. msm_routing_put_voice_mixer),
  10027. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10028. MSM_BACKEND_DAI_PRI_MI2S_RX,
  10029. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10030. msm_routing_put_voice_mixer),
  10031. };
  10032. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  10033. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10035. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10036. msm_routing_put_voice_mixer),
  10037. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10039. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10040. msm_routing_put_voice_mixer),
  10041. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10043. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10044. msm_routing_put_voice_mixer),
  10045. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10046. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10047. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10048. msm_routing_put_voice_mixer),
  10049. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10050. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10051. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10052. msm_routing_put_voice_mixer),
  10053. };
  10054. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  10055. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10057. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10058. msm_routing_put_voice_mixer),
  10059. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10061. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10062. msm_routing_put_voice_mixer),
  10063. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10065. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10066. msm_routing_put_voice_mixer),
  10067. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10069. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10070. msm_routing_put_voice_mixer),
  10071. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10073. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10074. msm_routing_put_voice_mixer),
  10075. };
  10076. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  10077. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10078. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10079. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10080. msm_routing_put_voice_mixer),
  10081. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10082. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10083. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10084. msm_routing_put_voice_mixer),
  10085. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10086. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10087. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10088. msm_routing_put_voice_mixer),
  10089. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10090. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10091. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10092. msm_routing_put_voice_mixer),
  10093. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10094. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  10095. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10096. msm_routing_put_voice_mixer),
  10097. };
  10098. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  10099. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10101. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10102. msm_routing_put_voice_mixer),
  10103. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10105. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10106. msm_routing_put_voice_mixer),
  10107. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10109. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10110. msm_routing_put_voice_mixer),
  10111. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10113. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10114. msm_routing_put_voice_mixer),
  10115. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  10117. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10118. msm_routing_put_voice_mixer),
  10119. };
  10120. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  10121. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10123. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10124. msm_routing_put_voice_mixer),
  10125. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10127. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10128. msm_routing_put_voice_mixer),
  10129. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10131. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10132. msm_routing_put_voice_mixer),
  10133. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10135. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10136. msm_routing_put_voice_mixer),
  10137. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  10139. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10140. msm_routing_put_voice_mixer),
  10141. };
  10142. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  10143. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10144. MSM_BACKEND_DAI_AFE_PCM_RX,
  10145. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10146. msm_routing_put_voice_mixer),
  10147. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10148. MSM_BACKEND_DAI_AFE_PCM_RX,
  10149. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10150. msm_routing_put_voice_mixer),
  10151. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10152. MSM_BACKEND_DAI_AFE_PCM_RX,
  10153. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10154. msm_routing_put_voice_mixer),
  10155. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10156. MSM_BACKEND_DAI_AFE_PCM_RX,
  10157. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10158. msm_routing_put_voice_mixer),
  10159. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10160. MSM_BACKEND_DAI_AFE_PCM_RX,
  10161. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10162. msm_routing_put_voice_mixer),
  10163. };
  10164. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  10165. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_AUXPCM_RX,
  10167. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10168. msm_routing_put_voice_mixer),
  10169. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_AUXPCM_RX,
  10171. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10172. msm_routing_put_voice_mixer),
  10173. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_AUXPCM_RX,
  10175. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10176. msm_routing_put_voice_mixer),
  10177. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_AUXPCM_RX,
  10179. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10180. msm_routing_put_voice_mixer),
  10181. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_AUXPCM_RX,
  10183. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10184. msm_routing_put_voice_mixer),
  10185. };
  10186. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  10187. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10188. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10189. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10190. msm_routing_put_voice_mixer),
  10191. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10192. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10193. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10194. msm_routing_put_voice_mixer),
  10195. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10196. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10197. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10198. msm_routing_put_voice_mixer),
  10199. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10201. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10202. msm_routing_put_voice_mixer),
  10203. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  10205. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10206. msm_routing_put_voice_mixer),
  10207. };
  10208. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  10209. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10210. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10211. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10212. msm_routing_put_voice_mixer),
  10213. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10214. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10215. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10216. msm_routing_put_voice_mixer),
  10217. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10218. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10219. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10220. msm_routing_put_voice_mixer),
  10221. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10222. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10223. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10224. msm_routing_put_voice_mixer),
  10225. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10226. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  10227. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10228. msm_routing_put_voice_mixer),
  10229. };
  10230. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  10231. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10233. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10234. msm_routing_put_voice_mixer),
  10235. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10237. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10238. msm_routing_put_voice_mixer),
  10239. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10241. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10242. msm_routing_put_voice_mixer),
  10243. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10245. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10246. msm_routing_put_voice_mixer),
  10247. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  10249. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10250. msm_routing_put_voice_mixer),
  10251. };
  10252. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  10253. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10254. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10255. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10256. msm_routing_put_voice_mixer),
  10257. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10258. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10259. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10260. msm_routing_put_voice_mixer),
  10261. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10262. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10263. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10264. msm_routing_put_voice_mixer),
  10265. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10267. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10268. msm_routing_put_voice_mixer),
  10269. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  10271. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10272. msm_routing_put_voice_mixer),
  10273. };
  10274. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  10275. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10276. MSM_BACKEND_DAI_HDMI_RX,
  10277. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10278. msm_routing_put_voice_mixer),
  10279. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10280. MSM_BACKEND_DAI_HDMI_RX,
  10281. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10282. msm_routing_put_voice_mixer),
  10283. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10284. MSM_BACKEND_DAI_HDMI_RX,
  10285. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10286. msm_routing_put_voice_mixer),
  10287. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10288. MSM_BACKEND_DAI_HDMI_RX,
  10289. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10290. msm_routing_put_voice_mixer),
  10291. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10292. MSM_BACKEND_DAI_HDMI_RX,
  10293. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10294. msm_routing_put_voice_mixer),
  10295. };
  10296. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  10297. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10299. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10300. msm_routing_put_voice_mixer),
  10301. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10303. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10304. msm_routing_put_voice_mixer),
  10305. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10307. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10308. msm_routing_put_voice_mixer),
  10309. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10311. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10312. msm_routing_put_voice_mixer),
  10313. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  10315. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10316. msm_routing_put_voice_mixer),
  10317. };
  10318. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  10319. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10320. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10321. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10322. msm_routing_put_voice_mixer),
  10323. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10324. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10325. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10326. msm_routing_put_voice_mixer),
  10327. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10328. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10329. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10330. msm_routing_put_voice_mixer),
  10331. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10332. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10333. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10334. msm_routing_put_voice_mixer),
  10335. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10336. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  10337. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10338. msm_routing_put_voice_mixer),
  10339. };
  10340. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  10341. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10342. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10343. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10344. msm_routing_put_voice_mixer),
  10345. };
  10346. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  10347. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10349. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10350. msm_routing_put_voice_mixer),
  10351. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10353. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10354. msm_routing_put_voice_mixer),
  10355. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10357. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10358. msm_routing_put_voice_mixer),
  10359. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10361. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10362. msm_routing_put_voice_mixer),
  10363. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  10365. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10366. msm_routing_put_voice_mixer),
  10367. };
  10368. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  10369. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  10370. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10371. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10372. msm_routing_put_voice_mixer),
  10373. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  10374. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10375. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  10376. msm_routing_put_voice_mixer),
  10377. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  10378. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10379. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10380. msm_routing_put_voice_mixer),
  10381. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10382. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10383. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10384. msm_routing_put_voice_mixer),
  10385. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10386. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  10387. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10388. msm_routing_put_voice_mixer),
  10389. };
  10390. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  10391. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_EXTPROC_RX,
  10393. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10394. msm_routing_put_voice_mixer),
  10395. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_EXTPROC_RX,
  10397. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10398. msm_routing_put_voice_mixer),
  10399. };
  10400. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  10401. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10402. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10403. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10404. msm_routing_put_voice_mixer),
  10405. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10406. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  10407. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10408. msm_routing_put_voice_mixer),
  10409. };
  10410. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  10411. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10413. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10414. msm_routing_put_voice_mixer),
  10415. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  10417. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10418. msm_routing_put_voice_mixer),
  10419. };
  10420. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  10421. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_PRI_I2S_TX,
  10423. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10424. msm_routing_put_voice_mixer),
  10425. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_MI2S_TX,
  10427. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10428. msm_routing_put_voice_mixer),
  10429. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10431. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10432. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  10433. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10434. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10435. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  10436. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10437. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10438. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10439. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10440. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10441. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10443. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10444. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10445. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10446. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10447. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10448. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10449. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10450. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  10451. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10452. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10453. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  10455. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10456. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  10457. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10458. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10459. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  10460. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  10461. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10462. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  10463. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10464. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10465. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  10467. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10468. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  10469. MSM_BACKEND_DAI_USB_TX,
  10470. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  10471. msm_routing_put_voice_mixer),
  10472. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  10473. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10474. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10475. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  10476. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  10477. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10478. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  10479. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  10480. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10481. };
  10482. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  10483. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  10484. MSM_BACKEND_DAI_PRI_I2S_TX,
  10485. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10486. msm_routing_put_voice_mixer),
  10487. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  10488. MSM_BACKEND_DAI_MI2S_TX,
  10489. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  10490. msm_routing_put_voice_mixer),
  10491. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  10492. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10493. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10494. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  10495. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10496. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10497. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  10498. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10499. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10500. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10501. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10502. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10503. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10505. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10506. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10507. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10508. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10509. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10510. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10511. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10512. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  10513. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10514. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10515. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  10517. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10518. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  10519. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10520. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10521. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  10522. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  10523. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10524. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  10525. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10526. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10527. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10529. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10530. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  10531. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  10532. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10533. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  10534. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  10535. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10536. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  10537. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  10538. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10539. };
  10540. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  10541. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  10542. MSM_BACKEND_DAI_PRI_I2S_TX,
  10543. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10544. msm_routing_put_voice_mixer),
  10545. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  10546. MSM_BACKEND_DAI_MI2S_TX,
  10547. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10548. msm_routing_put_voice_mixer),
  10549. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  10550. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10551. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10552. msm_routing_put_voice_mixer),
  10553. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  10554. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10555. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10556. msm_routing_put_voice_mixer),
  10557. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  10558. MSM_BACKEND_DAI_AFE_PCM_TX,
  10559. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10560. msm_routing_put_voice_mixer),
  10561. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10562. MSM_BACKEND_DAI_AUXPCM_TX,
  10563. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10564. msm_routing_put_voice_mixer),
  10565. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10566. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10567. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10568. msm_routing_put_voice_mixer),
  10569. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10570. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10571. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10572. msm_routing_put_voice_mixer),
  10573. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10574. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10575. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10576. msm_routing_put_voice_mixer),
  10577. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10579. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10580. msm_routing_put_voice_mixer),
  10581. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10583. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10584. msm_routing_put_voice_mixer),
  10585. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10587. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10588. msm_routing_put_voice_mixer),
  10589. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10591. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10592. msm_routing_put_voice_mixer),
  10593. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10595. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10596. msm_routing_put_voice_mixer),
  10597. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10599. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10600. msm_routing_put_voice_mixer),
  10601. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_USB_TX,
  10603. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  10604. msm_routing_put_voice_mixer),
  10605. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  10607. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10608. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  10609. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  10610. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10611. };
  10612. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  10613. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_EXTPROC_TX,
  10615. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10616. msm_routing_put_voice_stub_mixer),
  10617. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10619. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10620. msm_routing_put_voice_stub_mixer),
  10621. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10623. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10624. msm_routing_put_voice_stub_mixer),
  10625. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10627. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10628. msm_routing_put_voice_stub_mixer),
  10629. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_MI2S_TX,
  10631. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10632. msm_routing_put_voice_stub_mixer),
  10633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10635. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10636. msm_routing_put_voice_stub_mixer),
  10637. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10639. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10640. msm_routing_put_voice_stub_mixer),
  10641. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10642. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10643. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10644. msm_routing_put_voice_stub_mixer),
  10645. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10646. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10647. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10648. msm_routing_put_voice_stub_mixer),
  10649. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10650. MSM_BACKEND_DAI_AUXPCM_TX,
  10651. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10652. msm_routing_put_voice_stub_mixer),
  10653. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10654. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10655. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10656. msm_routing_put_voice_stub_mixer),
  10657. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10658. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10659. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10660. msm_routing_put_voice_stub_mixer),
  10661. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10662. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10663. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10664. msm_routing_put_voice_stub_mixer),
  10665. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10666. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10667. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10668. msm_routing_put_voice_stub_mixer),
  10669. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10670. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10671. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10672. msm_routing_put_voice_stub_mixer),
  10673. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10674. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10675. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10676. msm_routing_put_voice_stub_mixer),
  10677. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10678. MSM_BACKEND_DAI_AFE_PCM_TX,
  10679. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10680. msm_routing_put_voice_stub_mixer),
  10681. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10682. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10683. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10684. msm_routing_put_voice_stub_mixer),
  10685. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10686. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10687. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10688. msm_routing_put_voice_stub_mixer),
  10689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  10691. 1, 0, msm_routing_get_voice_stub_mixer,
  10692. msm_routing_put_voice_stub_mixer),
  10693. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10694. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  10695. 1, 0, msm_routing_get_voice_stub_mixer,
  10696. msm_routing_put_voice_stub_mixer),
  10697. };
  10698. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  10699. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_EXTPROC_TX,
  10701. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10702. msm_routing_put_voice_stub_mixer),
  10703. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10705. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10706. msm_routing_put_voice_stub_mixer),
  10707. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10708. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10709. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10710. msm_routing_put_voice_stub_mixer),
  10711. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10712. MSM_BACKEND_DAI_AUXPCM_TX,
  10713. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10714. msm_routing_put_voice_stub_mixer),
  10715. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10716. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10717. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10718. msm_routing_put_voice_stub_mixer),
  10719. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10720. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10721. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10722. msm_routing_put_voice_stub_mixer),
  10723. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10724. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10725. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10726. msm_routing_put_voice_stub_mixer),
  10727. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10728. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10729. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10730. msm_routing_put_voice_stub_mixer),
  10731. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10732. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10733. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10734. msm_routing_put_voice_stub_mixer),
  10735. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10736. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10737. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10738. msm_routing_put_voice_stub_mixer),
  10739. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10740. MSM_BACKEND_DAI_AFE_PCM_TX,
  10741. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10742. msm_routing_put_voice_stub_mixer),
  10743. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10744. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10745. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10746. msm_routing_put_voice_stub_mixer),
  10747. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10748. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10749. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10750. msm_routing_put_voice_stub_mixer),
  10751. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10752. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10753. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10754. msm_routing_put_voice_stub_mixer),
  10755. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10756. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10757. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10758. msm_routing_put_voice_stub_mixer),
  10759. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10760. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  10761. 1, 0, msm_routing_get_voice_stub_mixer,
  10762. msm_routing_put_voice_stub_mixer),
  10763. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10764. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  10765. 1, 0, msm_routing_get_voice_stub_mixer,
  10766. msm_routing_put_voice_stub_mixer),
  10767. };
  10768. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  10769. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_EXTPROC_TX,
  10771. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10772. msm_routing_put_voice_stub_mixer),
  10773. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  10775. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10776. msm_routing_put_voice_stub_mixer),
  10777. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  10779. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10780. msm_routing_put_voice_stub_mixer),
  10781. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_AUXPCM_TX,
  10783. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10784. msm_routing_put_voice_stub_mixer),
  10785. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  10786. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10787. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10788. msm_routing_put_voice_stub_mixer),
  10789. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10790. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10791. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10792. msm_routing_put_voice_stub_mixer),
  10793. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  10794. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10795. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10796. msm_routing_put_voice_stub_mixer),
  10797. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  10798. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10799. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10800. msm_routing_put_voice_stub_mixer),
  10801. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  10802. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10803. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10804. msm_routing_put_voice_stub_mixer),
  10805. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  10806. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  10807. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10808. msm_routing_put_voice_stub_mixer),
  10809. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  10810. MSM_BACKEND_DAI_AFE_PCM_TX,
  10811. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10812. msm_routing_put_voice_stub_mixer),
  10813. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10814. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10815. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10816. msm_routing_put_voice_stub_mixer),
  10817. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10818. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  10819. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10820. msm_routing_put_voice_stub_mixer),
  10821. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10822. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10823. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10824. msm_routing_put_voice_stub_mixer),
  10825. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10826. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10827. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  10828. msm_routing_put_voice_stub_mixer),
  10829. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  10830. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  10831. 1, 0, msm_routing_get_voice_stub_mixer,
  10832. msm_routing_put_voice_stub_mixer),
  10833. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  10834. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  10835. 1, 0, msm_routing_get_voice_stub_mixer,
  10836. msm_routing_put_voice_stub_mixer),
  10837. };
  10838. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  10839. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_PRI_I2S_TX,
  10841. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10842. msm_routing_put_voice_mixer),
  10843. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  10845. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10846. msm_routing_put_voice_mixer),
  10847. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  10849. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  10850. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10851. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  10852. MSM_BACKEND_DAI_AFE_PCM_TX,
  10853. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10854. msm_routing_put_voice_mixer),
  10855. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10856. MSM_BACKEND_DAI_AUXPCM_TX,
  10857. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10858. msm_routing_put_voice_mixer),
  10859. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10860. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  10861. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10862. msm_routing_put_voice_mixer),
  10863. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10864. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  10865. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10866. msm_routing_put_voice_mixer),
  10867. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10868. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  10869. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10870. msm_routing_put_voice_mixer),
  10871. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  10872. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  10873. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10874. msm_routing_put_voice_mixer),
  10875. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  10876. MSM_BACKEND_DAI_MI2S_TX,
  10877. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10878. msm_routing_put_voice_mixer),
  10879. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10880. MSM_BACKEND_DAI_PRI_MI2S_TX,
  10881. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10882. msm_routing_put_voice_mixer),
  10883. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10884. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  10885. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10886. msm_routing_put_voice_mixer),
  10887. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  10888. MSM_BACKEND_DAI_INT3_MI2S_TX,
  10889. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10890. msm_routing_put_voice_mixer),
  10891. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  10892. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  10893. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10894. msm_routing_put_voice_mixer),
  10895. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  10896. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  10897. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10898. msm_routing_put_voice_mixer),
  10899. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  10900. MSM_BACKEND_DAI_USB_TX,
  10901. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  10902. msm_routing_put_voice_mixer),
  10903. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  10904. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  10905. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10906. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  10907. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  10908. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  10909. };
  10910. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  10911. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10912. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10913. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10914. msm_routing_put_port_mixer),
  10915. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10916. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10917. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10918. msm_routing_put_port_mixer),
  10919. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10920. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10921. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10922. msm_routing_put_port_mixer),
  10923. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10924. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10925. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10926. msm_routing_put_port_mixer),
  10927. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10928. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10929. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10930. msm_routing_put_port_mixer),
  10931. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10933. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10934. msm_routing_put_port_mixer),
  10935. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10937. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10938. msm_routing_put_port_mixer),
  10939. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10941. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10942. msm_routing_put_port_mixer),
  10943. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10945. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10946. msm_routing_put_port_mixer),
  10947. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_INT0_MI2S_RX,
  10949. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10950. msm_routing_put_port_mixer),
  10951. };
  10952. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  10953. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  10954. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10955. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10956. msm_routing_put_port_mixer),
  10957. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  10958. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10959. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10960. msm_routing_put_port_mixer),
  10961. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  10962. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10963. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10964. msm_routing_put_port_mixer),
  10965. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  10966. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10967. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10968. msm_routing_put_port_mixer),
  10969. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  10970. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10971. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10972. msm_routing_put_port_mixer),
  10973. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  10974. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10975. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  10976. msm_routing_put_port_mixer),
  10977. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10978. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10979. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10980. msm_routing_put_port_mixer),
  10981. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  10982. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10983. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  10984. msm_routing_put_port_mixer),
  10985. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  10986. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10987. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  10988. msm_routing_put_port_mixer),
  10989. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  10990. MSM_BACKEND_DAI_INT4_MI2S_RX,
  10991. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  10992. msm_routing_put_port_mixer),
  10993. };
  10994. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  10995. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  10996. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  10997. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  10998. msm_routing_put_port_mixer),
  10999. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11000. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11001. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11002. msm_routing_put_port_mixer),
  11003. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11004. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11005. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11006. msm_routing_put_port_mixer),
  11007. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11008. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11009. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11010. msm_routing_put_port_mixer),
  11011. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11012. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11013. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11014. msm_routing_put_port_mixer),
  11015. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11016. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11017. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11018. msm_routing_put_port_mixer),
  11019. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11020. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11021. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11022. msm_routing_put_port_mixer),
  11023. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11024. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11025. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11026. msm_routing_put_port_mixer),
  11027. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11028. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11029. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11030. msm_routing_put_port_mixer),
  11031. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11032. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11033. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11034. msm_routing_put_port_mixer),
  11035. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11036. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11037. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11038. msm_routing_put_port_mixer),
  11039. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11040. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11041. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11042. msm_routing_put_port_mixer),
  11043. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11044. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11045. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11046. msm_routing_put_port_mixer),
  11047. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11048. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11049. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11050. msm_routing_put_port_mixer),
  11051. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11052. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11053. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11054. msm_routing_put_port_mixer),
  11055. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11056. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11057. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11058. msm_routing_put_port_mixer),
  11059. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11060. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11061. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11062. msm_routing_put_port_mixer),
  11063. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  11064. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11065. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11066. msm_routing_put_port_mixer),
  11067. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  11068. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11069. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11070. msm_routing_put_port_mixer),
  11071. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  11072. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11073. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11074. msm_routing_put_port_mixer),
  11075. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11077. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11078. msm_routing_put_port_mixer),
  11079. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  11081. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  11082. msm_routing_put_port_mixer),
  11083. };
  11084. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  11085. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11086. MSM_BACKEND_DAI_AUXPCM_RX,
  11087. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11088. msm_routing_put_port_mixer),
  11089. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11090. MSM_BACKEND_DAI_AUXPCM_RX,
  11091. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11092. msm_routing_put_port_mixer),
  11093. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11094. MSM_BACKEND_DAI_AUXPCM_RX,
  11095. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11096. msm_routing_put_port_mixer),
  11097. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11098. MSM_BACKEND_DAI_AUXPCM_RX,
  11099. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11100. msm_routing_put_port_mixer),
  11101. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11102. MSM_BACKEND_DAI_AUXPCM_RX,
  11103. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  11104. msm_routing_put_port_mixer),
  11105. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11106. MSM_BACKEND_DAI_AUXPCM_RX,
  11107. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11108. msm_routing_put_port_mixer),
  11109. };
  11110. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  11111. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11113. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11114. msm_routing_put_port_mixer),
  11115. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11117. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11118. msm_routing_put_port_mixer),
  11119. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11121. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11122. msm_routing_put_port_mixer),
  11123. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  11125. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11126. msm_routing_put_port_mixer),
  11127. };
  11128. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  11129. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11130. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11131. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11132. msm_routing_put_port_mixer),
  11133. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11134. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11135. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11136. msm_routing_put_port_mixer),
  11137. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11138. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  11139. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11140. msm_routing_put_port_mixer),
  11141. };
  11142. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  11143. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11145. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11146. msm_routing_put_port_mixer),
  11147. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11148. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11149. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11150. msm_routing_put_port_mixer),
  11151. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11152. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  11153. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11154. msm_routing_put_port_mixer),
  11155. };
  11156. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  11157. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11159. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11160. msm_routing_put_port_mixer),
  11161. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11163. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11164. msm_routing_put_port_mixer),
  11165. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  11167. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11168. msm_routing_put_port_mixer),
  11169. };
  11170. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  11171. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11172. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11173. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11174. msm_routing_put_port_mixer),
  11175. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11176. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11177. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  11178. msm_routing_put_port_mixer),
  11179. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11180. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11181. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11182. msm_routing_put_port_mixer),
  11183. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11184. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11185. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11186. msm_routing_put_port_mixer),
  11187. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11188. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11189. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11190. msm_routing_put_port_mixer),
  11191. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11192. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  11193. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11194. msm_routing_put_port_mixer),
  11195. };
  11196. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  11197. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11199. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  11200. msm_routing_put_port_mixer),
  11201. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11203. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11204. msm_routing_put_port_mixer),
  11205. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11207. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  11208. msm_routing_put_port_mixer),
  11209. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11211. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  11212. msm_routing_put_port_mixer),
  11213. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  11214. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  11215. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  11216. msm_routing_put_port_mixer),
  11217. };
  11218. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  11219. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11221. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11222. msm_routing_put_port_mixer),
  11223. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11225. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11226. msm_routing_put_port_mixer),
  11227. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11229. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11230. msm_routing_put_port_mixer),
  11231. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11233. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  11234. msm_routing_put_port_mixer),
  11235. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11237. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11238. msm_routing_put_port_mixer),
  11239. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11241. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11242. msm_routing_put_port_mixer),
  11243. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11245. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11246. msm_routing_put_port_mixer),
  11247. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11249. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11250. msm_routing_put_port_mixer),
  11251. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11253. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11254. msm_routing_put_port_mixer),
  11255. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11257. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11258. msm_routing_put_port_mixer),
  11259. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11261. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11262. msm_routing_put_port_mixer),
  11263. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  11265. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11266. msm_routing_put_port_mixer),
  11267. };
  11268. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  11269. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11270. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11271. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11272. msm_routing_put_port_mixer),
  11273. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11274. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  11275. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11276. msm_routing_put_port_mixer),
  11277. };
  11278. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  11279. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_AFE_PCM_RX,
  11281. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11282. msm_routing_put_port_mixer),
  11283. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_AFE_PCM_RX,
  11285. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11286. msm_routing_put_port_mixer),
  11287. };
  11288. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  11289. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_HDMI_RX,
  11291. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11292. msm_routing_put_port_mixer),
  11293. };
  11294. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  11295. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11296. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  11297. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11298. msm_routing_put_port_mixer),
  11299. };
  11300. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  11301. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  11303. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11304. msm_routing_put_port_mixer),
  11305. };
  11306. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  11307. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11308. MSM_BACKEND_DAI_SEC_I2S_RX,
  11309. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11310. msm_routing_put_port_mixer),
  11311. };
  11312. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  11313. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_MI2S_RX,
  11315. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  11316. msm_routing_put_port_mixer),
  11317. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_MI2S_RX,
  11319. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11320. msm_routing_put_port_mixer),
  11321. };
  11322. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  11323. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11324. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11325. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11326. msm_routing_put_port_mixer),
  11327. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11328. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11329. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11330. msm_routing_put_port_mixer),
  11331. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11332. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11333. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11334. msm_routing_put_port_mixer),
  11335. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11336. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11337. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11338. msm_routing_put_port_mixer),
  11339. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11340. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11341. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  11342. msm_routing_put_port_mixer),
  11343. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11344. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11345. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11346. msm_routing_put_port_mixer),
  11347. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11348. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11349. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11350. msm_routing_put_port_mixer),
  11351. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11352. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11353. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11354. msm_routing_put_port_mixer),
  11355. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11356. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11357. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11358. msm_routing_put_port_mixer),
  11359. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11360. MSM_BACKEND_DAI_PRI_MI2S_RX,
  11361. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11362. msm_routing_put_port_mixer),
  11363. };
  11364. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  11365. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11366. MSM_BACKEND_DAI_USB_RX,
  11367. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  11368. msm_routing_put_port_mixer),
  11369. };
  11370. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  11371. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11373. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11374. msm_routing_put_port_mixer),
  11375. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11377. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11378. msm_routing_put_port_mixer),
  11379. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11381. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  11382. msm_routing_put_port_mixer),
  11383. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11385. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  11386. msm_routing_put_port_mixer),
  11387. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11389. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11390. msm_routing_put_port_mixer),
  11391. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11393. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11394. msm_routing_put_port_mixer),
  11395. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11397. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11398. msm_routing_put_port_mixer),
  11399. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11401. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11402. msm_routing_put_port_mixer),
  11403. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  11405. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11406. msm_routing_put_port_mixer),
  11407. };
  11408. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  11409. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11410. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11411. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11412. msm_routing_put_port_mixer),
  11413. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11414. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11415. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11416. msm_routing_put_port_mixer),
  11417. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11418. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11419. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  11420. msm_routing_put_port_mixer),
  11421. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11422. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11423. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11424. msm_routing_put_port_mixer),
  11425. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11426. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11427. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11428. msm_routing_put_port_mixer),
  11429. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11430. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11431. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  11432. msm_routing_put_port_mixer),
  11433. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11434. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  11435. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  11436. msm_routing_put_port_mixer),
  11437. };
  11438. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  11439. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11440. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11441. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11442. msm_routing_get_port_mixer,
  11443. msm_routing_put_port_mixer),
  11444. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11445. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11446. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11447. msm_routing_get_port_mixer,
  11448. msm_routing_put_port_mixer),
  11449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11451. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11452. msm_routing_get_port_mixer,
  11453. msm_routing_put_port_mixer),
  11454. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11455. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11456. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11457. msm_routing_get_port_mixer,
  11458. msm_routing_put_port_mixer),
  11459. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11460. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11461. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11462. msm_routing_get_port_mixer,
  11463. msm_routing_put_port_mixer),
  11464. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11465. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11466. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11467. msm_routing_get_port_mixer,
  11468. msm_routing_put_port_mixer),
  11469. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11471. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11472. msm_routing_get_port_mixer,
  11473. msm_routing_put_port_mixer),
  11474. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11475. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11476. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11477. msm_routing_get_port_mixer,
  11478. msm_routing_put_port_mixer),
  11479. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11480. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11481. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11482. msm_routing_get_port_mixer,
  11483. msm_routing_put_port_mixer),
  11484. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11485. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11486. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11487. msm_routing_get_port_mixer,
  11488. msm_routing_put_port_mixer),
  11489. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11491. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11492. msm_routing_get_port_mixer,
  11493. msm_routing_put_port_mixer),
  11494. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11495. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11496. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11497. msm_routing_get_port_mixer,
  11498. msm_routing_put_port_mixer),
  11499. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11500. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11501. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11502. msm_routing_get_port_mixer,
  11503. msm_routing_put_port_mixer),
  11504. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11505. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11506. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11507. msm_routing_get_port_mixer,
  11508. msm_routing_put_port_mixer),
  11509. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11511. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11512. msm_routing_get_port_mixer,
  11513. msm_routing_put_port_mixer),
  11514. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11515. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11516. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11517. msm_routing_get_port_mixer,
  11518. msm_routing_put_port_mixer),
  11519. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11520. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11521. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11522. msm_routing_get_port_mixer,
  11523. msm_routing_put_port_mixer),
  11524. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11525. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11526. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11527. msm_routing_get_port_mixer,
  11528. msm_routing_put_port_mixer),
  11529. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11531. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11532. msm_routing_get_port_mixer,
  11533. msm_routing_put_port_mixer),
  11534. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11535. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  11536. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11537. msm_routing_get_port_mixer,
  11538. msm_routing_put_port_mixer),
  11539. };
  11540. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  11541. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11543. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11544. msm_routing_get_port_mixer,
  11545. msm_routing_put_port_mixer),
  11546. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11547. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11548. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11549. msm_routing_get_port_mixer,
  11550. msm_routing_put_port_mixer),
  11551. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11552. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11553. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11554. msm_routing_get_port_mixer,
  11555. msm_routing_put_port_mixer),
  11556. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11557. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11558. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11559. msm_routing_get_port_mixer,
  11560. msm_routing_put_port_mixer),
  11561. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11563. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11564. msm_routing_get_port_mixer,
  11565. msm_routing_put_port_mixer),
  11566. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11567. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11568. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11569. msm_routing_get_port_mixer,
  11570. msm_routing_put_port_mixer),
  11571. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11572. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11573. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11574. msm_routing_get_port_mixer,
  11575. msm_routing_put_port_mixer),
  11576. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11577. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11578. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11579. msm_routing_get_port_mixer,
  11580. msm_routing_put_port_mixer),
  11581. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11583. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11584. msm_routing_get_port_mixer,
  11585. msm_routing_put_port_mixer),
  11586. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11587. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11588. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11589. msm_routing_get_port_mixer,
  11590. msm_routing_put_port_mixer),
  11591. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11592. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11593. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11594. msm_routing_get_port_mixer,
  11595. msm_routing_put_port_mixer),
  11596. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11597. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11598. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11599. msm_routing_get_port_mixer,
  11600. msm_routing_put_port_mixer),
  11601. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11603. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11604. msm_routing_get_port_mixer,
  11605. msm_routing_put_port_mixer),
  11606. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11607. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11608. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11609. msm_routing_get_port_mixer,
  11610. msm_routing_put_port_mixer),
  11611. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11612. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11613. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11614. msm_routing_get_port_mixer,
  11615. msm_routing_put_port_mixer),
  11616. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11617. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11618. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11619. msm_routing_get_port_mixer,
  11620. msm_routing_put_port_mixer),
  11621. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11623. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11624. msm_routing_get_port_mixer,
  11625. msm_routing_put_port_mixer),
  11626. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11627. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11628. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11629. msm_routing_get_port_mixer,
  11630. msm_routing_put_port_mixer),
  11631. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11632. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11633. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11634. msm_routing_get_port_mixer,
  11635. msm_routing_put_port_mixer),
  11636. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11637. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  11638. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11639. msm_routing_get_port_mixer,
  11640. msm_routing_put_port_mixer),
  11641. };
  11642. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  11643. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11644. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11645. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11646. msm_routing_get_port_mixer,
  11647. msm_routing_put_port_mixer),
  11648. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11649. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11650. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11651. msm_routing_get_port_mixer,
  11652. msm_routing_put_port_mixer),
  11653. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11655. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11656. msm_routing_get_port_mixer,
  11657. msm_routing_put_port_mixer),
  11658. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11659. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11660. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11661. msm_routing_get_port_mixer,
  11662. msm_routing_put_port_mixer),
  11663. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11664. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11665. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11666. msm_routing_get_port_mixer,
  11667. msm_routing_put_port_mixer),
  11668. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11669. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11670. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11671. msm_routing_get_port_mixer,
  11672. msm_routing_put_port_mixer),
  11673. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11675. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11676. msm_routing_get_port_mixer,
  11677. msm_routing_put_port_mixer),
  11678. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11679. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11680. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11681. msm_routing_get_port_mixer,
  11682. msm_routing_put_port_mixer),
  11683. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11684. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11685. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11686. msm_routing_get_port_mixer,
  11687. msm_routing_put_port_mixer),
  11688. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11689. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11690. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11691. msm_routing_get_port_mixer,
  11692. msm_routing_put_port_mixer),
  11693. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11695. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11696. msm_routing_get_port_mixer,
  11697. msm_routing_put_port_mixer),
  11698. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11699. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11700. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11701. msm_routing_get_port_mixer,
  11702. msm_routing_put_port_mixer),
  11703. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11704. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11705. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11706. msm_routing_get_port_mixer,
  11707. msm_routing_put_port_mixer),
  11708. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11709. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11710. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11711. msm_routing_get_port_mixer,
  11712. msm_routing_put_port_mixer),
  11713. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11714. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11715. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11716. msm_routing_get_port_mixer,
  11717. msm_routing_put_port_mixer),
  11718. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11719. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11720. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11721. msm_routing_get_port_mixer,
  11722. msm_routing_put_port_mixer),
  11723. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11725. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11726. msm_routing_get_port_mixer,
  11727. msm_routing_put_port_mixer),
  11728. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11729. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11730. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11731. msm_routing_get_port_mixer,
  11732. msm_routing_put_port_mixer),
  11733. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11734. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11735. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11736. msm_routing_get_port_mixer,
  11737. msm_routing_put_port_mixer),
  11738. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11739. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  11740. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11741. msm_routing_get_port_mixer,
  11742. msm_routing_put_port_mixer),
  11743. };
  11744. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  11745. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11746. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11747. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11748. msm_routing_get_port_mixer,
  11749. msm_routing_put_port_mixer),
  11750. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11751. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11752. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11753. msm_routing_get_port_mixer,
  11754. msm_routing_put_port_mixer),
  11755. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11757. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11758. msm_routing_get_port_mixer,
  11759. msm_routing_put_port_mixer),
  11760. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11761. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11762. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11763. msm_routing_get_port_mixer,
  11764. msm_routing_put_port_mixer),
  11765. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11766. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11767. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11768. msm_routing_get_port_mixer,
  11769. msm_routing_put_port_mixer),
  11770. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11771. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11772. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11773. msm_routing_get_port_mixer,
  11774. msm_routing_put_port_mixer),
  11775. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11777. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11778. msm_routing_get_port_mixer,
  11779. msm_routing_put_port_mixer),
  11780. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11781. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11782. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11783. msm_routing_get_port_mixer,
  11784. msm_routing_put_port_mixer),
  11785. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11786. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11787. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  11788. msm_routing_get_port_mixer,
  11789. msm_routing_put_port_mixer),
  11790. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11791. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11792. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  11793. msm_routing_get_port_mixer,
  11794. msm_routing_put_port_mixer),
  11795. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11797. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  11798. msm_routing_get_port_mixer,
  11799. msm_routing_put_port_mixer),
  11800. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11801. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11802. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  11803. msm_routing_get_port_mixer,
  11804. msm_routing_put_port_mixer),
  11805. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11806. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11807. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11808. msm_routing_get_port_mixer,
  11809. msm_routing_put_port_mixer),
  11810. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11811. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11812. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11813. msm_routing_get_port_mixer,
  11814. msm_routing_put_port_mixer),
  11815. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11817. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11818. msm_routing_get_port_mixer,
  11819. msm_routing_put_port_mixer),
  11820. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11821. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11822. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11823. msm_routing_get_port_mixer,
  11824. msm_routing_put_port_mixer),
  11825. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11826. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11827. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11828. msm_routing_get_port_mixer,
  11829. msm_routing_put_port_mixer),
  11830. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11831. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11832. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11833. msm_routing_get_port_mixer,
  11834. msm_routing_put_port_mixer),
  11835. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11837. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11838. msm_routing_get_port_mixer,
  11839. msm_routing_put_port_mixer),
  11840. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11841. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  11842. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11843. msm_routing_get_port_mixer,
  11844. msm_routing_put_port_mixer),
  11845. };
  11846. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  11847. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11849. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11850. msm_routing_get_port_mixer,
  11851. msm_routing_put_port_mixer),
  11852. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11853. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11854. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11855. msm_routing_get_port_mixer,
  11856. msm_routing_put_port_mixer),
  11857. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11858. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11859. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11860. msm_routing_get_port_mixer,
  11861. msm_routing_put_port_mixer),
  11862. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11863. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11864. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11865. msm_routing_get_port_mixer,
  11866. msm_routing_put_port_mixer),
  11867. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11869. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11870. msm_routing_get_port_mixer,
  11871. msm_routing_put_port_mixer),
  11872. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11873. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11874. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11875. msm_routing_get_port_mixer,
  11876. msm_routing_put_port_mixer),
  11877. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11878. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11879. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11880. msm_routing_get_port_mixer,
  11881. msm_routing_put_port_mixer),
  11882. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11883. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11884. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11885. msm_routing_get_port_mixer,
  11886. msm_routing_put_port_mixer),
  11887. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11889. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11890. msm_routing_get_port_mixer,
  11891. msm_routing_put_port_mixer),
  11892. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11893. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11894. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11895. msm_routing_get_port_mixer,
  11896. msm_routing_put_port_mixer),
  11897. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11898. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11899. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  11900. msm_routing_get_port_mixer,
  11901. msm_routing_put_port_mixer),
  11902. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11903. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11904. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  11905. msm_routing_get_port_mixer,
  11906. msm_routing_put_port_mixer),
  11907. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11909. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  11910. msm_routing_get_port_mixer,
  11911. msm_routing_put_port_mixer),
  11912. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11913. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11914. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  11915. msm_routing_get_port_mixer,
  11916. msm_routing_put_port_mixer),
  11917. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11918. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11919. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  11920. msm_routing_get_port_mixer,
  11921. msm_routing_put_port_mixer),
  11922. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11923. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11924. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  11925. msm_routing_get_port_mixer,
  11926. msm_routing_put_port_mixer),
  11927. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11929. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  11930. msm_routing_get_port_mixer,
  11931. msm_routing_put_port_mixer),
  11932. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11933. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11934. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  11935. msm_routing_get_port_mixer,
  11936. msm_routing_put_port_mixer),
  11937. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11939. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  11940. msm_routing_get_port_mixer,
  11941. msm_routing_put_port_mixer),
  11942. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11943. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  11944. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  11945. msm_routing_get_port_mixer,
  11946. msm_routing_put_port_mixer),
  11947. };
  11948. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  11949. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11951. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  11952. msm_routing_get_port_mixer,
  11953. msm_routing_put_port_mixer),
  11954. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11955. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11956. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  11957. msm_routing_get_port_mixer,
  11958. msm_routing_put_port_mixer),
  11959. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11960. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11961. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  11962. msm_routing_get_port_mixer,
  11963. msm_routing_put_port_mixer),
  11964. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11965. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11966. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  11967. msm_routing_get_port_mixer,
  11968. msm_routing_put_port_mixer),
  11969. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11971. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  11972. msm_routing_get_port_mixer,
  11973. msm_routing_put_port_mixer),
  11974. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11975. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11976. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  11977. msm_routing_get_port_mixer,
  11978. msm_routing_put_port_mixer),
  11979. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11980. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11981. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  11982. msm_routing_get_port_mixer,
  11983. msm_routing_put_port_mixer),
  11984. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11985. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11986. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  11987. msm_routing_get_port_mixer,
  11988. msm_routing_put_port_mixer),
  11989. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11991. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  11992. msm_routing_get_port_mixer,
  11993. msm_routing_put_port_mixer),
  11994. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11995. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  11996. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  11997. msm_routing_get_port_mixer,
  11998. msm_routing_put_port_mixer),
  11999. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12000. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12001. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12002. msm_routing_get_port_mixer,
  12003. msm_routing_put_port_mixer),
  12004. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12005. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12006. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12007. msm_routing_get_port_mixer,
  12008. msm_routing_put_port_mixer),
  12009. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12011. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12012. msm_routing_get_port_mixer,
  12013. msm_routing_put_port_mixer),
  12014. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12015. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12016. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12017. msm_routing_get_port_mixer,
  12018. msm_routing_put_port_mixer),
  12019. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12020. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12021. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12022. msm_routing_get_port_mixer,
  12023. msm_routing_put_port_mixer),
  12024. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12025. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12026. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12027. msm_routing_get_port_mixer,
  12028. msm_routing_put_port_mixer),
  12029. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12031. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12032. msm_routing_get_port_mixer,
  12033. msm_routing_put_port_mixer),
  12034. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12035. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12036. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12037. msm_routing_get_port_mixer,
  12038. msm_routing_put_port_mixer),
  12039. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12040. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12041. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12042. msm_routing_get_port_mixer,
  12043. msm_routing_put_port_mixer),
  12044. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12045. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  12046. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12047. msm_routing_get_port_mixer,
  12048. msm_routing_put_port_mixer),
  12049. };
  12050. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  12051. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12052. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12053. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12054. msm_routing_get_port_mixer,
  12055. msm_routing_put_port_mixer),
  12056. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12057. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12058. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12059. msm_routing_get_port_mixer,
  12060. msm_routing_put_port_mixer),
  12061. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12063. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12064. msm_routing_get_port_mixer,
  12065. msm_routing_put_port_mixer),
  12066. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12067. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12068. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12069. msm_routing_get_port_mixer,
  12070. msm_routing_put_port_mixer),
  12071. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12072. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12073. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12074. msm_routing_get_port_mixer,
  12075. msm_routing_put_port_mixer),
  12076. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12077. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12078. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12079. msm_routing_get_port_mixer,
  12080. msm_routing_put_port_mixer),
  12081. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12083. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12084. msm_routing_get_port_mixer,
  12085. msm_routing_put_port_mixer),
  12086. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12087. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12088. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12089. msm_routing_get_port_mixer,
  12090. msm_routing_put_port_mixer),
  12091. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12092. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12093. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12094. msm_routing_get_port_mixer,
  12095. msm_routing_put_port_mixer),
  12096. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12097. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12098. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12099. msm_routing_get_port_mixer,
  12100. msm_routing_put_port_mixer),
  12101. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12103. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12104. msm_routing_get_port_mixer,
  12105. msm_routing_put_port_mixer),
  12106. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12107. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12108. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12109. msm_routing_get_port_mixer,
  12110. msm_routing_put_port_mixer),
  12111. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12112. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12113. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12114. msm_routing_get_port_mixer,
  12115. msm_routing_put_port_mixer),
  12116. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12117. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12118. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12119. msm_routing_get_port_mixer,
  12120. msm_routing_put_port_mixer),
  12121. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12123. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12124. msm_routing_get_port_mixer,
  12125. msm_routing_put_port_mixer),
  12126. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12127. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12128. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12129. msm_routing_get_port_mixer,
  12130. msm_routing_put_port_mixer),
  12131. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12132. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12133. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12134. msm_routing_get_port_mixer,
  12135. msm_routing_put_port_mixer),
  12136. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12137. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12138. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12139. msm_routing_get_port_mixer,
  12140. msm_routing_put_port_mixer),
  12141. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12143. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12144. msm_routing_get_port_mixer,
  12145. msm_routing_put_port_mixer),
  12146. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12147. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  12148. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12149. msm_routing_get_port_mixer,
  12150. msm_routing_put_port_mixer),
  12151. };
  12152. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  12153. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12155. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12156. msm_routing_get_port_mixer,
  12157. msm_routing_put_port_mixer),
  12158. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12159. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12160. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12161. msm_routing_get_port_mixer,
  12162. msm_routing_put_port_mixer),
  12163. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12165. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12166. msm_routing_get_port_mixer,
  12167. msm_routing_put_port_mixer),
  12168. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12169. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12170. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12171. msm_routing_get_port_mixer,
  12172. msm_routing_put_port_mixer),
  12173. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12174. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12175. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12176. msm_routing_get_port_mixer,
  12177. msm_routing_put_port_mixer),
  12178. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12179. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12180. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12181. msm_routing_get_port_mixer,
  12182. msm_routing_put_port_mixer),
  12183. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12185. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12186. msm_routing_get_port_mixer,
  12187. msm_routing_put_port_mixer),
  12188. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12189. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12190. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12191. msm_routing_get_port_mixer,
  12192. msm_routing_put_port_mixer),
  12193. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12194. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12195. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  12196. msm_routing_get_port_mixer,
  12197. msm_routing_put_port_mixer),
  12198. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12199. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12200. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  12201. msm_routing_get_port_mixer,
  12202. msm_routing_put_port_mixer),
  12203. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12205. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  12206. msm_routing_get_port_mixer,
  12207. msm_routing_put_port_mixer),
  12208. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12209. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12210. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  12211. msm_routing_get_port_mixer,
  12212. msm_routing_put_port_mixer),
  12213. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12214. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12215. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12216. msm_routing_get_port_mixer,
  12217. msm_routing_put_port_mixer),
  12218. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12219. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12220. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12221. msm_routing_get_port_mixer,
  12222. msm_routing_put_port_mixer),
  12223. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12225. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12226. msm_routing_get_port_mixer,
  12227. msm_routing_put_port_mixer),
  12228. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12229. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12230. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12231. msm_routing_get_port_mixer,
  12232. msm_routing_put_port_mixer),
  12233. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12234. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12235. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12236. msm_routing_get_port_mixer,
  12237. msm_routing_put_port_mixer),
  12238. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12239. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12240. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12241. msm_routing_get_port_mixer,
  12242. msm_routing_put_port_mixer),
  12243. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12245. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12246. msm_routing_get_port_mixer,
  12247. msm_routing_put_port_mixer),
  12248. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12249. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  12250. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12251. msm_routing_get_port_mixer,
  12252. msm_routing_put_port_mixer),
  12253. };
  12254. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  12255. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12257. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12258. msm_routing_get_port_mixer,
  12259. msm_routing_put_port_mixer),
  12260. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12261. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12262. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12263. msm_routing_get_port_mixer,
  12264. msm_routing_put_port_mixer),
  12265. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12266. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12267. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12268. msm_routing_get_port_mixer,
  12269. msm_routing_put_port_mixer),
  12270. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12271. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12272. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12273. msm_routing_get_port_mixer,
  12274. msm_routing_put_port_mixer),
  12275. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12277. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12278. msm_routing_get_port_mixer,
  12279. msm_routing_put_port_mixer),
  12280. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12281. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12282. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12283. msm_routing_get_port_mixer,
  12284. msm_routing_put_port_mixer),
  12285. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12286. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12287. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12288. msm_routing_get_port_mixer,
  12289. msm_routing_put_port_mixer),
  12290. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12291. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12292. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12293. msm_routing_get_port_mixer,
  12294. msm_routing_put_port_mixer),
  12295. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12297. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12298. msm_routing_get_port_mixer,
  12299. msm_routing_put_port_mixer),
  12300. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12301. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12302. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12303. msm_routing_get_port_mixer,
  12304. msm_routing_put_port_mixer),
  12305. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12306. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12307. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12308. msm_routing_get_port_mixer,
  12309. msm_routing_put_port_mixer),
  12310. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12311. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12312. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12313. msm_routing_get_port_mixer,
  12314. msm_routing_put_port_mixer),
  12315. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12317. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12318. msm_routing_get_port_mixer,
  12319. msm_routing_put_port_mixer),
  12320. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12321. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12322. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12323. msm_routing_get_port_mixer,
  12324. msm_routing_put_port_mixer),
  12325. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12326. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12327. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12328. msm_routing_get_port_mixer,
  12329. msm_routing_put_port_mixer),
  12330. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12331. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12332. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12333. msm_routing_get_port_mixer,
  12334. msm_routing_put_port_mixer),
  12335. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12337. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12338. msm_routing_get_port_mixer,
  12339. msm_routing_put_port_mixer),
  12340. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12341. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12342. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12343. msm_routing_get_port_mixer,
  12344. msm_routing_put_port_mixer),
  12345. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12346. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12347. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12348. msm_routing_get_port_mixer,
  12349. msm_routing_put_port_mixer),
  12350. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12351. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  12352. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12353. msm_routing_get_port_mixer,
  12354. msm_routing_put_port_mixer),
  12355. };
  12356. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  12357. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12358. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12359. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12360. msm_routing_get_port_mixer,
  12361. msm_routing_put_port_mixer),
  12362. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12363. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12364. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12365. msm_routing_get_port_mixer,
  12366. msm_routing_put_port_mixer),
  12367. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12369. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12370. msm_routing_get_port_mixer,
  12371. msm_routing_put_port_mixer),
  12372. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12373. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12374. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12375. msm_routing_get_port_mixer,
  12376. msm_routing_put_port_mixer),
  12377. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12379. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12380. msm_routing_get_port_mixer,
  12381. msm_routing_put_port_mixer),
  12382. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12383. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12384. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12385. msm_routing_get_port_mixer,
  12386. msm_routing_put_port_mixer),
  12387. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12388. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12389. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12390. msm_routing_get_port_mixer,
  12391. msm_routing_put_port_mixer),
  12392. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12393. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12394. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12395. msm_routing_get_port_mixer,
  12396. msm_routing_put_port_mixer),
  12397. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12399. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12400. msm_routing_get_port_mixer,
  12401. msm_routing_put_port_mixer),
  12402. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12403. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12404. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12405. msm_routing_get_port_mixer,
  12406. msm_routing_put_port_mixer),
  12407. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12408. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12409. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12410. msm_routing_get_port_mixer,
  12411. msm_routing_put_port_mixer),
  12412. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12413. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12414. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12415. msm_routing_get_port_mixer,
  12416. msm_routing_put_port_mixer),
  12417. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12419. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12420. msm_routing_get_port_mixer,
  12421. msm_routing_put_port_mixer),
  12422. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12423. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12424. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12425. msm_routing_get_port_mixer,
  12426. msm_routing_put_port_mixer),
  12427. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12428. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12429. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12430. msm_routing_get_port_mixer,
  12431. msm_routing_put_port_mixer),
  12432. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12433. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12434. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12435. msm_routing_get_port_mixer,
  12436. msm_routing_put_port_mixer),
  12437. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12439. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12440. msm_routing_get_port_mixer,
  12441. msm_routing_put_port_mixer),
  12442. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12443. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12444. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12445. msm_routing_get_port_mixer,
  12446. msm_routing_put_port_mixer),
  12447. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12448. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12449. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12450. msm_routing_get_port_mixer,
  12451. msm_routing_put_port_mixer),
  12452. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12453. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  12454. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12455. msm_routing_get_port_mixer,
  12456. msm_routing_put_port_mixer),
  12457. };
  12458. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  12459. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12460. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12461. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12462. msm_routing_get_port_mixer,
  12463. msm_routing_put_port_mixer),
  12464. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12465. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12466. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12467. msm_routing_get_port_mixer,
  12468. msm_routing_put_port_mixer),
  12469. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12471. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12472. msm_routing_get_port_mixer,
  12473. msm_routing_put_port_mixer),
  12474. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12475. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12476. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12477. msm_routing_get_port_mixer,
  12478. msm_routing_put_port_mixer),
  12479. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12480. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12481. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12482. msm_routing_get_port_mixer,
  12483. msm_routing_put_port_mixer),
  12484. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12485. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12486. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12487. msm_routing_get_port_mixer,
  12488. msm_routing_put_port_mixer),
  12489. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12491. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12492. msm_routing_get_port_mixer,
  12493. msm_routing_put_port_mixer),
  12494. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12495. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12496. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12497. msm_routing_get_port_mixer,
  12498. msm_routing_put_port_mixer),
  12499. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12500. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12501. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12502. msm_routing_get_port_mixer,
  12503. msm_routing_put_port_mixer),
  12504. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12505. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12506. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12507. msm_routing_get_port_mixer,
  12508. msm_routing_put_port_mixer),
  12509. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12511. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12512. msm_routing_get_port_mixer,
  12513. msm_routing_put_port_mixer),
  12514. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12515. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12516. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12517. msm_routing_get_port_mixer,
  12518. msm_routing_put_port_mixer),
  12519. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12520. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12521. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12522. msm_routing_get_port_mixer,
  12523. msm_routing_put_port_mixer),
  12524. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12525. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12526. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12527. msm_routing_get_port_mixer,
  12528. msm_routing_put_port_mixer),
  12529. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12531. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12532. msm_routing_get_port_mixer,
  12533. msm_routing_put_port_mixer),
  12534. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12535. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12536. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12537. msm_routing_get_port_mixer,
  12538. msm_routing_put_port_mixer),
  12539. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12540. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12541. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12542. msm_routing_get_port_mixer,
  12543. msm_routing_put_port_mixer),
  12544. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12545. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12546. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12547. msm_routing_get_port_mixer,
  12548. msm_routing_put_port_mixer),
  12549. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12551. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12552. msm_routing_get_port_mixer,
  12553. msm_routing_put_port_mixer),
  12554. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12555. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  12556. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12557. msm_routing_get_port_mixer,
  12558. msm_routing_put_port_mixer),
  12559. };
  12560. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  12561. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12563. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12564. msm_routing_get_port_mixer,
  12565. msm_routing_put_port_mixer),
  12566. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12567. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12568. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12569. msm_routing_get_port_mixer,
  12570. msm_routing_put_port_mixer),
  12571. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12572. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12573. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  12574. msm_routing_get_port_mixer,
  12575. msm_routing_put_port_mixer),
  12576. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12577. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12578. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12579. msm_routing_get_port_mixer,
  12580. msm_routing_put_port_mixer),
  12581. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12583. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12584. msm_routing_get_port_mixer,
  12585. msm_routing_put_port_mixer),
  12586. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12587. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12588. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12589. msm_routing_get_port_mixer,
  12590. msm_routing_put_port_mixer),
  12591. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12592. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12593. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12594. msm_routing_get_port_mixer,
  12595. msm_routing_put_port_mixer),
  12596. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12597. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12598. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12599. msm_routing_get_port_mixer,
  12600. msm_routing_put_port_mixer),
  12601. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12603. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12604. msm_routing_get_port_mixer,
  12605. msm_routing_put_port_mixer),
  12606. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12607. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12608. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12609. msm_routing_get_port_mixer,
  12610. msm_routing_put_port_mixer),
  12611. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12612. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12613. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12614. msm_routing_get_port_mixer,
  12615. msm_routing_put_port_mixer),
  12616. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12617. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12618. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12619. msm_routing_get_port_mixer,
  12620. msm_routing_put_port_mixer),
  12621. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12622. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12623. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12624. msm_routing_get_port_mixer,
  12625. msm_routing_put_port_mixer),
  12626. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12627. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12628. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12629. msm_routing_get_port_mixer,
  12630. msm_routing_put_port_mixer),
  12631. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12633. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12634. msm_routing_get_port_mixer,
  12635. msm_routing_put_port_mixer),
  12636. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12637. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12638. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12639. msm_routing_get_port_mixer,
  12640. msm_routing_put_port_mixer),
  12641. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12642. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12643. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12644. msm_routing_get_port_mixer,
  12645. msm_routing_put_port_mixer),
  12646. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12647. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12648. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12649. msm_routing_get_port_mixer,
  12650. msm_routing_put_port_mixer),
  12651. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12653. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12654. msm_routing_get_port_mixer,
  12655. msm_routing_put_port_mixer),
  12656. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12657. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  12658. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12659. msm_routing_get_port_mixer,
  12660. msm_routing_put_port_mixer),
  12661. };
  12662. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  12663. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12665. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12666. msm_routing_get_port_mixer,
  12667. msm_routing_put_port_mixer),
  12668. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12669. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12670. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12671. msm_routing_get_port_mixer,
  12672. msm_routing_put_port_mixer),
  12673. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12674. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12675. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12676. msm_routing_get_port_mixer,
  12677. msm_routing_put_port_mixer),
  12678. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12679. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12680. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12681. msm_routing_get_port_mixer,
  12682. msm_routing_put_port_mixer),
  12683. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12685. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12686. msm_routing_get_port_mixer,
  12687. msm_routing_put_port_mixer),
  12688. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12689. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12690. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12691. msm_routing_get_port_mixer,
  12692. msm_routing_put_port_mixer),
  12693. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12694. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12695. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12696. msm_routing_get_port_mixer,
  12697. msm_routing_put_port_mixer),
  12698. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12699. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12700. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12701. msm_routing_get_port_mixer,
  12702. msm_routing_put_port_mixer),
  12703. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12705. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12706. msm_routing_get_port_mixer,
  12707. msm_routing_put_port_mixer),
  12708. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12709. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12710. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12711. msm_routing_get_port_mixer,
  12712. msm_routing_put_port_mixer),
  12713. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12714. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12715. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12716. msm_routing_get_port_mixer,
  12717. msm_routing_put_port_mixer),
  12718. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12719. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12720. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12721. msm_routing_get_port_mixer,
  12722. msm_routing_put_port_mixer),
  12723. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12725. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12726. msm_routing_get_port_mixer,
  12727. msm_routing_put_port_mixer),
  12728. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12729. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12730. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12731. msm_routing_get_port_mixer,
  12732. msm_routing_put_port_mixer),
  12733. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12734. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12735. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12736. msm_routing_get_port_mixer,
  12737. msm_routing_put_port_mixer),
  12738. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12739. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12740. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12741. msm_routing_get_port_mixer,
  12742. msm_routing_put_port_mixer),
  12743. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12745. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12746. msm_routing_get_port_mixer,
  12747. msm_routing_put_port_mixer),
  12748. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12749. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12750. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12751. msm_routing_get_port_mixer,
  12752. msm_routing_put_port_mixer),
  12753. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12754. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12755. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12756. msm_routing_get_port_mixer,
  12757. msm_routing_put_port_mixer),
  12758. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12759. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  12760. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12761. msm_routing_get_port_mixer,
  12762. msm_routing_put_port_mixer),
  12763. };
  12764. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  12765. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12766. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12767. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12768. msm_routing_get_port_mixer,
  12769. msm_routing_put_port_mixer),
  12770. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12771. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12772. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12773. msm_routing_get_port_mixer,
  12774. msm_routing_put_port_mixer),
  12775. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12777. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12778. msm_routing_get_port_mixer,
  12779. msm_routing_put_port_mixer),
  12780. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12781. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12782. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12783. msm_routing_get_port_mixer,
  12784. msm_routing_put_port_mixer),
  12785. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12786. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12787. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12788. msm_routing_get_port_mixer,
  12789. msm_routing_put_port_mixer),
  12790. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12791. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12792. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12793. msm_routing_get_port_mixer,
  12794. msm_routing_put_port_mixer),
  12795. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12797. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12798. msm_routing_get_port_mixer,
  12799. msm_routing_put_port_mixer),
  12800. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12801. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12802. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12803. msm_routing_get_port_mixer,
  12804. msm_routing_put_port_mixer),
  12805. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12806. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12807. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12808. msm_routing_get_port_mixer,
  12809. msm_routing_put_port_mixer),
  12810. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12811. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12812. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12813. msm_routing_get_port_mixer,
  12814. msm_routing_put_port_mixer),
  12815. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12817. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12818. msm_routing_get_port_mixer,
  12819. msm_routing_put_port_mixer),
  12820. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12821. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12822. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12823. msm_routing_get_port_mixer,
  12824. msm_routing_put_port_mixer),
  12825. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12826. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12827. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12828. msm_routing_get_port_mixer,
  12829. msm_routing_put_port_mixer),
  12830. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12831. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12832. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12833. msm_routing_get_port_mixer,
  12834. msm_routing_put_port_mixer),
  12835. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12837. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12838. msm_routing_get_port_mixer,
  12839. msm_routing_put_port_mixer),
  12840. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12841. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12842. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12843. msm_routing_get_port_mixer,
  12844. msm_routing_put_port_mixer),
  12845. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12847. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12848. msm_routing_get_port_mixer,
  12849. msm_routing_put_port_mixer),
  12850. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12851. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12852. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12853. msm_routing_get_port_mixer,
  12854. msm_routing_put_port_mixer),
  12855. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12856. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12857. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12858. msm_routing_get_port_mixer,
  12859. msm_routing_put_port_mixer),
  12860. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12861. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  12862. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12863. msm_routing_get_port_mixer,
  12864. msm_routing_put_port_mixer),
  12865. };
  12866. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  12867. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12868. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12869. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12870. msm_routing_get_port_mixer,
  12871. msm_routing_put_port_mixer),
  12872. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12873. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12874. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12875. msm_routing_get_port_mixer,
  12876. msm_routing_put_port_mixer),
  12877. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12879. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12880. msm_routing_get_port_mixer,
  12881. msm_routing_put_port_mixer),
  12882. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12883. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12884. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12885. msm_routing_get_port_mixer,
  12886. msm_routing_put_port_mixer),
  12887. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12888. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12889. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12890. msm_routing_get_port_mixer,
  12891. msm_routing_put_port_mixer),
  12892. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12893. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12894. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12895. msm_routing_get_port_mixer,
  12896. msm_routing_put_port_mixer),
  12897. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12899. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  12900. msm_routing_get_port_mixer,
  12901. msm_routing_put_port_mixer),
  12902. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12903. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12904. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  12905. msm_routing_get_port_mixer,
  12906. msm_routing_put_port_mixer),
  12907. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12908. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12909. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  12910. msm_routing_get_port_mixer,
  12911. msm_routing_put_port_mixer),
  12912. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12913. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12914. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  12915. msm_routing_get_port_mixer,
  12916. msm_routing_put_port_mixer),
  12917. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12919. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  12920. msm_routing_get_port_mixer,
  12921. msm_routing_put_port_mixer),
  12922. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12923. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12924. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  12925. msm_routing_get_port_mixer,
  12926. msm_routing_put_port_mixer),
  12927. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12928. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12929. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  12930. msm_routing_get_port_mixer,
  12931. msm_routing_put_port_mixer),
  12932. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12933. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12934. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  12935. msm_routing_get_port_mixer,
  12936. msm_routing_put_port_mixer),
  12937. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12939. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  12940. msm_routing_get_port_mixer,
  12941. msm_routing_put_port_mixer),
  12942. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12943. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12944. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  12945. msm_routing_get_port_mixer,
  12946. msm_routing_put_port_mixer),
  12947. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12948. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12949. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  12950. msm_routing_get_port_mixer,
  12951. msm_routing_put_port_mixer),
  12952. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12953. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12954. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  12955. msm_routing_get_port_mixer,
  12956. msm_routing_put_port_mixer),
  12957. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12959. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  12960. msm_routing_get_port_mixer,
  12961. msm_routing_put_port_mixer),
  12962. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12963. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  12964. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  12965. msm_routing_get_port_mixer,
  12966. msm_routing_put_port_mixer),
  12967. };
  12968. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  12969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12971. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  12972. msm_routing_get_port_mixer,
  12973. msm_routing_put_port_mixer),
  12974. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12975. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12976. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  12977. msm_routing_get_port_mixer,
  12978. msm_routing_put_port_mixer),
  12979. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12980. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12981. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  12982. msm_routing_get_port_mixer,
  12983. msm_routing_put_port_mixer),
  12984. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12985. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12986. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  12987. msm_routing_get_port_mixer,
  12988. msm_routing_put_port_mixer),
  12989. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12991. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  12992. msm_routing_get_port_mixer,
  12993. msm_routing_put_port_mixer),
  12994. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12995. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  12996. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  12997. msm_routing_get_port_mixer,
  12998. msm_routing_put_port_mixer),
  12999. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13000. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13001. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13002. msm_routing_get_port_mixer,
  13003. msm_routing_put_port_mixer),
  13004. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13005. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13006. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13007. msm_routing_get_port_mixer,
  13008. msm_routing_put_port_mixer),
  13009. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13011. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13012. msm_routing_get_port_mixer,
  13013. msm_routing_put_port_mixer),
  13014. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13015. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13016. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13017. msm_routing_get_port_mixer,
  13018. msm_routing_put_port_mixer),
  13019. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13020. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13021. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13022. msm_routing_get_port_mixer,
  13023. msm_routing_put_port_mixer),
  13024. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13025. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13026. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13027. msm_routing_get_port_mixer,
  13028. msm_routing_put_port_mixer),
  13029. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13031. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13032. msm_routing_get_port_mixer,
  13033. msm_routing_put_port_mixer),
  13034. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13035. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13036. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13037. msm_routing_get_port_mixer,
  13038. msm_routing_put_port_mixer),
  13039. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13040. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13041. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13042. msm_routing_get_port_mixer,
  13043. msm_routing_put_port_mixer),
  13044. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13045. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13046. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13047. msm_routing_get_port_mixer,
  13048. msm_routing_put_port_mixer),
  13049. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13051. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13052. msm_routing_get_port_mixer,
  13053. msm_routing_put_port_mixer),
  13054. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13055. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13056. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13057. msm_routing_get_port_mixer,
  13058. msm_routing_put_port_mixer),
  13059. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13060. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13061. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13062. msm_routing_get_port_mixer,
  13063. msm_routing_put_port_mixer),
  13064. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13065. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  13066. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13067. msm_routing_get_port_mixer,
  13068. msm_routing_put_port_mixer),
  13069. };
  13070. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  13071. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13073. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13074. msm_routing_get_port_mixer,
  13075. msm_routing_put_port_mixer),
  13076. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13077. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13078. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13079. msm_routing_get_port_mixer,
  13080. msm_routing_put_port_mixer),
  13081. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13082. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13083. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13084. msm_routing_get_port_mixer,
  13085. msm_routing_put_port_mixer),
  13086. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13087. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13088. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13089. msm_routing_get_port_mixer,
  13090. msm_routing_put_port_mixer),
  13091. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13093. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13094. msm_routing_get_port_mixer,
  13095. msm_routing_put_port_mixer),
  13096. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13097. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13098. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13099. msm_routing_get_port_mixer,
  13100. msm_routing_put_port_mixer),
  13101. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13102. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13103. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13104. msm_routing_get_port_mixer,
  13105. msm_routing_put_port_mixer),
  13106. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13107. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13108. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13109. msm_routing_get_port_mixer,
  13110. msm_routing_put_port_mixer),
  13111. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13113. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13114. msm_routing_get_port_mixer,
  13115. msm_routing_put_port_mixer),
  13116. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13117. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13118. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13119. msm_routing_get_port_mixer,
  13120. msm_routing_put_port_mixer),
  13121. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13122. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13123. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13124. msm_routing_get_port_mixer,
  13125. msm_routing_put_port_mixer),
  13126. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13127. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13128. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13129. msm_routing_get_port_mixer,
  13130. msm_routing_put_port_mixer),
  13131. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13133. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13134. msm_routing_get_port_mixer,
  13135. msm_routing_put_port_mixer),
  13136. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13137. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13138. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13139. msm_routing_get_port_mixer,
  13140. msm_routing_put_port_mixer),
  13141. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13142. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13143. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13144. msm_routing_get_port_mixer,
  13145. msm_routing_put_port_mixer),
  13146. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13147. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13148. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13149. msm_routing_get_port_mixer,
  13150. msm_routing_put_port_mixer),
  13151. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13153. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13154. msm_routing_get_port_mixer,
  13155. msm_routing_put_port_mixer),
  13156. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13157. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13158. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13159. msm_routing_get_port_mixer,
  13160. msm_routing_put_port_mixer),
  13161. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13162. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13163. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13164. msm_routing_get_port_mixer,
  13165. msm_routing_put_port_mixer),
  13166. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13167. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  13168. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13169. msm_routing_get_port_mixer,
  13170. msm_routing_put_port_mixer),
  13171. };
  13172. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  13173. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13174. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13175. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13176. msm_routing_get_port_mixer,
  13177. msm_routing_put_port_mixer),
  13178. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13179. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13180. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13181. msm_routing_get_port_mixer,
  13182. msm_routing_put_port_mixer),
  13183. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13185. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13186. msm_routing_get_port_mixer,
  13187. msm_routing_put_port_mixer),
  13188. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13189. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13190. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13191. msm_routing_get_port_mixer,
  13192. msm_routing_put_port_mixer),
  13193. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13194. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13195. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13196. msm_routing_get_port_mixer,
  13197. msm_routing_put_port_mixer),
  13198. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13199. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13200. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13201. msm_routing_get_port_mixer,
  13202. msm_routing_put_port_mixer),
  13203. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13205. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13206. msm_routing_get_port_mixer,
  13207. msm_routing_put_port_mixer),
  13208. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13209. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13210. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13211. msm_routing_get_port_mixer,
  13212. msm_routing_put_port_mixer),
  13213. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13214. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13215. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13216. msm_routing_get_port_mixer,
  13217. msm_routing_put_port_mixer),
  13218. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13219. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13220. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13221. msm_routing_get_port_mixer,
  13222. msm_routing_put_port_mixer),
  13223. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13225. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13226. msm_routing_get_port_mixer,
  13227. msm_routing_put_port_mixer),
  13228. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13229. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13230. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13231. msm_routing_get_port_mixer,
  13232. msm_routing_put_port_mixer),
  13233. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13234. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13235. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13236. msm_routing_get_port_mixer,
  13237. msm_routing_put_port_mixer),
  13238. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13239. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13240. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13241. msm_routing_get_port_mixer,
  13242. msm_routing_put_port_mixer),
  13243. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13244. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13245. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13246. msm_routing_get_port_mixer,
  13247. msm_routing_put_port_mixer),
  13248. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13249. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13250. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13251. msm_routing_get_port_mixer,
  13252. msm_routing_put_port_mixer),
  13253. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13254. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13255. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13256. msm_routing_get_port_mixer,
  13257. msm_routing_put_port_mixer),
  13258. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13259. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13260. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13261. msm_routing_get_port_mixer,
  13262. msm_routing_put_port_mixer),
  13263. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13264. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13265. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13266. msm_routing_get_port_mixer,
  13267. msm_routing_put_port_mixer),
  13268. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13269. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  13270. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13271. msm_routing_get_port_mixer,
  13272. msm_routing_put_port_mixer),
  13273. };
  13274. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  13275. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13276. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13277. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13278. msm_routing_get_port_mixer,
  13279. msm_routing_put_port_mixer),
  13280. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13281. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13282. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13283. msm_routing_get_port_mixer,
  13284. msm_routing_put_port_mixer),
  13285. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13286. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13287. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13288. msm_routing_get_port_mixer,
  13289. msm_routing_put_port_mixer),
  13290. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13291. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13292. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13293. msm_routing_get_port_mixer,
  13294. msm_routing_put_port_mixer),
  13295. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13297. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13298. msm_routing_get_port_mixer,
  13299. msm_routing_put_port_mixer),
  13300. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13301. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13302. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13303. msm_routing_get_port_mixer,
  13304. msm_routing_put_port_mixer),
  13305. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13306. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13307. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13308. msm_routing_get_port_mixer,
  13309. msm_routing_put_port_mixer),
  13310. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13311. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13312. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13313. msm_routing_get_port_mixer,
  13314. msm_routing_put_port_mixer),
  13315. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13317. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13318. msm_routing_get_port_mixer,
  13319. msm_routing_put_port_mixer),
  13320. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13321. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13322. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13323. msm_routing_get_port_mixer,
  13324. msm_routing_put_port_mixer),
  13325. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13326. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13327. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13328. msm_routing_get_port_mixer,
  13329. msm_routing_put_port_mixer),
  13330. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13331. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13332. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13333. msm_routing_get_port_mixer,
  13334. msm_routing_put_port_mixer),
  13335. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13337. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13338. msm_routing_get_port_mixer,
  13339. msm_routing_put_port_mixer),
  13340. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13341. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13342. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13343. msm_routing_get_port_mixer,
  13344. msm_routing_put_port_mixer),
  13345. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13346. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13347. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13348. msm_routing_get_port_mixer,
  13349. msm_routing_put_port_mixer),
  13350. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13351. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13352. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13353. msm_routing_get_port_mixer,
  13354. msm_routing_put_port_mixer),
  13355. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13357. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13358. msm_routing_get_port_mixer,
  13359. msm_routing_put_port_mixer),
  13360. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13361. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13362. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13363. msm_routing_get_port_mixer,
  13364. msm_routing_put_port_mixer),
  13365. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13366. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13367. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13368. msm_routing_get_port_mixer,
  13369. msm_routing_put_port_mixer),
  13370. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13371. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  13372. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13373. msm_routing_get_port_mixer,
  13374. msm_routing_put_port_mixer),
  13375. };
  13376. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  13377. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13378. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13379. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  13380. msm_routing_get_port_mixer,
  13381. msm_routing_put_port_mixer),
  13382. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13383. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13384. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  13385. msm_routing_get_port_mixer,
  13386. msm_routing_put_port_mixer),
  13387. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13389. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  13390. msm_routing_get_port_mixer,
  13391. msm_routing_put_port_mixer),
  13392. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13393. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13394. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  13395. msm_routing_get_port_mixer,
  13396. msm_routing_put_port_mixer),
  13397. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13398. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13399. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  13400. msm_routing_get_port_mixer,
  13401. msm_routing_put_port_mixer),
  13402. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13403. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13404. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  13405. msm_routing_get_port_mixer,
  13406. msm_routing_put_port_mixer),
  13407. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13409. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  13410. msm_routing_get_port_mixer,
  13411. msm_routing_put_port_mixer),
  13412. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  13413. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13414. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  13415. msm_routing_get_port_mixer,
  13416. msm_routing_put_port_mixer),
  13417. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13418. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13419. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  13420. msm_routing_get_port_mixer,
  13421. msm_routing_put_port_mixer),
  13422. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13423. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13424. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  13425. msm_routing_get_port_mixer,
  13426. msm_routing_put_port_mixer),
  13427. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13429. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  13430. msm_routing_get_port_mixer,
  13431. msm_routing_put_port_mixer),
  13432. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13433. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13434. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  13435. msm_routing_get_port_mixer,
  13436. msm_routing_put_port_mixer),
  13437. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13438. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13439. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  13440. msm_routing_get_port_mixer,
  13441. msm_routing_put_port_mixer),
  13442. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13443. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13444. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  13445. msm_routing_get_port_mixer,
  13446. msm_routing_put_port_mixer),
  13447. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13448. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13449. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  13450. msm_routing_get_port_mixer,
  13451. msm_routing_put_port_mixer),
  13452. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13453. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13454. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  13455. msm_routing_get_port_mixer,
  13456. msm_routing_put_port_mixer),
  13457. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13459. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  13460. msm_routing_get_port_mixer,
  13461. msm_routing_put_port_mixer),
  13462. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13463. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13464. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  13465. msm_routing_get_port_mixer,
  13466. msm_routing_put_port_mixer),
  13467. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13468. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13469. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  13470. msm_routing_get_port_mixer,
  13471. msm_routing_put_port_mixer),
  13472. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13473. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  13474. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  13475. msm_routing_get_port_mixer,
  13476. msm_routing_put_port_mixer),
  13477. };
  13478. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  13479. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13480. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13481. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13482. msm_routing_put_port_mixer),
  13483. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13484. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13485. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13486. msm_routing_put_port_mixer),
  13487. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13488. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13489. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13490. msm_routing_put_port_mixer),
  13491. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13492. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13493. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13494. msm_routing_put_port_mixer),
  13495. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13496. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13497. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13498. msm_routing_put_port_mixer),
  13499. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13500. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13501. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13502. msm_routing_put_port_mixer),
  13503. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13504. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  13505. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13506. msm_routing_put_port_mixer),
  13507. };
  13508. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  13509. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13511. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13512. msm_routing_put_port_mixer),
  13513. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13515. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13516. msm_routing_put_port_mixer),
  13517. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13519. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13520. msm_routing_put_port_mixer),
  13521. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13523. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13524. msm_routing_put_port_mixer),
  13525. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13527. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  13528. msm_routing_put_port_mixer),
  13529. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13531. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  13532. msm_routing_put_port_mixer),
  13533. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13535. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  13536. msm_routing_put_port_mixer),
  13537. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13539. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  13540. msm_routing_put_port_mixer),
  13541. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  13543. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  13544. msm_routing_put_port_mixer),
  13545. };
  13546. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  13547. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13548. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13549. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13550. msm_routing_put_listen_mixer),
  13551. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13552. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13553. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13554. msm_routing_put_listen_mixer),
  13555. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13556. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13557. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13558. msm_routing_put_listen_mixer),
  13559. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13560. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13561. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13562. msm_routing_put_listen_mixer),
  13563. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13564. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13565. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13566. msm_routing_put_listen_mixer),
  13567. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13568. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13569. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13570. msm_routing_put_listen_mixer),
  13571. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13572. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13573. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13574. msm_routing_put_listen_mixer),
  13575. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13576. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13577. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13578. msm_routing_put_listen_mixer),
  13579. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13580. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13581. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13582. msm_routing_put_listen_mixer),
  13583. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13584. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13585. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  13586. msm_routing_put_listen_mixer),
  13587. };
  13588. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  13589. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13590. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13591. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13592. msm_routing_put_listen_mixer),
  13593. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  13594. SND_SOC_NOPM,
  13595. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13596. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13597. msm_routing_put_listen_mixer),
  13598. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13599. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13600. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13601. msm_routing_put_listen_mixer),
  13602. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13604. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13605. msm_routing_put_listen_mixer),
  13606. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13607. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13608. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13609. msm_routing_put_listen_mixer),
  13610. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13611. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13612. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13613. msm_routing_put_listen_mixer),
  13614. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13615. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13616. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13617. msm_routing_put_listen_mixer),
  13618. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13619. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13620. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13621. msm_routing_put_listen_mixer),
  13622. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13623. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13624. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13625. msm_routing_put_listen_mixer),
  13626. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13627. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13628. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  13629. msm_routing_put_listen_mixer),
  13630. };
  13631. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  13632. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13633. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13634. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13635. msm_routing_put_listen_mixer),
  13636. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13637. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13638. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13639. msm_routing_put_listen_mixer),
  13640. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13641. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13642. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13643. msm_routing_put_listen_mixer),
  13644. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13645. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13646. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13647. msm_routing_put_listen_mixer),
  13648. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13649. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13650. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13651. msm_routing_put_listen_mixer),
  13652. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13653. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13654. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13655. msm_routing_put_listen_mixer),
  13656. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13657. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13658. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13659. msm_routing_put_listen_mixer),
  13660. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13661. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13662. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13663. msm_routing_put_listen_mixer),
  13664. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13665. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13666. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13667. msm_routing_put_listen_mixer),
  13668. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13669. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13670. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  13671. msm_routing_put_listen_mixer),
  13672. };
  13673. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  13674. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13675. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13676. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13677. msm_routing_put_listen_mixer),
  13678. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13679. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13680. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13681. msm_routing_put_listen_mixer),
  13682. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13683. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13684. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13685. msm_routing_put_listen_mixer),
  13686. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13687. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13688. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13689. msm_routing_put_listen_mixer),
  13690. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13691. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13692. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13693. msm_routing_put_listen_mixer),
  13694. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13695. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13696. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13697. msm_routing_put_listen_mixer),
  13698. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13700. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13701. msm_routing_put_listen_mixer),
  13702. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13703. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13704. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13705. msm_routing_put_listen_mixer),
  13706. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13707. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13708. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13709. msm_routing_put_listen_mixer),
  13710. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13711. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13712. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  13713. msm_routing_put_listen_mixer),
  13714. };
  13715. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  13716. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13717. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13718. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13719. msm_routing_put_listen_mixer),
  13720. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13721. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13722. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13723. msm_routing_put_listen_mixer),
  13724. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13725. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13726. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13727. msm_routing_put_listen_mixer),
  13728. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13729. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13730. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13731. msm_routing_put_listen_mixer),
  13732. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13733. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13734. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13735. msm_routing_put_listen_mixer),
  13736. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13737. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13738. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13739. msm_routing_put_listen_mixer),
  13740. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13741. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13742. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13743. msm_routing_put_listen_mixer),
  13744. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13745. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13746. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13747. msm_routing_put_listen_mixer),
  13748. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13749. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13750. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13751. msm_routing_put_listen_mixer),
  13752. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13753. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13754. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  13755. msm_routing_put_listen_mixer),
  13756. };
  13757. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  13758. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13759. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13760. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13761. msm_routing_put_listen_mixer),
  13762. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13763. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13764. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13765. msm_routing_put_listen_mixer),
  13766. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13767. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13768. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13769. msm_routing_put_listen_mixer),
  13770. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13771. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13772. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13773. msm_routing_put_listen_mixer),
  13774. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13775. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13776. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13777. msm_routing_put_listen_mixer),
  13778. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13779. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13780. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13781. msm_routing_put_listen_mixer),
  13782. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13783. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13784. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13785. msm_routing_put_listen_mixer),
  13786. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13787. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13788. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13789. msm_routing_put_listen_mixer),
  13790. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13791. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13792. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13793. msm_routing_put_listen_mixer),
  13794. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13795. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13796. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  13797. msm_routing_put_listen_mixer),
  13798. };
  13799. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  13800. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13801. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13802. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13803. msm_routing_put_listen_mixer),
  13804. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13805. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13806. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13807. msm_routing_put_listen_mixer),
  13808. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13809. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13810. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13811. msm_routing_put_listen_mixer),
  13812. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13813. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13814. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13815. msm_routing_put_listen_mixer),
  13816. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13817. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13818. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13819. msm_routing_put_listen_mixer),
  13820. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13821. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13822. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13823. msm_routing_put_listen_mixer),
  13824. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13826. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13827. msm_routing_put_listen_mixer),
  13828. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13829. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13830. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13831. msm_routing_put_listen_mixer),
  13832. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13833. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13834. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13835. msm_routing_put_listen_mixer),
  13836. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13837. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13838. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  13839. msm_routing_put_listen_mixer),
  13840. };
  13841. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  13842. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  13843. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13844. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13845. msm_routing_put_listen_mixer),
  13846. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  13847. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13848. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13849. msm_routing_put_listen_mixer),
  13850. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  13851. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  13852. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13853. msm_routing_put_listen_mixer),
  13854. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  13855. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  13856. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13857. msm_routing_put_listen_mixer),
  13858. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  13859. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  13860. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13861. msm_routing_put_listen_mixer),
  13862. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13863. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13864. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13865. msm_routing_put_listen_mixer),
  13866. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13867. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13868. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13869. msm_routing_put_listen_mixer),
  13870. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13871. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13872. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13873. msm_routing_put_listen_mixer),
  13874. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13875. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13876. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13877. msm_routing_put_listen_mixer),
  13878. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13879. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13880. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  13881. msm_routing_put_listen_mixer),
  13882. };
  13883. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  13884. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13885. 0, 1, 0, msm_routing_get_switch_mixer,
  13886. msm_routing_put_switch_mixer);
  13887. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  13888. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13889. 0, 1, 0, msm_routing_get_switch_mixer,
  13890. msm_routing_put_switch_mixer);
  13891. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  13892. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13893. 0, 1, 0, msm_routing_get_switch_mixer,
  13894. msm_routing_put_switch_mixer);
  13895. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  13896. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13897. 0, 1, 0, msm_routing_get_switch_mixer,
  13898. msm_routing_put_switch_mixer);
  13899. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  13900. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13901. 0, 1, 0, msm_routing_get_switch_mixer,
  13902. msm_routing_put_switch_mixer);
  13903. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  13904. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13905. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  13906. msm_routing_put_fm_pcmrx_switch_mixer);
  13907. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  13908. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13909. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  13910. msm_routing_put_int0_mi2s_switch_mixer);
  13911. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  13912. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13913. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  13914. msm_routing_put_int4_mi2s_switch_mixer);
  13915. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  13916. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13917. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  13918. msm_routing_put_pri_mi2s_switch_mixer);
  13919. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  13920. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13921. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  13922. msm_routing_put_sec_mi2s_switch_mixer);
  13923. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  13924. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13925. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  13926. msm_routing_put_tert_mi2s_switch_mixer);
  13927. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  13928. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13929. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  13930. msm_routing_put_quat_mi2s_switch_mixer);
  13931. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  13932. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13933. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  13934. msm_routing_put_quin_mi2s_switch_mixer);
  13935. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  13936. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13937. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13938. msm_routing_put_hfp_switch_mixer);
  13939. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  13940. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13941. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13942. msm_routing_put_hfp_switch_mixer);
  13943. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  13944. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13945. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13946. msm_routing_put_hfp_switch_mixer);
  13947. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  13948. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13949. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  13950. msm_routing_put_hfp_switch_mixer);
  13951. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  13952. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13953. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  13954. msm_routing_put_usb_switch_mixer);
  13955. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  13956. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  13957. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  13958. msm_routing_a2dp_switch_mixer_put);
  13959. static const struct soc_enum lsm_port_enum =
  13960. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  13961. static const char * const lsm_func_text[] = {
  13962. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  13963. };
  13964. static const struct soc_enum lsm_func_enum =
  13965. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  13966. static const struct snd_kcontrol_new lsm_controls[] = {
  13967. /* kcontrol of lsm_function */
  13968. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13969. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13970. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13971. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13972. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13973. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13974. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13975. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13976. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13977. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13978. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13979. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13980. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13981. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13982. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13983. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13984. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  13985. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  13986. /* kcontrol of lsm_port */
  13987. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  13988. msm_routing_lsm_port_get,
  13989. msm_routing_lsm_port_put),
  13990. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  13991. msm_routing_lsm_port_get,
  13992. msm_routing_lsm_port_put),
  13993. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  13994. msm_routing_lsm_port_get,
  13995. msm_routing_lsm_port_put),
  13996. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  13997. msm_routing_lsm_port_get,
  13998. msm_routing_lsm_port_put),
  13999. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  14000. msm_routing_lsm_port_get,
  14001. msm_routing_lsm_port_put),
  14002. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  14003. msm_routing_lsm_port_get,
  14004. msm_routing_lsm_port_put),
  14005. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  14006. msm_routing_lsm_port_get,
  14007. msm_routing_lsm_port_put),
  14008. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  14009. msm_routing_lsm_port_get,
  14010. msm_routing_lsm_port_put),
  14011. };
  14012. static const char * const aanc_slim_0_rx_text[] = {
  14013. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  14014. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  14015. };
  14016. static const struct soc_enum aanc_slim_0_rx_enum =
  14017. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  14018. aanc_slim_0_rx_text);
  14019. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  14020. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  14021. msm_routing_slim_0_rx_aanc_mux_get,
  14022. msm_routing_slim_0_rx_aanc_mux_put)
  14023. };
  14024. static int msm_routing_get_stereo_to_custom_stereo_control(
  14025. struct snd_kcontrol *kcontrol,
  14026. struct snd_ctl_elem_value *ucontrol)
  14027. {
  14028. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  14029. return 0;
  14030. }
  14031. static int msm_routing_put_stereo_to_custom_stereo_control(
  14032. struct snd_kcontrol *kcontrol,
  14033. struct snd_ctl_elem_value *ucontrol)
  14034. {
  14035. int flag = 0, i = 0, rc = 0, idx = 0;
  14036. int be_index = 0, port_id, topo_id;
  14037. unsigned int session_id = 0;
  14038. uint16_t op_FL_ip_FL_weight = 0;
  14039. uint16_t op_FL_ip_FR_weight = 0;
  14040. uint16_t op_FR_ip_FL_weight = 0;
  14041. uint16_t op_FR_ip_FR_weight = 0;
  14042. flag = ucontrol->value.integer.value[0];
  14043. pr_debug("%s E flag %d\n", __func__, flag);
  14044. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  14045. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  14046. __func__, is_custom_stereo_on, flag);
  14047. return 0;
  14048. }
  14049. is_custom_stereo_on = flag ? true : false;
  14050. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  14051. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  14052. port_id = msm_bedais[be_index].port_id;
  14053. if (!msm_bedais[be_index].active)
  14054. continue;
  14055. if ((port_id != SLIMBUS_0_RX) &&
  14056. (port_id != RT_PROXY_PORT_001_RX) &&
  14057. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  14058. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  14059. continue;
  14060. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  14061. MSM_FRONTEND_DAI_MM_SIZE) {
  14062. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  14063. LEGACY_PCM_MODE)
  14064. goto skip_send_custom_stereo;
  14065. session_id =
  14066. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  14067. if (is_custom_stereo_on) {
  14068. op_FL_ip_FL_weight =
  14069. Q14_GAIN_ZERO_POINT_FIVE;
  14070. op_FL_ip_FR_weight =
  14071. Q14_GAIN_ZERO_POINT_FIVE;
  14072. op_FR_ip_FL_weight =
  14073. Q14_GAIN_ZERO_POINT_FIVE;
  14074. op_FR_ip_FR_weight =
  14075. Q14_GAIN_ZERO_POINT_FIVE;
  14076. } else {
  14077. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  14078. op_FL_ip_FR_weight = 0;
  14079. op_FR_ip_FL_weight = 0;
  14080. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  14081. }
  14082. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14083. unsigned long copp =
  14084. session_copp_map[i]
  14085. [SESSION_TYPE_RX][be_index];
  14086. if (!test_bit(idx, &copp))
  14087. goto skip_send_custom_stereo;
  14088. topo_id = adm_get_topology_for_port_copp_idx(
  14089. msm_bedais[be_index].port_id, idx);
  14090. if (topo_id < 0)
  14091. pr_debug("%s:Err:custom stereo topo %d",
  14092. __func__, topo_id);
  14093. pr_debug("idx %d\n", idx);
  14094. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  14095. rc = msm_ds2_dap_set_custom_stereo_onoff
  14096. (msm_bedais[be_index].port_id,
  14097. idx, is_custom_stereo_on);
  14098. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  14099. rc = dolby_dap_set_custom_stereo_onoff(
  14100. msm_bedais[be_index].port_id,
  14101. idx, is_custom_stereo_on);
  14102. else
  14103. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  14104. (msm_bedais[be_index].port_id,
  14105. idx, session_id,
  14106. op_FL_ip_FL_weight,
  14107. op_FL_ip_FR_weight,
  14108. op_FR_ip_FL_weight,
  14109. op_FR_ip_FR_weight);
  14110. if (rc < 0)
  14111. skip_send_custom_stereo:
  14112. pr_err("%s: err setting custom stereo\n",
  14113. __func__);
  14114. }
  14115. }
  14116. }
  14117. return 0;
  14118. }
  14119. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  14120. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  14121. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  14122. msm_routing_put_stereo_to_custom_stereo_control),
  14123. };
  14124. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14125. struct snd_ctl_elem_value *ucontrol)
  14126. {
  14127. return 0;
  14128. }
  14129. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  14130. struct snd_ctl_elem_value *ucontrol)
  14131. {
  14132. int i = 0, j;
  14133. int num_app_types = ucontrol->value.integer.value[i++];
  14134. pr_debug("%s\n", __func__);
  14135. memset(app_type_cfg, 0, MAX_APP_TYPES*
  14136. sizeof(struct msm_pcm_routing_app_type_data));
  14137. if (num_app_types > MAX_APP_TYPES) {
  14138. pr_err("%s: number of app types exceed the max supported\n",
  14139. __func__);
  14140. return -EINVAL;
  14141. }
  14142. for (j = 0; j < num_app_types; j++) {
  14143. app_type_cfg[j].app_type =
  14144. ucontrol->value.integer.value[i++];
  14145. app_type_cfg[j].sample_rate =
  14146. ucontrol->value.integer.value[i++];
  14147. app_type_cfg[j].bit_width =
  14148. ucontrol->value.integer.value[i++];
  14149. }
  14150. return 0;
  14151. }
  14152. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  14153. struct snd_ctl_elem_value *ucontrol)
  14154. {
  14155. int j, fe_id, be_id, port_type;
  14156. int ret = 0;
  14157. unsigned long copp;
  14158. struct msm_pcm_routing_bdai_data *bedai;
  14159. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14160. SESSION_TYPE_RX;
  14161. int app_type = ucontrol->value.integer.value[1];
  14162. int gain = (ucontrol->value.integer.value[2] +
  14163. ucontrol->value.integer.value[3])/2;
  14164. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14165. MSM_AFE_PORT_TYPE_TX;
  14166. mutex_lock(&routing_lock);
  14167. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14168. if (is_be_dai_extproc(be_id))
  14169. continue;
  14170. bedai = &msm_bedais[be_id];
  14171. if (afe_get_port_type(bedai->port_id) != port_type)
  14172. continue;
  14173. if (!bedai->active)
  14174. continue;
  14175. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14176. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14177. continue;
  14178. if (app_type !=
  14179. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14180. continue;
  14181. copp = session_copp_map[fe_id][dir][be_id];
  14182. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  14183. if (!test_bit(j, &copp))
  14184. continue;
  14185. ret |= adm_set_volume(bedai->port_id, j, gain);
  14186. }
  14187. }
  14188. }
  14189. mutex_unlock(&routing_lock);
  14190. return ret ? -EINVAL : 0;
  14191. }
  14192. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  14193. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  14194. 0xFFFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  14195. msm_routing_put_app_type_cfg_control),
  14196. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  14197. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  14198. };
  14199. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  14200. struct snd_ctl_elem_value *ucontrol)
  14201. {
  14202. int copp_idx, fe_id, be_id, port_type;
  14203. int ret = 0;
  14204. unsigned long copp;
  14205. struct msm_pcm_routing_bdai_data *bedai;
  14206. u8 *packed_params = NULL;
  14207. struct param_hdr_v3 param_hdr;
  14208. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  14209. sizeof(uint32_t));
  14210. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  14211. SESSION_TYPE_RX;
  14212. int app_type = ucontrol->value.integer.value[1];
  14213. int module_id = ucontrol->value.integer.value[2];
  14214. int instance_id = ucontrol->value.integer.value[3];
  14215. int param_id = ucontrol->value.integer.value[4];
  14216. int param_value = ucontrol->value.integer.value[5];
  14217. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  14218. MSM_AFE_PORT_TYPE_TX;
  14219. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  14220. __func__, app_type, module_id,
  14221. instance_id, param_id, param_value);
  14222. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  14223. if (!packed_params)
  14224. return -ENOMEM;
  14225. memset(&param_hdr, 0, sizeof(param_hdr));
  14226. param_hdr.module_id = module_id;
  14227. param_hdr.instance_id = instance_id;
  14228. param_hdr.param_id = param_id;
  14229. param_hdr.param_size = sizeof(uint32_t);
  14230. packed_param_size = 0;
  14231. mutex_lock(&routing_lock);
  14232. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  14233. if (is_be_dai_extproc(be_id))
  14234. continue;
  14235. bedai = &msm_bedais[be_id];
  14236. if (afe_get_port_type(bedai->port_id) != port_type)
  14237. continue;
  14238. if (!bedai->active)
  14239. continue;
  14240. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  14241. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  14242. continue;
  14243. if (app_type !=
  14244. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  14245. continue;
  14246. copp = session_copp_map[fe_id][dir][be_id];
  14247. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  14248. copp_idx++) {
  14249. if (!test_bit(copp_idx, &copp))
  14250. continue;
  14251. ret = q6common_pack_pp_params(packed_params,
  14252. &param_hdr,
  14253. (u8 *) &param_value,
  14254. &packed_param_size);
  14255. if (ret) {
  14256. pr_err("%s: Failed to pack params, error %d\n",
  14257. __func__, ret);
  14258. goto done;
  14259. }
  14260. ret = adm_set_pp_params(bedai->port_id,
  14261. copp_idx, NULL,
  14262. packed_params,
  14263. packed_param_size);
  14264. if (ret) {
  14265. pr_err("%s: Setting param failed with err=%d\n",
  14266. __func__, ret);
  14267. ret = -EINVAL;
  14268. goto done;
  14269. }
  14270. }
  14271. }
  14272. }
  14273. done:
  14274. mutex_unlock(&routing_lock);
  14275. kfree(packed_params);
  14276. return ret;
  14277. }
  14278. static const struct snd_kcontrol_new module_cfg_controls[] = {
  14279. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  14280. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  14281. };
  14282. static int msm_routing_get_lsm_app_type_cfg_control(
  14283. struct snd_kcontrol *kcontrol,
  14284. struct snd_ctl_elem_value *ucontrol)
  14285. {
  14286. return 0;
  14287. }
  14288. static int msm_routing_put_lsm_app_type_cfg_control(
  14289. struct snd_kcontrol *kcontrol,
  14290. struct snd_ctl_elem_value *ucontrol)
  14291. {
  14292. int shift = ((struct soc_multi_mixer_control *)
  14293. kcontrol->private_value)->shift;
  14294. int i = 0, j;
  14295. int num_app_types = ucontrol->value.integer.value[i++];
  14296. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  14297. sizeof(struct msm_pcm_routing_app_type_data));
  14298. if (num_app_types > MAX_APP_TYPES) {
  14299. pr_err("%s: number of app types exceed the max supported\n",
  14300. __func__);
  14301. return -EINVAL;
  14302. }
  14303. for (j = 0; j < num_app_types; j++) {
  14304. lsm_app_type_cfg[j].app_type =
  14305. ucontrol->value.integer.value[i++];
  14306. lsm_app_type_cfg[j].sample_rate =
  14307. ucontrol->value.integer.value[i++];
  14308. lsm_app_type_cfg[j].bit_width =
  14309. ucontrol->value.integer.value[i++];
  14310. /* Shift of 1 indicates this is V2 mixer control */
  14311. if (shift == 1)
  14312. lsm_app_type_cfg[j].num_out_channels =
  14313. ucontrol->value.integer.value[i++];
  14314. }
  14315. return 0;
  14316. }
  14317. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  14318. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  14319. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14320. msm_routing_put_lsm_app_type_cfg_control),
  14321. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  14322. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  14323. msm_routing_put_lsm_app_type_cfg_control),
  14324. };
  14325. static int msm_routing_get_use_ds1_or_ds2_control(
  14326. struct snd_kcontrol *kcontrol,
  14327. struct snd_ctl_elem_value *ucontrol)
  14328. {
  14329. ucontrol->value.integer.value[0] = is_ds2_on;
  14330. return 0;
  14331. }
  14332. static int msm_routing_put_use_ds1_or_ds2_control(
  14333. struct snd_kcontrol *kcontrol,
  14334. struct snd_ctl_elem_value *ucontrol)
  14335. {
  14336. is_ds2_on = ucontrol->value.integer.value[0];
  14337. return 0;
  14338. }
  14339. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  14340. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  14341. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  14342. msm_routing_put_use_ds1_or_ds2_control),
  14343. };
  14344. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  14345. struct snd_ctl_elem_value *ucontrol) {
  14346. int rc = 0;
  14347. int be_idx = 0;
  14348. char *param_value;
  14349. int *update_param_value;
  14350. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  14351. struct param_hdr_v3 param_hdr;
  14352. param_value = kzalloc(param_size, GFP_KERNEL);
  14353. if (!param_value)
  14354. return -ENOMEM;
  14355. memset(&param_hdr, 0, sizeof(param_hdr));
  14356. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  14357. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  14358. break;
  14359. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  14360. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  14361. param_hdr.instance_id = INSTANCE_ID_0;
  14362. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  14363. param_hdr.param_size = param_size;
  14364. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  14365. NULL, &param_hdr, (u8 *) param_value);
  14366. if (rc) {
  14367. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  14368. kfree(param_value);
  14369. return -EINVAL;
  14370. }
  14371. update_param_value = (int *)param_value;
  14372. ucontrol->value.integer.value[0] = update_param_value[0];
  14373. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  14374. __func__, update_param_value[0]);
  14375. }
  14376. kfree(param_value);
  14377. return 0;
  14378. }
  14379. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  14380. struct snd_ctl_elem_value *ucontrol)
  14381. {
  14382. voc_session_id = ucontrol->value.integer.value[0];
  14383. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  14384. return 0;
  14385. }
  14386. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  14387. struct snd_ctl_elem_value *ucontrol)
  14388. {
  14389. ucontrol->value.integer.value[0] = voc_session_id;
  14390. return 0;
  14391. }
  14392. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  14393. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  14394. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  14395. msm_voc_session_id_put),
  14396. };
  14397. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  14398. struct snd_ctl_elem_info *uinfo)
  14399. {
  14400. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14401. uinfo->count = sizeof(struct sound_focus_param);
  14402. return 0;
  14403. }
  14404. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  14405. struct snd_ctl_elem_value *ucontrol)
  14406. {
  14407. int ret = 0;
  14408. struct sound_focus_param soundFocusData;
  14409. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14410. sizeof(struct sound_focus_param));
  14411. ret = voc_set_sound_focus(soundFocusData);
  14412. if (ret) {
  14413. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14414. __func__, ret);
  14415. ret = -EINVAL;
  14416. }
  14417. return ret;
  14418. }
  14419. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  14420. struct snd_ctl_elem_value *ucontrol)
  14421. {
  14422. int ret = 0;
  14423. struct sound_focus_param soundFocusData;
  14424. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  14425. ret = voc_get_sound_focus(&soundFocusData);
  14426. if (ret) {
  14427. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14428. __func__, ret);
  14429. ret = -EINVAL;
  14430. goto done;
  14431. }
  14432. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14433. sizeof(struct sound_focus_param));
  14434. done:
  14435. return ret;
  14436. }
  14437. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  14438. struct snd_ctl_elem_info *uinfo)
  14439. {
  14440. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  14441. uinfo->count = sizeof(struct source_tracking_param);
  14442. return 0;
  14443. }
  14444. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  14445. struct snd_ctl_elem_value *ucontrol)
  14446. {
  14447. int ret = 0;
  14448. struct source_tracking_param sourceTrackingData;
  14449. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  14450. ret = voc_get_source_tracking(&sourceTrackingData);
  14451. if (ret) {
  14452. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14453. __func__, ret);
  14454. ret = -EINVAL;
  14455. goto done;
  14456. }
  14457. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14458. sizeof(struct source_tracking_param));
  14459. done:
  14460. return ret;
  14461. }
  14462. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  14463. int *copp_idx)
  14464. {
  14465. int i, idx, be_idx;
  14466. int ret = 0;
  14467. unsigned long copp;
  14468. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  14469. ret = q6audio_validate_port(port_id);
  14470. if (ret < 0) {
  14471. pr_err("%s: port validation failed id 0x%x ret %d\n",
  14472. __func__, port_id, ret);
  14473. ret = -EINVAL;
  14474. goto done;
  14475. }
  14476. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  14477. if (msm_bedais[be_idx].port_id == port_id)
  14478. break;
  14479. }
  14480. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  14481. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  14482. ret = -EINVAL;
  14483. goto done;
  14484. }
  14485. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  14486. MSM_FRONTEND_DAI_MM_SIZE) {
  14487. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  14488. copp = session_copp_map[i]
  14489. [session_type][be_idx];
  14490. if (test_bit(idx, &copp))
  14491. break;
  14492. }
  14493. if (idx >= MAX_COPPS_PER_PORT)
  14494. continue;
  14495. else
  14496. break;
  14497. }
  14498. if (i >= MSM_FRONTEND_DAI_MM_SIZE) {
  14499. pr_err("%s: Invalid FE, exiting\n", __func__);
  14500. ret = -EINVAL;
  14501. goto done;
  14502. }
  14503. *copp_idx = idx;
  14504. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  14505. done:
  14506. return ret;
  14507. }
  14508. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  14509. const char *prefix, int *port_id)
  14510. {
  14511. int ret = 0;
  14512. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  14513. /*
  14514. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  14515. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  14516. * and compare the string with the backend name to derive the port id.
  14517. */
  14518. if (!strcmp(kcontrol->id.name + strlen(prefix),
  14519. "SLIMBUS_0")) {
  14520. *port_id = SLIMBUS_0_TX;
  14521. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14522. "TERT_MI2S")) {
  14523. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  14524. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  14525. "INT3_MI2S")) {
  14526. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  14527. } else {
  14528. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  14529. __func__, kcontrol->id.name);
  14530. ret = -EINVAL;
  14531. goto done;
  14532. }
  14533. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  14534. __func__, kcontrol->id.name, *port_id);
  14535. done:
  14536. return ret;
  14537. }
  14538. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  14539. struct snd_ctl_elem_value *ucontrol)
  14540. {
  14541. int ret = 0;
  14542. struct sound_focus_param soundFocusData;
  14543. int port_id, copp_idx;
  14544. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14545. "Sound Focus Audio Tx ", &port_id);
  14546. if (ret != 0) {
  14547. pr_err("%s: Error in deriving port id, err=%d\n",
  14548. __func__, ret);
  14549. ret = -EINVAL;
  14550. goto done;
  14551. }
  14552. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14553. &copp_idx);
  14554. if (ret) {
  14555. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14556. __func__, port_id);
  14557. ret = -EINVAL;
  14558. goto done;
  14559. }
  14560. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  14561. sizeof(struct sound_focus_param));
  14562. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  14563. if (ret) {
  14564. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  14565. __func__, ret);
  14566. ret = -EINVAL;
  14567. goto done;
  14568. }
  14569. done:
  14570. return ret;
  14571. }
  14572. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  14573. struct snd_ctl_elem_value *ucontrol)
  14574. {
  14575. int ret = 0;
  14576. struct sound_focus_param soundFocusData;
  14577. int port_id, copp_idx;
  14578. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14579. "Sound Focus Audio Tx ", &port_id);
  14580. if (ret) {
  14581. pr_err("%s: Error in deriving port id, err=%d\n",
  14582. __func__, ret);
  14583. ret = -EINVAL;
  14584. goto done;
  14585. }
  14586. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14587. &copp_idx);
  14588. if (ret) {
  14589. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14590. __func__, port_id);
  14591. ret = -EINVAL;
  14592. goto done;
  14593. }
  14594. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  14595. if (ret) {
  14596. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  14597. __func__, ret);
  14598. ret = -EINVAL;
  14599. goto done;
  14600. }
  14601. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  14602. sizeof(struct sound_focus_param));
  14603. done:
  14604. return ret;
  14605. }
  14606. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  14607. struct snd_ctl_elem_value *ucontrol)
  14608. {
  14609. int ret = 0;
  14610. struct source_tracking_param sourceTrackingData;
  14611. int port_id, copp_idx;
  14612. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  14613. "Source Tracking Audio Tx ", &port_id);
  14614. if (ret) {
  14615. pr_err("%s: Error in deriving port id, err=%d\n",
  14616. __func__, ret);
  14617. ret = -EINVAL;
  14618. goto done;
  14619. }
  14620. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  14621. &copp_idx);
  14622. if (ret) {
  14623. pr_err("%s: Could not get copp idx for port_id=%d\n",
  14624. __func__, port_id);
  14625. ret = -EINVAL;
  14626. goto done;
  14627. }
  14628. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  14629. if (ret) {
  14630. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  14631. __func__, ret);
  14632. ret = -EINVAL;
  14633. goto done;
  14634. }
  14635. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  14636. sizeof(struct source_tracking_param));
  14637. done:
  14638. return ret;
  14639. }
  14640. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  14641. {
  14642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14643. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14644. .name = "Sound Focus Voice Tx SLIMBUS_0",
  14645. .info = msm_sound_focus_info,
  14646. .get = msm_voice_sound_focus_get,
  14647. .put = msm_voice_sound_focus_put,
  14648. },
  14649. {
  14650. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14652. .name = "Source Tracking Voice Tx SLIMBUS_0",
  14653. .info = msm_source_tracking_info,
  14654. .get = msm_voice_source_tracking_get,
  14655. },
  14656. {
  14657. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14658. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14659. .name = "Sound Focus Audio Tx SLIMBUS_0",
  14660. .info = msm_sound_focus_info,
  14661. .get = msm_audio_sound_focus_get,
  14662. .put = msm_audio_sound_focus_put,
  14663. },
  14664. {
  14665. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14666. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14667. .name = "Source Tracking Audio Tx SLIMBUS_0",
  14668. .info = msm_source_tracking_info,
  14669. .get = msm_audio_source_tracking_get,
  14670. },
  14671. {
  14672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14673. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14674. .name = "Sound Focus Voice Tx TERT_MI2S",
  14675. .info = msm_sound_focus_info,
  14676. .get = msm_voice_sound_focus_get,
  14677. .put = msm_voice_sound_focus_put,
  14678. },
  14679. {
  14680. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14682. .name = "Source Tracking Voice Tx TERT_MI2S",
  14683. .info = msm_source_tracking_info,
  14684. .get = msm_voice_source_tracking_get,
  14685. },
  14686. {
  14687. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14688. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14689. .name = "Sound Focus Audio Tx TERT_MI2S",
  14690. .info = msm_sound_focus_info,
  14691. .get = msm_audio_sound_focus_get,
  14692. .put = msm_audio_sound_focus_put,
  14693. },
  14694. {
  14695. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14696. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14697. .name = "Source Tracking Audio Tx TERT_MI2S",
  14698. .info = msm_source_tracking_info,
  14699. .get = msm_audio_source_tracking_get,
  14700. },
  14701. {
  14702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14703. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14704. .name = "Sound Focus Voice Tx INT3_MI2S",
  14705. .info = msm_sound_focus_info,
  14706. .get = msm_voice_sound_focus_get,
  14707. .put = msm_voice_sound_focus_put,
  14708. },
  14709. {
  14710. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14712. .name = "Source Tracking Voice Tx INT3_MI2S",
  14713. .info = msm_source_tracking_info,
  14714. .get = msm_voice_source_tracking_get,
  14715. },
  14716. {
  14717. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  14718. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14719. .name = "Sound Focus Audio Tx INT3_MI2S",
  14720. .info = msm_sound_focus_info,
  14721. .get = msm_audio_sound_focus_get,
  14722. .put = msm_audio_sound_focus_put,
  14723. },
  14724. {
  14725. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  14726. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  14727. .name = "Source Tracking Audio Tx INT3_MI2S",
  14728. .info = msm_source_tracking_info,
  14729. .get = msm_audio_source_tracking_get,
  14730. },
  14731. };
  14732. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  14733. struct snd_ctl_elem_value *ucontrol)
  14734. {
  14735. int ret = 0;
  14736. int item;
  14737. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14738. pr_debug("%s item is %d\n", __func__,
  14739. ucontrol->value.enumerated.item[0]);
  14740. mutex_lock(&routing_lock);
  14741. item = ucontrol->value.enumerated.item[0];
  14742. if (item < e->items) {
  14743. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14744. __func__, e->shift_l, e->values[item]);
  14745. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14746. e->values[item] < MSM_BACKEND_DAI_MAX)
  14747. /* Enable feedback TX path */
  14748. ret = afe_spk_prot_feed_back_cfg(
  14749. msm_bedais[e->values[item]].port_id,
  14750. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  14751. else {
  14752. pr_debug("%s values are out of range item %d\n",
  14753. __func__, e->values[item]);
  14754. /* Disable feedback TX path */
  14755. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14756. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  14757. else
  14758. ret = -EINVAL;
  14759. }
  14760. } else {
  14761. pr_err("%s item value is out of range item\n", __func__);
  14762. ret = -EINVAL;
  14763. }
  14764. mutex_unlock(&routing_lock);
  14765. return ret;
  14766. }
  14767. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  14768. struct snd_ctl_elem_value *ucontrol)
  14769. {
  14770. int ret = 0;
  14771. int item;
  14772. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  14773. pr_debug("%s item is %d\n", __func__,
  14774. ucontrol->value.enumerated.item[0]);
  14775. mutex_lock(&routing_lock);
  14776. item = ucontrol->value.enumerated.item[0];
  14777. if (item < e->items) {
  14778. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  14779. __func__, e->shift_l, e->values[item]);
  14780. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  14781. e->values[item] < MSM_BACKEND_DAI_MAX)
  14782. /* Enable feedback TX path */
  14783. ret = afe_spk_prot_feed_back_cfg(
  14784. msm_bedais[e->values[item]].port_id,
  14785. msm_bedais[e->shift_l].port_id,
  14786. 1, 1, 1);
  14787. else {
  14788. pr_debug("%s values are out of range item %d\n",
  14789. __func__, e->values[item]);
  14790. /* Disable feedback TX path */
  14791. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  14792. ret = afe_spk_prot_feed_back_cfg(0,
  14793. 0, 0, 0, 0);
  14794. else
  14795. ret = -EINVAL;
  14796. }
  14797. } else {
  14798. pr_err("%s item value is out of range item\n", __func__);
  14799. ret = -EINVAL;
  14800. }
  14801. mutex_unlock(&routing_lock);
  14802. return ret;
  14803. }
  14804. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  14805. struct snd_ctl_elem_value *ucontrol)
  14806. {
  14807. pr_debug("%s\n", __func__);
  14808. return 0;
  14809. }
  14810. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  14811. struct snd_ctl_elem_value *ucontrol)
  14812. {
  14813. pr_debug("%s\n", __func__);
  14814. ucontrol->value.enumerated.item[0] = 0;
  14815. return 0;
  14816. }
  14817. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  14818. "ZERO", "SLIM4_TX"
  14819. };
  14820. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  14821. "ZERO", "SLIM4_TX"
  14822. };
  14823. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  14824. "ZERO", "WSA_CDC_DMA_TX_0"
  14825. };
  14826. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  14827. "ZERO", "WSA_CDC_DMA_TX_0"
  14828. };
  14829. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  14830. "ZERO", "SENARY_TX"
  14831. };
  14832. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  14833. "ZERO", "INT5_MI2S_TX"
  14834. };
  14835. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  14836. "ZERO", "INT5_MI2S_TX"
  14837. };
  14838. static const int const slim0_rx_vi_fb_tx_lch_value[] = {
  14839. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14840. };
  14841. static const int const slim0_rx_vi_fb_tx_rch_value[] = {
  14842. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  14843. };
  14844. static const int const wsa_rx_0_vi_fb_tx_lch_value[] = {
  14845. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14846. };
  14847. static const int const wsa_rx_0_vi_fb_tx_rch_value[] = {
  14848. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  14849. };
  14850. static const int const mi2s_rx_vi_fb_tx_value[] = {
  14851. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  14852. };
  14853. static const int const int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  14854. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14855. };
  14856. static const int const int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  14857. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  14858. };
  14859. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  14860. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14861. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  14862. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  14863. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  14864. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  14865. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  14866. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  14867. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  14868. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14869. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  14870. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  14871. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  14872. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  14873. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  14874. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  14875. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  14876. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  14877. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  14878. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  14879. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  14880. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14881. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  14882. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  14883. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  14884. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  14885. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  14886. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  14887. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  14888. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  14889. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  14890. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  14891. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14892. spkr_prot_put_vi_lch_port);
  14893. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  14894. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  14895. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14896. spkr_prot_put_vi_rch_port);
  14897. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  14898. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  14899. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  14900. spkr_prot_put_vi_lch_port);
  14901. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  14902. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  14903. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  14904. spkr_prot_put_vi_rch_port);
  14905. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  14906. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  14907. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  14908. spkr_prot_put_vi_lch_port);
  14909. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  14910. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  14911. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  14912. spkr_prot_put_vi_lch_port);
  14913. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  14914. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  14915. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  14916. spkr_prot_put_vi_rch_port);
  14917. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  14918. /* Frontend AIF */
  14919. /* Widget name equals to Front-End DAI name<Need confirmation>,
  14920. * Stream name must contains substring of front-end dai name
  14921. */
  14922. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  14923. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  14924. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  14925. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  14926. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  14927. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  14928. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  14929. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  14930. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  14931. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  14932. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  14933. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  14934. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  14935. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  14936. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  14937. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  14938. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  14939. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  14940. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  14941. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  14942. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  14943. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  14944. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  14945. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  14946. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  14947. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  14948. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  14949. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  14950. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  14951. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  14952. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  14953. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  14954. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  14955. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  14956. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  14957. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  14958. "VoiceMMode1 Playback", 0, 0, 0, 0),
  14959. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  14960. "VoiceMMode1 Capture", 0, 0, 0, 0),
  14961. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  14962. "VoiceMMode2 Playback", 0, 0, 0, 0),
  14963. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  14964. "VoiceMMode2 Capture", 0, 0, 0, 0),
  14965. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  14966. 0, 0, 0, 0),
  14967. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  14968. 0, 0, 0, 0),
  14969. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  14970. 0, 0, 0, 0),
  14971. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  14972. 0, 0, 0, 0),
  14973. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  14974. 0, 0, 0, 0),
  14975. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  14976. 0, 0, 0, 0),
  14977. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  14978. 0, 0, 0, 0),
  14979. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  14980. 0, 0, 0, 0),
  14981. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  14982. 0, 0, 0, 0),
  14983. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  14984. 0, 0, 0, 0),
  14985. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  14986. 0, 0, 0, 0),
  14987. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  14988. 0, 0, 0, 0),
  14989. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  14990. 0, 0, 0, 0),
  14991. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  14992. 0, 0, 0, 0),
  14993. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  14994. 0, 0, 0, 0),
  14995. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  14996. 0, 0, 0, 0),
  14997. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  14998. 0, 0, 0, 0),
  14999. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  15000. 0, 0, 0, 0),
  15001. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  15002. 0, 0, 0, 0),
  15003. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  15004. 0, 0, 0, 0),
  15005. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  15006. 0, 0, 0, 0),
  15007. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  15008. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  15009. 0, 0, 0, 0),
  15010. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  15011. "INT0 MI2S_RX Hostless Playback",
  15012. 0, 0, 0, 0),
  15013. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  15014. "INT4 MI2S_RX Hostless Playback",
  15015. 0, 0, 0, 0),
  15016. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  15017. "Primary MI2S_RX Hostless Playback",
  15018. 0, 0, 0, 0),
  15019. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  15020. "Secondary MI2S_RX Hostless Playback",
  15021. 0, 0, 0, 0),
  15022. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  15023. "Tertiary MI2S_RX Hostless Playback",
  15024. 0, 0, 0, 0),
  15025. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  15026. "Quaternary MI2S_RX Hostless Playback",
  15027. 0, 0, 0, 0),
  15028. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  15029. "Quinary MI2S_RX Hostless Playback",
  15030. 0, 0, 0, 0),
  15031. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  15032. 0, 0, 0, 0),
  15033. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  15034. 0, 0, 0, 0),
  15035. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  15036. 0, 0, 0, 0),
  15037. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  15038. 0, 0, 0, 0),
  15039. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  15040. 0, 0, 0, 0),
  15041. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  15042. "INT3 MI2S_TX Hostless Capture",
  15043. 0, 0, 0, 0),
  15044. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  15045. "Tertiary MI2S_TX Hostless Capture",
  15046. 0, 0, 0, 0),
  15047. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  15048. "Secondary MI2S_TX Hostless Capture",
  15049. 0, 0, 0, 0),
  15050. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  15051. "Primary MI2S_TX Hostless Capture",
  15052. 0, 0, 0, 0),
  15053. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  15054. 0, 0, 0, 0),
  15055. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  15056. 0, 0, 0, 0),
  15057. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  15058. "Quaternary MI2S_TX Hostless Capture",
  15059. 0, 0, 0, 0),
  15060. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  15061. "Quinary MI2S_TX Hostless Capture",
  15062. 0, 0, 0, 0),
  15063. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  15064. "Primary TDM0 Hostless Playback",
  15065. 0, 0, 0, 0),
  15066. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  15067. "Primary TDM0 Hostless Capture",
  15068. 0, 0, 0, 0),
  15069. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  15070. "Primary TDM1 Hostless Playback",
  15071. 0, 0, 0, 0),
  15072. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  15073. "Primary TDM1 Hostless Capture",
  15074. 0, 0, 0, 0),
  15075. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  15076. "Primary TDM2 Hostless Playback",
  15077. 0, 0, 0, 0),
  15078. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  15079. "Primary TDM2 Hostless Capture",
  15080. 0, 0, 0, 0),
  15081. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  15082. "Primary TDM3 Hostless Playback",
  15083. 0, 0, 0, 0),
  15084. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  15085. "Primary TDM3 Hostless Capture",
  15086. 0, 0, 0, 0),
  15087. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  15088. "Primary TDM4 Hostless Playback",
  15089. 0, 0, 0, 0),
  15090. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  15091. "Primary TDM4 Hostless Capture",
  15092. 0, 0, 0, 0),
  15093. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  15094. "Primary TDM5 Hostless Playback",
  15095. 0, 0, 0, 0),
  15096. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  15097. "Primary TDM5 Hostless Capture",
  15098. 0, 0, 0, 0),
  15099. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  15100. "Primary TDM6 Hostless Playback",
  15101. 0, 0, 0, 0),
  15102. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  15103. "Primary TDM6 Hostless Capture",
  15104. 0, 0, 0, 0),
  15105. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  15106. "Primary TDM7 Hostless Playback",
  15107. 0, 0, 0, 0),
  15108. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  15109. "Primary TDM7 Hostless Capture",
  15110. 0, 0, 0, 0),
  15111. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  15112. "Secondary TDM0 Hostless Playback",
  15113. 0, 0, 0, 0),
  15114. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  15115. "Secondary TDM0 Hostless Capture",
  15116. 0, 0, 0, 0),
  15117. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  15118. "Secondary TDM1 Hostless Playback",
  15119. 0, 0, 0, 0),
  15120. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  15121. "Secondary TDM1 Hostless Capture",
  15122. 0, 0, 0, 0),
  15123. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  15124. "Secondary TDM2 Hostless Playback",
  15125. 0, 0, 0, 0),
  15126. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  15127. "Secondary TDM2 Hostless Capture",
  15128. 0, 0, 0, 0),
  15129. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  15130. "Secondary TDM3 Hostless Playback",
  15131. 0, 0, 0, 0),
  15132. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  15133. "Secondary TDM3 Hostless Capture",
  15134. 0, 0, 0, 0),
  15135. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  15136. "Secondary TDM4 Hostless Playback",
  15137. 0, 0, 0, 0),
  15138. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  15139. "Secondary TDM4 Hostless Capture",
  15140. 0, 0, 0, 0),
  15141. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  15142. "Secondary TDM5 Hostless Playback",
  15143. 0, 0, 0, 0),
  15144. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  15145. "Secondary TDM5 Hostless Capture",
  15146. 0, 0, 0, 0),
  15147. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  15148. "Secondary TDM6 Hostless Playback",
  15149. 0, 0, 0, 0),
  15150. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  15151. "Secondary TDM6 Hostless Capture",
  15152. 0, 0, 0, 0),
  15153. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  15154. "Secondary TDM7 Hostless Playback",
  15155. 0, 0, 0, 0),
  15156. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  15157. "Secondary TDM7 Hostless Capture",
  15158. 0, 0, 0, 0),
  15159. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  15160. "Tertiary TDM0 Hostless Playback",
  15161. 0, 0, 0, 0),
  15162. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  15163. "Tertiary TDM0 Hostless Capture",
  15164. 0, 0, 0, 0),
  15165. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  15166. "Tertiary TDM1 Hostless Playback",
  15167. 0, 0, 0, 0),
  15168. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  15169. "Tertiary TDM1 Hostless Capture",
  15170. 0, 0, 0, 0),
  15171. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  15172. "Tertiary TDM2 Hostless Playback",
  15173. 0, 0, 0, 0),
  15174. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  15175. "Tertiary TDM2 Hostless Capture",
  15176. 0, 0, 0, 0),
  15177. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  15178. "Tertiary TDM3 Hostless Playback",
  15179. 0, 0, 0, 0),
  15180. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  15181. "Tertiary TDM3 Hostless Capture",
  15182. 0, 0, 0, 0),
  15183. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  15184. "Tertiary TDM4 Hostless Playback",
  15185. 0, 0, 0, 0),
  15186. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  15187. "Tertiary TDM4 Hostless Capture",
  15188. 0, 0, 0, 0),
  15189. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  15190. "Tertiary TDM5 Hostless Playback",
  15191. 0, 0, 0, 0),
  15192. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  15193. "Tertiary TDM5 Hostless Capture",
  15194. 0, 0, 0, 0),
  15195. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  15196. "Tertiary TDM6 Hostless Playback",
  15197. 0, 0, 0, 0),
  15198. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  15199. "Tertiary TDM6 Hostless Capture",
  15200. 0, 0, 0, 0),
  15201. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  15202. "Tertiary TDM7 Hostless Playback",
  15203. 0, 0, 0, 0),
  15204. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  15205. "Tertiary TDM7 Hostless Capture",
  15206. 0, 0, 0, 0),
  15207. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  15208. "Quaternary TDM0 Hostless Playback",
  15209. 0, 0, 0, 0),
  15210. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  15211. "Quaternary TDM0 Hostless Capture",
  15212. 0, 0, 0, 0),
  15213. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  15214. "Quaternary TDM1 Hostless Playback",
  15215. 0, 0, 0, 0),
  15216. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  15217. "Quaternary TDM1 Hostless Capture",
  15218. 0, 0, 0, 0),
  15219. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  15220. "Quaternary TDM2 Hostless Playback",
  15221. 0, 0, 0, 0),
  15222. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  15223. "Quaternary TDM2 Hostless Capture",
  15224. 0, 0, 0, 0),
  15225. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  15226. "Quaternary TDM3 Hostless Playback",
  15227. 0, 0, 0, 0),
  15228. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  15229. "Quaternary TDM3 Hostless Capture",
  15230. 0, 0, 0, 0),
  15231. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  15232. "Quaternary TDM4 Hostless Playback",
  15233. 0, 0, 0, 0),
  15234. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  15235. "Quaternary TDM4 Hostless Capture",
  15236. 0, 0, 0, 0),
  15237. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  15238. "Quaternary TDM5 Hostless Playback",
  15239. 0, 0, 0, 0),
  15240. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  15241. "Quaternary TDM5 Hostless Capture",
  15242. 0, 0, 0, 0),
  15243. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  15244. "Quaternary TDM6 Hostless Playback",
  15245. 0, 0, 0, 0),
  15246. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  15247. "Quaternary TDM6 Hostless Capture",
  15248. 0, 0, 0, 0),
  15249. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  15250. "Quaternary TDM7 Hostless Playback",
  15251. 0, 0, 0, 0),
  15252. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  15253. "Quaternary TDM7 Hostless Capture",
  15254. 0, 0, 0, 0),
  15255. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  15256. "Quinary TDM0 Hostless Playback",
  15257. 0, 0, 0, 0),
  15258. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  15259. "Quinary TDM0 Hostless Capture",
  15260. 0, 0, 0, 0),
  15261. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  15262. "Quinary TDM1 Hostless Playback",
  15263. 0, 0, 0, 0),
  15264. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  15265. "Quinary TDM1 Hostless Capture",
  15266. 0, 0, 0, 0),
  15267. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  15268. "Quinary TDM2 Hostless Playback",
  15269. 0, 0, 0, 0),
  15270. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  15271. "Quinary TDM2 Hostless Capture",
  15272. 0, 0, 0, 0),
  15273. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  15274. "Quinary TDM3 Hostless Playback",
  15275. 0, 0, 0, 0),
  15276. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  15277. "Quinary TDM3 Hostless Capture",
  15278. 0, 0, 0, 0),
  15279. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  15280. "Quinary TDM4 Hostless Playback",
  15281. 0, 0, 0, 0),
  15282. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  15283. "Quinary TDM4 Hostless Capture",
  15284. 0, 0, 0, 0),
  15285. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  15286. "Quinary TDM5 Hostless Playback",
  15287. 0, 0, 0, 0),
  15288. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  15289. "Quinary TDM5 Hostless Capture",
  15290. 0, 0, 0, 0),
  15291. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  15292. "Quinary TDM6 Hostless Playback",
  15293. 0, 0, 0, 0),
  15294. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  15295. "Quinary TDM6 Hostless Capture",
  15296. 0, 0, 0, 0),
  15297. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  15298. "Quinary TDM7 Hostless Playback",
  15299. 0, 0, 0, 0),
  15300. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  15301. "Quinary TDM7 Hostless Capture",
  15302. 0, 0, 0, 0),
  15303. /* LSM */
  15304. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  15305. 0, 0, 0, 0),
  15306. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  15307. 0, 0, 0, 0),
  15308. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  15309. 0, 0, 0, 0),
  15310. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  15311. 0, 0, 0, 0),
  15312. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  15313. 0, 0, 0, 0),
  15314. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  15315. 0, 0, 0, 0),
  15316. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  15317. 0, 0, 0, 0),
  15318. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  15319. 0, 0, 0, 0),
  15320. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  15321. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  15322. /* Backend AIF */
  15323. /* Stream name equals to backend dai link stream name */
  15324. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  15325. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  15326. 0, 0, 0, 0),
  15327. SND_SOC_DAPM_AIF_OUT("SPDIF_RX", "SPDIF Playback", 0, 0, 0, 0),
  15328. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  15329. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  15330. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  15331. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  15332. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  15333. 0, 0, 0, 0),
  15334. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  15335. 0, 0, 0, 0),
  15336. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  15337. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  15338. 0, 0, 0, 0),
  15339. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  15340. 0, 0, 0, 0),
  15341. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  15342. 0, 0, 0, 0),
  15343. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  15344. "Secondary MI2S Playback SD1",
  15345. 0, 0, 0, 0),
  15346. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  15347. 0, 0, 0, 0),
  15348. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  15349. 0, 0, 0, 0),
  15350. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  15351. 0, 0, 0, 0),
  15352. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  15353. 0, 0, 0, 0),
  15354. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  15355. 0, 0, 0, 0),
  15356. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  15357. 0, 0, 0, 0),
  15358. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  15359. 0, 0, 0, 0),
  15360. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  15361. 0, 0, 0, 0),
  15362. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  15363. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  15364. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  15365. 0, 0, 0, 0),
  15366. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  15367. 0, 0, 0, 0),
  15368. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  15369. 0, 0, 0, 0),
  15370. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  15371. 0, 0, 0, 0),
  15372. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  15373. 0, 0, 0, 0),
  15374. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  15375. 0, 0, 0, 0),
  15376. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  15377. 0, 0, 0, 0),
  15378. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  15379. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  15380. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  15381. 0, 0, 0, 0),
  15382. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  15383. 0, 0, 0, 0),
  15384. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  15385. 0, 0, 0, 0),
  15386. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  15387. 0, 0, 0, 0),
  15388. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  15389. 0, 0, 0, 0),
  15390. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  15391. 0, 0, 0, 0),
  15392. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  15393. 0, 0, 0, 0),
  15394. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  15395. 0, 0, 0, 0),
  15396. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  15397. 0, 0, 0, 0),
  15398. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  15399. 0, 0, 0, 0),
  15400. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  15401. 0, 0, 0, 0),
  15402. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  15403. 0, 0, 0, 0),
  15404. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  15405. 0, 0, 0, 0),
  15406. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  15407. 0, 0, 0, 0),
  15408. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  15409. 0, 0, 0, 0),
  15410. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  15411. 0, 0, 0, 0),
  15412. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  15413. 0, 0, 0, 0),
  15414. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  15415. 0, 0, 0, 0),
  15416. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  15417. 0, 0, 0, 0),
  15418. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  15419. 0, 0, 0, 0),
  15420. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  15421. 0, 0, 0, 0),
  15422. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  15423. 0, 0, 0, 0),
  15424. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  15425. 0, 0, 0, 0),
  15426. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  15427. 0, 0, 0, 0),
  15428. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  15429. 0, 0, 0, 0),
  15430. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  15431. 0, 0, 0, 0),
  15432. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  15433. 0, 0, 0, 0),
  15434. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  15435. 0, 0, 0, 0),
  15436. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  15437. 0, 0, 0, 0),
  15438. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  15439. 0, 0, 0, 0),
  15440. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  15441. 0, 0, 0, 0),
  15442. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  15443. 0, 0, 0, 0),
  15444. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  15445. 0, 0, 0, 0),
  15446. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  15447. 0, 0, 0, 0),
  15448. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  15449. 0, 0, 0, 0),
  15450. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  15451. 0, 0, 0, 0),
  15452. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  15453. 0, 0, 0, 0),
  15454. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  15455. 0, 0, 0, 0),
  15456. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  15457. 0, 0, 0, 0),
  15458. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  15459. 0, 0, 0, 0),
  15460. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  15461. 0, 0, 0, 0),
  15462. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  15463. 0, 0, 0, 0),
  15464. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  15465. 0, 0, 0, 0),
  15466. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  15467. 0, 0, 0, 0),
  15468. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  15469. 0, 0, 0, 0),
  15470. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  15471. 0, 0, 0, 0),
  15472. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  15473. 0, 0, 0, 0),
  15474. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  15475. 0, 0, 0, 0),
  15476. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  15477. 0, 0, 0, 0),
  15478. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  15479. 0, 0, 0, 0),
  15480. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  15481. 0, 0, 0, 0),
  15482. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  15483. 0, 0, 0, 0),
  15484. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  15485. 0, 0, 0, 0),
  15486. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  15487. 0, 0, 0, 0),
  15488. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  15489. 0, 0, 0, 0),
  15490. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  15491. 0, 0, 0, 0),
  15492. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  15493. 0, 0, 0, 0),
  15494. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  15495. 0, 0, 0, 0),
  15496. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  15497. 0, 0, 0, 0),
  15498. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  15499. 0, 0, 0, 0),
  15500. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  15501. 0, 0, 0, 0),
  15502. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  15503. 0, 0, 0, 0),
  15504. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  15505. 0, 0, 0, 0),
  15506. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  15507. 0, 0, 0, 0),
  15508. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  15509. 0, 0, 0, 0),
  15510. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  15511. 0, 0, 0, 0),
  15512. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  15513. 0, 0, 0, 0),
  15514. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  15515. 0, 0, 0, 0),
  15516. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  15517. 0, 0, 0, 0),
  15518. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  15519. 0, 0, 0, 0),
  15520. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  15521. 0, 0, 0, 0),
  15522. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  15523. 0, 0, 0, 0),
  15524. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  15525. 0, 0, 0, 0),
  15526. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  15527. 0, 0, 0, 0),
  15528. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  15529. 0, 0, 0, 0),
  15530. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  15531. 0, 0, 0, 0),
  15532. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  15533. 0, 0, 0, 0),
  15534. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  15535. 0, 0, 0, 0),
  15536. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  15537. 0, 0, 0, 0),
  15538. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  15539. 0, 0, 0, 0),
  15540. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  15541. 0, 0, 0, 0),
  15542. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  15543. 0, 0, 0, 0),
  15544. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  15545. 0, 0, 0, 0),
  15546. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  15547. 0, 0, 0, 0),
  15548. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  15549. 0, 0, 0, 0),
  15550. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  15551. 0, 0, 0, 0),
  15552. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  15553. 0, 0, 0, 0),
  15554. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  15555. 0, 0, 0, 0),
  15556. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  15557. 0, 0, 0, 0),
  15558. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  15559. 0, 0, 0, 0),
  15560. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  15561. 0, 0, 0, 0),
  15562. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  15563. 0, 0, 0, 0),
  15564. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  15565. 0, 0, 0, 0),
  15566. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  15567. 0, 0, 0, 0),
  15568. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  15569. 0, 0, 0, 0),
  15570. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  15571. 0, 0, 0, 0),
  15572. /* incall */
  15573. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  15574. 0, 0, 0, 0),
  15575. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  15576. 0, 0, 0, 0),
  15577. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  15578. 0, 0, 0, 0),
  15579. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  15580. 0, 0, 0, 0),
  15581. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  15582. 0, 0, 0, 0),
  15583. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  15584. 0, 0, 0, 0),
  15585. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  15586. 0, 0, 0, 0),
  15587. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  15588. 0, 0, 0, 0),
  15589. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  15590. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  15591. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  15592. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  15593. 0, 0, 0, 0),
  15594. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  15595. 0, 0, 0, 0),
  15596. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  15597. 0, 0, 0, 0),
  15598. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  15599. 0, 0, 0, 0),
  15600. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  15601. 0, 0, 0, 0),
  15602. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  15603. 0, 0, 0, 0),
  15604. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  15605. 0, 0, 0, 0),
  15606. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  15607. 0, 0, 0, 0),
  15608. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  15609. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  15610. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  15611. 0, 0, 0, 0),
  15612. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  15613. 0, 0, 0, 0),
  15614. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  15615. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  15616. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  15617. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  15618. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  15619. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  15620. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  15621. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  15622. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  15623. /* In- call recording */
  15624. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  15625. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  15626. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  15627. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  15628. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  15629. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  15630. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  15631. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  15632. /* Switch Definitions */
  15633. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  15634. &slim_fm_switch_mixer_controls),
  15635. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  15636. &slim1_fm_switch_mixer_controls),
  15637. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  15638. &slim3_fm_switch_mixer_controls),
  15639. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  15640. &slim4_fm_switch_mixer_controls),
  15641. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  15642. &slim6_fm_switch_mixer_controls),
  15643. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15644. &pcm_rx_switch_mixer_controls),
  15645. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15646. &int0_mi2s_rx_switch_mixer_controls),
  15647. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15648. &int4_mi2s_rx_switch_mixer_controls),
  15649. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15650. &pri_mi2s_rx_switch_mixer_controls),
  15651. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15652. &sec_mi2s_rx_switch_mixer_controls),
  15653. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15654. &tert_mi2s_rx_switch_mixer_controls),
  15655. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15656. &quat_mi2s_rx_switch_mixer_controls),
  15657. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  15658. &quin_mi2s_rx_switch_mixer_controls),
  15659. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15660. &hfp_pri_aux_switch_mixer_controls),
  15661. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  15662. &hfp_aux_switch_mixer_controls),
  15663. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  15664. &hfp_int_switch_mixer_controls),
  15665. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15666. &hfp_slim7_switch_mixer_controls),
  15667. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  15668. &usb_switch_mixer_controls),
  15669. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  15670. &a2dp_slim7_switch_mixer_controls),
  15671. /* Mixer definitions */
  15672. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15673. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  15674. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15675. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  15676. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15677. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  15678. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15679. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  15680. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15681. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  15682. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15683. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  15684. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  15685. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  15686. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  15687. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  15688. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  15689. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  15690. SND_SOC_DAPM_MIXER("SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15691. spdif_rx_mixer_controls, ARRAY_SIZE(spdif_rx_mixer_controls)),
  15692. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15693. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  15694. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15695. quaternary_mi2s_rx_mixer_controls,
  15696. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  15697. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15698. tertiary_mi2s_rx_mixer_controls,
  15699. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  15700. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15701. secondary_mi2s_rx_mixer_controls,
  15702. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  15703. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15704. secondary_mi2s_rx2_mixer_controls,
  15705. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  15706. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15707. primary_mi2s_rx_mixer_controls,
  15708. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  15709. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15710. int0_mi2s_rx_mixer_controls,
  15711. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  15712. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15713. int4_mi2s_rx_mixer_controls,
  15714. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  15715. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15716. quinary_mi2s_rx_mixer_controls,
  15717. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  15718. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15719. pri_tdm_rx_0_mixer_controls,
  15720. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  15721. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15722. pri_tdm_rx_1_mixer_controls,
  15723. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  15724. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15725. pri_tdm_rx_2_mixer_controls,
  15726. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  15727. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15728. pri_tdm_rx_3_mixer_controls,
  15729. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  15730. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15731. pri_tdm_tx_0_mixer_controls,
  15732. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  15733. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15734. sec_tdm_rx_0_mixer_controls,
  15735. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  15736. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15737. sec_tdm_rx_1_mixer_controls,
  15738. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  15739. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15740. sec_tdm_rx_2_mixer_controls,
  15741. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  15742. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15743. sec_tdm_rx_3_mixer_controls,
  15744. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  15745. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15746. sec_tdm_tx_0_mixer_controls,
  15747. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  15748. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15749. tert_tdm_rx_0_mixer_controls,
  15750. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  15751. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15752. tert_tdm_tx_0_mixer_controls,
  15753. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  15754. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15755. tert_tdm_rx_1_mixer_controls,
  15756. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  15757. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15758. tert_tdm_rx_2_mixer_controls,
  15759. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  15760. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15761. tert_tdm_rx_3_mixer_controls,
  15762. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  15763. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15764. tert_tdm_rx_4_mixer_controls,
  15765. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  15766. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15767. quat_tdm_rx_0_mixer_controls,
  15768. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  15769. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15770. quat_tdm_tx_0_mixer_controls,
  15771. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  15772. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15773. quat_tdm_rx_1_mixer_controls,
  15774. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  15775. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15776. quat_tdm_rx_2_mixer_controls,
  15777. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  15778. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15779. quat_tdm_rx_3_mixer_controls,
  15780. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  15781. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15782. quin_tdm_rx_0_mixer_controls,
  15783. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  15784. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15785. quin_tdm_tx_0_mixer_controls,
  15786. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  15787. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15788. quin_tdm_rx_1_mixer_controls,
  15789. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  15790. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15791. quin_tdm_rx_2_mixer_controls,
  15792. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  15793. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15794. quin_tdm_rx_3_mixer_controls,
  15795. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  15796. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15797. wsa_cdc_dma_rx_0_mixer_controls,
  15798. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  15799. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15800. wsa_cdc_dma_rx_1_mixer_controls,
  15801. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  15802. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  15803. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  15804. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  15805. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  15806. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  15807. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  15808. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  15809. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  15810. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  15811. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  15812. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  15813. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  15814. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  15815. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  15816. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  15817. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  15818. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  15819. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  15820. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  15821. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  15822. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  15823. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  15824. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  15825. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  15826. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  15827. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  15828. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  15829. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  15830. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  15831. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  15832. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  15833. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  15834. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15835. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  15836. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15837. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  15838. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15839. tert_auxpcm_rx_mixer_controls,
  15840. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  15841. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15842. quat_auxpcm_rx_mixer_controls,
  15843. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  15844. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15845. quin_auxpcm_rx_mixer_controls,
  15846. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  15847. /* incall */
  15848. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  15849. incall_music_delivery_mixer_controls,
  15850. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  15851. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  15852. incall_music2_delivery_mixer_controls,
  15853. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  15854. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15855. slimbus_4_rx_mixer_controls,
  15856. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  15857. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15858. slimbus_6_rx_mixer_controls,
  15859. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  15860. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15861. usb_audio_rx_mixer_controls,
  15862. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  15863. /* Voice Mixer */
  15864. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  15865. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  15866. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  15867. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  15868. SND_SOC_NOPM, 0, 0,
  15869. sec_i2s_rx_voice_mixer_controls,
  15870. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  15871. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  15872. SND_SOC_NOPM, 0, 0,
  15873. sec_mi2s_rx_voice_mixer_controls,
  15874. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  15875. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  15876. SND_SOC_NOPM, 0, 0,
  15877. slimbus_rx_voice_mixer_controls,
  15878. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  15879. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  15880. SND_SOC_NOPM, 0, 0,
  15881. bt_sco_rx_voice_mixer_controls,
  15882. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  15883. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  15884. SND_SOC_NOPM, 0, 0,
  15885. afe_pcm_rx_voice_mixer_controls,
  15886. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  15887. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  15888. SND_SOC_NOPM, 0, 0,
  15889. aux_pcm_rx_voice_mixer_controls,
  15890. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  15891. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  15892. SND_SOC_NOPM, 0, 0,
  15893. sec_aux_pcm_rx_voice_mixer_controls,
  15894. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  15895. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  15896. SND_SOC_NOPM, 0, 0,
  15897. tert_aux_pcm_rx_voice_mixer_controls,
  15898. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  15899. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  15900. SND_SOC_NOPM, 0, 0,
  15901. quat_aux_pcm_rx_voice_mixer_controls,
  15902. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  15903. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  15904. SND_SOC_NOPM, 0, 0,
  15905. quin_aux_pcm_rx_voice_mixer_controls,
  15906. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  15907. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  15908. SND_SOC_NOPM, 0, 0,
  15909. hdmi_rx_voice_mixer_controls,
  15910. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  15911. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  15912. SND_SOC_NOPM, 0, 0,
  15913. mi2s_rx_voice_mixer_controls,
  15914. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  15915. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  15916. SND_SOC_NOPM, 0, 0,
  15917. pri_mi2s_rx_voice_mixer_controls,
  15918. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  15919. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  15920. SND_SOC_NOPM, 0, 0,
  15921. int0_mi2s_rx_voice_mixer_controls,
  15922. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  15923. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  15924. SND_SOC_NOPM, 0, 0,
  15925. int4_mi2s_rx_voice_mixer_controls,
  15926. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  15927. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  15928. SND_SOC_NOPM, 0, 0,
  15929. tert_mi2s_rx_voice_mixer_controls,
  15930. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  15931. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  15932. SND_SOC_NOPM, 0, 0,
  15933. quat_mi2s_rx_voice_mixer_controls,
  15934. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  15935. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  15936. SND_SOC_NOPM, 0, 0,
  15937. quin_mi2s_rx_voice_mixer_controls,
  15938. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  15939. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  15940. SND_SOC_NOPM, 0, 0,
  15941. quat_tdm_rx_2_voice_mixer_controls,
  15942. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  15943. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  15944. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  15945. ARRAY_SIZE(tx_voip_mixer_controls)),
  15946. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  15947. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  15948. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  15949. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  15950. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  15951. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  15952. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15953. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  15954. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15955. int_bt_a2dp_rx_mixer_controls,
  15956. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  15957. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15958. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  15959. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  15960. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  15961. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15962. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  15963. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15964. tx_voice2_stub_mixer_controls,
  15965. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  15966. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  15967. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  15968. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  15969. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  15970. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  15971. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  15972. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15973. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  15974. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  15975. SND_SOC_NOPM, 0, 0,
  15976. slimbus_6_rx_voice_mixer_controls,
  15977. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  15978. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15979. slimbus_7_rx_voice_mixer_controls,
  15980. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  15981. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  15982. slimbus_8_rx_voice_mixer_controls,
  15983. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  15984. /* port mixer */
  15985. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  15986. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  15987. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  15988. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  15989. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  15990. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  15991. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  15992. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  15993. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  15994. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  15995. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  15996. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  15997. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  15998. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  15999. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  16000. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  16001. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  16002. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  16003. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16004. sbus_1_rx_port_mixer_controls,
  16005. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  16006. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16007. bt_sco_rx_port_mixer_controls,
  16008. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  16009. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  16010. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  16011. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  16012. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  16013. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  16014. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  16015. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  16016. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  16017. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  16018. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  16019. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  16020. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  16021. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  16022. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  16023. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  16024. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  16025. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  16026. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  16027. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  16028. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  16029. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  16030. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16031. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  16032. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16033. primary_mi2s_rx_port_mixer_controls,
  16034. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  16035. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16036. sec_mi2s_rx_port_mixer_controls,
  16037. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  16038. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16039. tert_mi2s_rx_port_mixer_controls,
  16040. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  16041. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16042. quat_mi2s_rx_port_mixer_controls,
  16043. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  16044. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16045. quin_mi2s_rx_port_mixer_controls,
  16046. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  16047. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16048. pri_tdm_rx_0_port_mixer_controls,
  16049. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  16050. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16051. pri_tdm_rx_1_port_mixer_controls,
  16052. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  16053. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16054. pri_tdm_rx_2_port_mixer_controls,
  16055. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  16056. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16057. pri_tdm_rx_3_port_mixer_controls,
  16058. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  16059. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16060. sec_tdm_rx_0_port_mixer_controls,
  16061. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  16062. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16063. sec_tdm_rx_1_port_mixer_controls,
  16064. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  16065. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16066. sec_tdm_rx_2_port_mixer_controls,
  16067. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  16068. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16069. sec_tdm_rx_3_port_mixer_controls,
  16070. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  16071. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16072. tert_tdm_rx_0_port_mixer_controls,
  16073. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  16074. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16075. tert_tdm_rx_1_port_mixer_controls,
  16076. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  16077. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16078. tert_tdm_rx_2_port_mixer_controls,
  16079. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  16080. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16081. tert_tdm_rx_3_port_mixer_controls,
  16082. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  16083. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16084. quat_tdm_rx_0_port_mixer_controls,
  16085. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  16086. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16087. quat_tdm_rx_1_port_mixer_controls,
  16088. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  16089. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16090. quat_tdm_rx_2_port_mixer_controls,
  16091. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  16092. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16093. quat_tdm_rx_3_port_mixer_controls,
  16094. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  16095. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  16096. quin_tdm_rx_0_port_mixer_controls,
  16097. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  16098. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  16099. quin_tdm_rx_1_port_mixer_controls,
  16100. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  16101. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  16102. quin_tdm_rx_2_port_mixer_controls,
  16103. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  16104. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  16105. quin_tdm_rx_3_port_mixer_controls,
  16106. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  16107. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16108. int0_mi2s_rx_port_mixer_controls,
  16109. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  16110. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  16111. int4_mi2s_rx_port_mixer_controls,
  16112. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  16113. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  16114. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  16115. ARRAY_SIZE(tx_qchat_mixer_controls)),
  16116. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  16117. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  16118. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  16119. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  16120. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  16121. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  16122. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  16123. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  16124. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  16125. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  16126. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  16127. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  16128. /* lsm mixer definitions */
  16129. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  16130. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  16131. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  16132. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  16133. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  16134. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  16135. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  16136. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  16137. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  16138. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  16139. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  16140. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  16141. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  16142. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  16143. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  16144. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  16145. /* Virtual Pins to force backends ON atm */
  16146. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  16147. SND_SOC_DAPM_INPUT("BE_IN"),
  16148. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16149. &slim0_rx_vi_fb_lch_mux),
  16150. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16151. &slim0_rx_vi_fb_rch_mux),
  16152. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  16153. &wsa_rx_0_vi_fb_lch_mux),
  16154. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  16155. &wsa_rx_0_vi_fb_rch_mux),
  16156. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  16157. &mi2s_rx_vi_fb_mux),
  16158. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16159. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  16160. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  16161. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  16162. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  16163. &voc_ext_ec_mux),
  16164. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  16165. &ext_ec_ref_mux_ul1),
  16166. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  16167. &ext_ec_ref_mux_ul2),
  16168. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  16169. &ext_ec_ref_mux_ul3),
  16170. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  16171. &ext_ec_ref_mux_ul4),
  16172. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  16173. &ext_ec_ref_mux_ul5),
  16174. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  16175. &ext_ec_ref_mux_ul6),
  16176. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  16177. &ext_ec_ref_mux_ul8),
  16178. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  16179. &ext_ec_ref_mux_ul9),
  16180. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  16181. &ext_ec_ref_mux_ul10),
  16182. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  16183. &ext_ec_ref_mux_ul16),
  16184. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  16185. &ext_ec_ref_mux_ul17),
  16186. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  16187. &ext_ec_ref_mux_ul18),
  16188. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  16189. &ext_ec_ref_mux_ul19),
  16190. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  16191. &ext_ec_ref_mux_ul28),
  16192. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  16193. &ext_ec_ref_mux_ul29),
  16194. };
  16195. static const struct snd_soc_dapm_route intercon[] = {
  16196. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16197. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16198. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16199. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16200. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16201. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16202. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16203. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16204. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16205. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16206. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16207. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16208. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16209. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16210. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16211. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16212. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  16213. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16214. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16215. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16216. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16217. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16218. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16219. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16220. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16221. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16222. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16223. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16224. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16225. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16226. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16227. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16228. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16229. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  16230. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16231. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16232. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16233. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16234. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16235. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16236. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16237. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16238. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16239. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16240. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16241. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16242. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16243. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16244. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16245. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16246. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  16247. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16248. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16249. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16250. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16251. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16252. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16253. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16254. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16255. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16256. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16257. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16258. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16259. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16260. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16261. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16262. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16263. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  16264. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16265. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16266. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16267. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16268. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16269. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16270. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16271. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16272. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16273. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16274. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16275. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16276. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16277. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16278. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16279. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16280. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  16281. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16282. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16283. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16284. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16285. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16286. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16287. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16288. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16289. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16290. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16291. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16292. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16293. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16294. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16295. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16296. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16297. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  16298. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16299. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16300. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16301. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16302. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16303. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16304. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16305. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16306. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16307. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16308. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16309. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16310. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16311. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16312. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16313. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16314. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  16315. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  16316. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  16317. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  16318. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  16319. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  16320. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  16321. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  16322. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  16323. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  16324. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  16325. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  16326. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  16327. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  16328. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  16329. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  16330. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  16331. {"HDMI", NULL, "HDMI Mixer"},
  16332. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  16333. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  16334. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  16335. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  16336. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  16337. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  16338. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  16339. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  16340. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  16341. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  16342. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  16343. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  16344. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  16345. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  16346. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  16347. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  16348. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  16349. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  16350. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  16351. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  16352. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  16353. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  16354. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  16355. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  16356. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  16357. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  16358. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  16359. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  16360. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  16361. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  16362. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  16363. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  16364. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  16365. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  16366. {"SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16367. {"SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16368. {"SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16369. {"SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16370. {"SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16371. {"SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16372. {"SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16373. {"SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16374. {"SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16375. {"SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16376. {"SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16377. {"SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16378. {"SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16379. {"SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16380. {"SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16381. {"SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16382. {"SPDIF_RX", NULL, "SPDIF_RX Audio Mixer"},
  16383. /* incall */
  16384. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  16385. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  16386. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  16387. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  16388. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  16389. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16390. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16391. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16392. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16393. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  16394. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16395. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16396. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16397. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16398. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  16399. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16400. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16401. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16402. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16403. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16404. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16405. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16406. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16407. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16408. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16409. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16410. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16411. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16412. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16413. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16414. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16415. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  16416. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16417. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16418. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16419. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16420. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16421. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16422. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16423. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16424. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16425. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16426. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16427. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16428. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16429. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16430. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16431. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16432. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  16433. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16434. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16435. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16436. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16437. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16438. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16439. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16440. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16441. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16442. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16443. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16444. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16445. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16446. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16447. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16448. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16449. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  16450. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16451. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16452. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  16453. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16454. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16455. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  16456. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  16457. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16458. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16459. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16460. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  16461. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16462. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16463. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16464. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16465. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16466. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16467. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16468. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16469. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16470. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16471. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16472. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16473. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16474. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16475. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16476. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16477. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16478. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16479. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16480. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16481. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  16482. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16483. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16484. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16485. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16486. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  16487. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  16488. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16489. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16490. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16491. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  16492. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16493. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  16494. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  16495. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16496. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16497. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16498. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16499. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16500. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16501. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16502. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16503. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  16504. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16505. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16506. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16507. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16508. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16509. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16510. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16511. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  16512. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16513. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16514. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16515. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16516. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16517. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16518. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16519. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16520. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16521. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16522. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16523. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16524. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16525. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16526. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16527. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  16528. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16529. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16530. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16531. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16532. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16533. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16534. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16535. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16536. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16537. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16538. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16539. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16540. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16541. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16542. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  16543. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16544. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16545. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16546. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16547. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16548. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16549. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16550. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16551. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16552. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16553. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16554. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16555. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16556. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16557. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  16558. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16559. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  16560. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  16561. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  16562. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16563. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16564. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16565. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16566. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16567. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16568. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16569. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16570. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16571. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16572. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16573. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16574. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16575. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16576. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16577. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  16578. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16579. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16580. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16581. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16582. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16583. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16584. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16585. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16586. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16587. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16588. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16589. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16590. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16591. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16592. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16593. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  16594. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16595. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16596. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16597. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16598. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16599. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16600. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16601. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16602. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16603. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16604. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16605. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16606. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16607. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16608. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16609. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  16610. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16611. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16612. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  16613. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  16614. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  16615. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  16616. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  16617. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  16618. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  16619. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  16620. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  16621. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  16622. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  16623. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  16624. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  16625. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  16626. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  16627. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  16628. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16629. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16630. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16631. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16632. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16633. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16634. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16635. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16636. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16637. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16638. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16639. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16640. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16641. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16642. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16643. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16644. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  16645. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16646. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16647. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16648. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16649. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16650. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16651. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16652. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16653. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16654. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16655. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16656. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16657. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16658. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16659. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16660. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16661. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  16662. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16663. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16664. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16665. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16666. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16667. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16668. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16669. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16670. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16671. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16672. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16673. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16674. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16675. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16676. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16677. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16678. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  16679. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16680. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16681. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16682. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16683. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16684. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16685. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16686. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16687. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16688. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16689. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16690. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16691. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16692. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16693. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16694. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16695. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  16696. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16697. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16698. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16699. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16700. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16701. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16702. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16703. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16704. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16705. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16706. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16707. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16708. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16709. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16710. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16711. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16712. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  16713. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16714. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16715. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16716. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16717. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16718. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16719. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16720. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16721. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16722. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16723. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16724. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16725. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16726. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16727. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16728. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16729. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  16730. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16731. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16732. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16733. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16734. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16735. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16736. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16737. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16738. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16739. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16740. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16741. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16742. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16743. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16744. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16745. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16746. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  16747. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16748. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16749. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16750. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16751. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16752. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16753. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16754. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16755. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16756. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16757. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16758. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16759. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16760. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16761. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16762. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16763. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  16764. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16765. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16766. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16767. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16768. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16769. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16770. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16771. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16772. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16773. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16774. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16775. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16776. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16777. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16778. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16779. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16780. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  16781. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16782. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16783. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16784. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16785. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16786. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16787. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16788. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16789. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16790. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16791. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16792. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16793. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16794. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16795. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16796. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16797. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  16798. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16799. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16800. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16801. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16802. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16803. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16804. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16805. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16806. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16807. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16808. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16809. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16810. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16811. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16812. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16813. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16814. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  16815. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16816. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16817. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16818. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16819. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16820. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16821. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16822. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16823. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16824. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16825. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16826. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16827. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16828. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16829. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16830. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16831. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  16832. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16833. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16834. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16835. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16836. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16837. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16838. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16839. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16840. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16841. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16842. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16843. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16844. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16845. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16846. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16847. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16848. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  16849. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16850. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16851. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16852. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16853. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16854. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16855. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16856. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16857. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16858. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16859. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16860. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16861. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16862. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16863. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16864. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16865. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  16866. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16867. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16868. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16869. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16870. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16871. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16872. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16873. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16874. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16875. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16876. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16877. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16878. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16879. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16880. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16881. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16882. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  16883. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16884. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16885. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16886. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16887. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16888. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16889. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16890. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16891. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16892. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16893. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16894. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16895. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16896. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16897. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16898. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16899. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  16900. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16901. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16902. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16903. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16904. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16905. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16906. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16907. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16908. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16909. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16910. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16911. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16912. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16913. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16914. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16915. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16916. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16917. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  16918. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16919. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16920. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16921. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16922. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16923. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16924. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16925. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16926. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16927. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16928. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16929. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16930. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16931. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16932. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16933. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16934. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  16935. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16936. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16937. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16938. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16939. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16940. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16941. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16942. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16943. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16944. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16945. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16946. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16947. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16948. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16949. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16950. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16951. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16952. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  16953. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16954. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16955. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16956. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16957. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16958. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16959. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16960. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16961. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16962. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16963. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16964. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16965. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16966. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16967. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16968. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16969. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16970. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  16971. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16972. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16973. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16974. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16975. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16976. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16977. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16978. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16979. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16980. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16981. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  16982. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  16983. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  16984. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  16985. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  16986. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  16987. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  16988. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  16989. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  16990. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  16991. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  16992. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  16993. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  16994. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  16995. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  16996. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  16997. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  16998. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  16999. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17000. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17001. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17002. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17003. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17004. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17005. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17006. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  17007. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17008. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17009. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17010. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17011. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17012. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17013. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17014. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17015. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17016. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17017. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17018. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17019. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17020. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17021. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17022. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17023. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  17024. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17025. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17026. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17027. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17028. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17029. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17030. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17031. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17032. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17033. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17034. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17035. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17036. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17037. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17038. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17039. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17040. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17041. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  17042. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17043. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17044. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17045. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17046. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17047. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17048. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17049. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17050. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17051. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17052. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17053. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17054. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17055. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17056. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17057. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17058. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17059. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  17060. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  17061. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  17062. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  17063. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  17064. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  17065. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  17066. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  17067. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  17068. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  17069. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  17070. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  17071. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  17072. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  17073. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  17074. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  17075. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  17076. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  17077. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  17078. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  17079. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  17080. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  17081. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  17082. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  17083. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  17084. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  17085. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17086. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17087. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17088. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17089. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17090. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17091. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17092. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17093. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17094. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17095. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17096. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17097. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17098. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17099. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17100. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17101. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17102. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17103. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17104. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17105. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  17106. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  17107. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  17108. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17109. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17110. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  17111. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  17112. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17113. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17114. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17115. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  17116. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  17117. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17118. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  17119. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17120. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  17121. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17122. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  17123. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17124. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17125. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17126. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  17127. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17128. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17129. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17130. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17131. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17132. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17133. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17134. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17135. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  17136. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17137. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17138. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17139. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17140. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17141. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17142. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17143. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17144. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17145. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17146. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17147. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  17148. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  17149. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17150. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17151. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17152. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17153. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17154. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17155. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17156. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17157. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17158. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17159. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17160. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17161. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17162. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17163. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17164. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17165. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17166. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17167. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17168. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17169. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17170. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17171. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17172. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17173. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17174. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17175. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17176. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17177. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17178. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17179. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17180. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17181. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17182. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17183. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17184. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17185. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17186. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17187. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17188. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17189. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17190. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17191. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17192. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17193. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17194. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17195. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17196. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17197. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17198. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17199. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17200. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17201. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17202. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17203. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17204. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17205. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17206. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17207. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17208. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17209. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17210. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17211. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17212. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17213. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17214. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17215. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17216. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17217. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17218. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17219. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17220. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17221. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17222. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17223. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17224. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17225. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17226. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17227. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17228. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17229. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17230. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17231. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17232. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17233. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17234. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17235. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17236. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17237. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17238. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17239. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17240. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17241. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17242. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17243. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17244. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17245. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17246. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17247. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17248. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17249. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17250. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17251. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17252. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17253. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17254. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17255. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17256. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17257. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17258. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17259. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17260. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17261. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17262. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17263. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17264. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17265. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17266. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17267. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17268. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17269. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17270. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17271. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17272. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17273. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17274. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17275. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17276. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17277. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17278. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17279. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17280. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17281. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17282. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17283. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17284. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17285. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17286. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17287. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17288. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17289. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17290. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17291. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17292. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17293. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17294. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17295. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17296. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17297. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17298. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17299. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17300. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17301. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17302. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17303. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17304. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17305. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17306. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17307. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17308. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17309. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17310. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17311. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17312. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17313. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17314. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17315. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17316. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17317. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17318. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17319. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17320. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17321. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17322. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17323. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17324. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17325. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17326. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17327. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17328. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17329. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17330. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17331. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17332. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17333. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17334. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17335. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17336. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17337. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17338. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17339. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17340. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17341. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17342. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17343. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17344. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17345. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17346. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17347. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17348. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17349. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17350. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17351. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17352. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17353. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17354. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17355. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17356. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17357. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17358. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17359. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17360. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17361. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17362. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17363. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17364. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17365. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17366. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17367. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17368. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17369. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17370. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17371. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17372. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17373. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17374. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  17375. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  17376. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  17377. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  17378. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17379. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17380. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17381. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17382. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17383. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17384. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17385. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17386. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17387. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17388. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17389. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17390. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17391. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  17392. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  17393. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  17394. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  17395. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  17396. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  17397. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  17398. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  17399. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17400. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  17401. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  17402. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  17403. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  17404. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17405. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  17406. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  17407. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  17408. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  17409. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  17410. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  17411. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17412. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17413. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17414. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17415. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17416. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17417. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17418. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17419. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17420. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17421. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17422. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17423. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17424. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17425. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17426. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17427. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17428. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17429. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17430. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17431. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  17432. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17433. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17434. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17435. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17436. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17437. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17438. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17439. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17440. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17441. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17442. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17443. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17444. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17445. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17446. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17447. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17448. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  17449. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  17450. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17451. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17452. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17453. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17454. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17455. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17456. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17457. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17458. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17459. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17460. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17461. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17462. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17463. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17464. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17465. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17466. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  17467. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17468. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17469. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17470. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17471. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17472. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17473. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17474. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17475. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17476. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17477. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17478. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17479. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17480. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17481. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17482. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17483. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  17484. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17485. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17486. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17487. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17488. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17489. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17490. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17491. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17492. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17493. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17494. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17495. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  17496. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17497. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17498. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17499. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17500. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17501. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17502. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17503. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17504. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17505. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17506. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17507. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17508. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17509. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17510. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17511. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17512. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17513. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17514. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17515. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17516. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17517. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17518. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  17519. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  17520. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  17521. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  17522. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  17523. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  17524. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  17525. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  17526. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  17527. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  17528. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  17529. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  17530. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  17531. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  17532. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  17533. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  17534. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  17535. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  17536. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17537. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17538. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17539. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17540. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17541. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17542. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17543. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17544. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17545. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17546. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17547. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17548. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17549. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17550. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17551. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17552. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  17553. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17554. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17555. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17556. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17557. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17558. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17559. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17560. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17561. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17562. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17563. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17564. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17565. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17566. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17567. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17568. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17569. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  17570. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17571. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17572. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17573. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17574. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17575. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17576. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17577. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17578. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17579. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17580. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17581. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17582. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17583. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17584. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17585. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17586. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  17587. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17588. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17589. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17590. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17591. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17592. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17593. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17594. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17595. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17596. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17597. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17598. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17599. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17600. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17601. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17602. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17603. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  17604. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  17605. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  17606. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  17607. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  17608. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  17609. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  17610. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  17611. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  17612. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  17613. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  17614. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  17615. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  17616. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  17617. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  17618. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  17619. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  17620. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  17621. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17622. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17623. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17624. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17625. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17626. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  17627. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17628. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17629. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17630. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  17631. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17632. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17633. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17634. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17635. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17636. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  17637. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17638. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17639. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17640. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17641. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17642. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  17643. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17644. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17645. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17646. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17647. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17648. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  17649. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17650. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17651. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17652. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17653. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17654. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  17655. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17656. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17657. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17658. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17659. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17660. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  17661. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  17662. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17663. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17664. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17665. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17666. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  17667. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17668. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17669. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17670. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17671. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17672. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  17673. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17674. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17675. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17676. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17677. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17678. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  17679. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17680. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17681. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17682. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17683. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17684. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  17685. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17686. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17687. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17688. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17689. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17690. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  17691. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17692. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17693. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17694. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17695. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17696. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  17697. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17698. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17699. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17700. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17701. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17702. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  17703. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17704. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17705. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17706. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17707. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17708. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  17709. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17710. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17711. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17712. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17713. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17714. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  17715. {"HDMI", NULL, "HDMI_DL_HL"},
  17716. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17717. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17718. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17719. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17720. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17721. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  17722. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17723. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17724. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17725. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17726. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17727. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  17728. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17729. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17730. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17731. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17732. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17733. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  17734. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17735. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17736. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17737. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17738. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17739. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  17740. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17741. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17742. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  17743. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17744. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17745. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  17746. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17747. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17748. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17749. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17750. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  17751. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  17752. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  17753. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17754. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  17755. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  17756. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  17757. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  17758. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17759. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17760. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17761. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17762. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  17763. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17764. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  17765. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  17766. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  17767. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17768. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17769. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17770. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17771. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17772. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17773. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17774. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17775. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17776. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17777. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17778. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17779. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17780. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17781. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17782. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17783. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17784. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17785. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17786. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17787. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17788. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17789. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17790. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17791. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17792. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17793. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17794. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17795. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17796. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17797. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17798. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17799. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17800. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17801. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17802. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17803. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17804. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17805. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17806. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17807. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17808. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17809. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  17810. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  17811. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  17812. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  17813. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  17814. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  17815. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17816. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17817. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17818. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17819. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17820. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17821. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17822. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17823. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17824. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17825. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17826. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17827. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17828. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17829. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17830. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17831. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17832. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17833. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17834. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17835. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  17836. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  17837. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17838. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17839. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17840. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17841. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17842. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17843. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17844. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17845. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17846. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17847. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  17848. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  17849. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  17850. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  17851. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  17852. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  17853. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  17854. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  17855. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  17856. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  17857. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  17858. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  17859. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  17860. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  17861. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  17862. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  17863. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  17864. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  17865. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  17866. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  17867. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  17868. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  17869. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  17870. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  17871. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  17872. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  17873. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  17874. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  17875. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  17876. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  17877. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  17878. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  17879. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  17880. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  17881. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  17882. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  17883. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  17884. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  17885. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  17886. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  17887. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  17888. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  17889. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  17890. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  17891. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  17892. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  17893. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  17894. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  17895. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  17896. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  17897. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  17898. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  17899. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  17900. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  17901. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  17902. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  17903. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  17904. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  17905. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  17906. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  17907. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  17908. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  17909. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  17910. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  17911. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  17912. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  17913. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  17914. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  17915. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  17916. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  17917. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  17918. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  17919. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  17920. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  17921. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  17922. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  17923. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  17924. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  17925. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  17926. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  17927. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  17928. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  17929. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17930. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17931. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17932. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17933. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17934. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17935. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17936. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17937. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17938. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17939. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  17940. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17941. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17942. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17943. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17944. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17945. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17946. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17947. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17948. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17949. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17950. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  17951. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17952. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17953. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17954. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17955. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17956. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17957. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17958. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17959. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17960. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17961. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  17962. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17963. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17964. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17965. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17966. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17967. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17968. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17969. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17970. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17971. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17972. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  17973. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17974. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17975. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17976. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17977. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17978. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  17979. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17980. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  17981. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17982. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17983. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  17984. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17985. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17986. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17987. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17988. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17989. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17990. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  17991. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  17992. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  17993. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  17994. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  17995. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  17996. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  17997. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  17998. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  17999. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18000. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18001. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  18002. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  18003. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  18004. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  18005. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  18006. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  18007. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18008. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  18009. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  18010. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  18011. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  18012. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  18013. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  18014. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  18015. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  18016. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  18017. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  18018. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  18019. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  18020. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  18021. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  18022. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  18023. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  18024. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  18025. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  18026. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  18027. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  18028. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  18029. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  18030. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  18031. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  18032. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  18033. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  18034. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  18035. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  18036. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  18037. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  18038. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18039. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  18040. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  18041. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  18042. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  18043. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  18044. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  18045. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  18046. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  18047. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  18048. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  18049. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  18050. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  18051. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18052. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  18053. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  18054. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  18055. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  18056. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  18057. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  18058. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  18059. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  18060. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  18061. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  18062. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  18063. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  18064. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  18065. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18066. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  18067. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  18068. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  18069. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  18070. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  18071. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  18072. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  18073. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  18074. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  18075. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  18076. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  18077. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  18078. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  18079. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  18080. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  18081. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  18082. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  18083. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  18084. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  18085. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  18086. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  18087. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  18088. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  18089. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  18090. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  18091. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  18092. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  18093. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  18094. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  18095. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  18096. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  18097. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  18098. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  18099. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  18100. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  18101. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  18102. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  18103. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  18104. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  18105. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  18106. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  18107. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  18108. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  18109. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  18110. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  18111. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  18112. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  18113. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  18114. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  18115. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18116. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18117. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18118. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18119. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18120. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18121. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18122. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18123. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18124. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18125. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18126. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18127. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18128. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18129. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18130. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18131. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18132. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18133. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18134. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18135. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  18136. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18137. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18138. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18139. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18140. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18141. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18142. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18143. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18144. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18145. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18146. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18147. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18148. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18149. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18150. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18151. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18152. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18153. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18154. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18155. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18156. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  18157. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18158. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18159. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18160. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18161. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18162. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18163. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18164. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18165. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18166. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18167. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18168. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18169. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18170. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18171. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18172. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18173. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18174. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18175. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18176. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18177. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  18178. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18179. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18180. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18181. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18182. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18183. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18184. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18185. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18186. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  18187. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  18188. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  18189. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  18190. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18191. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18192. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18193. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18194. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18195. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18196. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18197. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18198. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  18199. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18200. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18201. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18202. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18203. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18204. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18205. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18206. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18207. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18208. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18209. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18210. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18211. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18212. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18213. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18214. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18215. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18216. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18217. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18218. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18219. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  18220. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18221. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18222. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18223. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18224. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18225. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18226. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18227. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18228. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18229. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18230. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18231. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18232. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18233. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18234. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18235. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18236. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18237. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18238. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18239. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18240. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  18241. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18242. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18243. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18244. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18245. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18246. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18247. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18248. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18249. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18250. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18251. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18252. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18253. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18254. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18255. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18256. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18257. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18258. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18259. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18260. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18261. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  18262. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18263. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18264. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18265. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18266. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18267. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18268. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18269. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18270. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  18271. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  18272. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  18273. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  18274. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18275. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18276. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18277. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18278. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18279. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18280. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18281. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18282. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  18283. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18284. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18285. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18286. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18287. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18288. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18289. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18290. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18291. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18292. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18293. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18294. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18295. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18296. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18297. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18298. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18299. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18300. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18301. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18302. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18303. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  18304. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18305. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18306. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18307. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18308. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18309. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18310. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18311. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18312. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18313. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18314. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18315. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18316. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18317. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18318. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18319. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18320. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18321. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18322. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18323. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18324. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  18325. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18326. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18327. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18328. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18329. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18330. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18331. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18332. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18333. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18334. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18335. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18336. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18337. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18338. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18339. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18340. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18341. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18342. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18343. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18344. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18345. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  18346. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18347. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18348. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18349. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18350. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18351. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18352. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18353. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18354. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18355. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18356. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18357. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18358. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18359. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18360. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18361. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18362. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18363. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18364. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18365. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18366. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  18367. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18368. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18369. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18370. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18371. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18372. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18373. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18374. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18375. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18376. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18377. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18378. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18379. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18380. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18381. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18382. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18383. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18384. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18385. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18386. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18387. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  18388. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18389. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18390. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18391. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18392. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18393. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18394. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18395. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18396. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18397. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18398. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18399. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18400. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18401. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18402. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18403. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18404. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18405. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18406. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18407. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18408. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  18409. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18410. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18411. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18412. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18413. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18414. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18415. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18416. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18417. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18418. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18419. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18420. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18421. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18422. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18423. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18424. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18425. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18426. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18427. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18428. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18429. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  18430. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18431. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18432. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18433. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18434. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18435. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18436. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18437. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18438. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18439. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18440. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18441. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18442. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18443. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18444. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18445. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18446. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18447. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18448. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18449. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18450. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  18451. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18452. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18453. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18454. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18455. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18456. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18457. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18458. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18459. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18460. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18461. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18462. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18463. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18464. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18465. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18466. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18467. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18468. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18469. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18470. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18471. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  18472. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18473. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18474. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18475. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18476. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18477. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18478. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18479. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18480. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18481. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18482. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18483. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18484. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18485. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18486. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18487. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18488. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18489. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18490. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18491. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18492. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  18493. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18494. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18495. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18496. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18497. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18498. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18499. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18500. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18501. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18502. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18503. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18504. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18505. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18506. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18507. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18508. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18509. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18510. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18511. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18512. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18513. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  18514. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18515. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18516. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18517. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18518. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18519. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18520. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18521. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18522. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  18523. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  18524. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  18525. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  18526. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18527. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  18528. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  18529. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  18530. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  18531. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  18532. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  18533. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  18534. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  18535. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18536. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18537. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18538. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18539. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18540. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18541. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18542. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18543. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18544. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18545. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  18546. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18547. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18548. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18549. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18550. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18551. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18552. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18553. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18554. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18555. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18556. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  18557. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18558. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18559. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18560. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18561. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18562. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18563. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18564. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18565. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18566. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18567. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18568. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18569. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18570. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18571. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18572. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18573. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18574. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  18575. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18576. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18577. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  18578. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  18579. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  18580. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  18581. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  18582. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  18583. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18584. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18585. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18586. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18587. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  18588. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18589. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  18590. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18591. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18592. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18593. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18594. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  18595. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18596. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18597. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18598. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  18599. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18600. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18601. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18602. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  18603. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18604. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18605. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18606. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  18607. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18608. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18609. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18610. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18611. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18612. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18613. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  18614. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  18615. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  18616. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  18617. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18618. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18619. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  18620. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18621. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18622. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18623. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18624. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18625. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18626. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  18627. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18628. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18629. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18630. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18631. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18632. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18633. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18634. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18635. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18636. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18637. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18638. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  18639. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  18640. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18641. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  18642. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18643. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18644. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  18645. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18646. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18647. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  18648. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18649. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18650. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  18651. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18652. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18653. {"STUB_RX", NULL, "STUB_RX Mixer"},
  18654. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18655. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18656. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  18657. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18658. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18659. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  18660. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18661. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18662. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18663. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18664. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18665. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  18666. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  18667. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  18668. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  18669. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  18670. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  18671. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  18672. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18673. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  18674. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18675. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  18676. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18677. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18678. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  18679. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  18680. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18681. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  18682. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  18683. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  18684. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  18685. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18686. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18687. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18688. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  18689. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18690. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18691. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18692. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18693. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18694. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18695. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18696. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18697. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  18698. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18699. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  18700. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18701. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  18702. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  18703. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  18704. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18705. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  18706. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  18707. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  18708. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  18709. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18710. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18711. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18712. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18713. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18714. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18715. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18716. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  18717. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18718. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  18719. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  18720. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18721. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18722. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18723. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18724. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18725. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18726. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18727. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18728. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18729. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  18730. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18731. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18732. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18733. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18734. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18735. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18736. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18737. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  18738. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18739. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18740. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18741. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18742. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18743. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18744. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  18745. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  18746. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18747. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  18748. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  18749. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  18750. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  18751. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  18752. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  18753. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  18754. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  18755. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  18756. /* Backend Enablement */
  18757. {"BE_OUT", NULL, "PRI_I2S_RX"},
  18758. {"BE_OUT", NULL, "SEC_I2S_RX"},
  18759. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  18760. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  18761. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  18762. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18763. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  18764. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  18765. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  18766. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  18767. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  18768. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  18769. {"BE_OUT", NULL, "HDMI"},
  18770. {"BE_OUT", NULL, "DISPLAY_PORT"},
  18771. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  18772. {"BE_OUT", NULL, "SPDIF_RX"},
  18773. {"BE_OUT", NULL, "MI2S_RX"},
  18774. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  18775. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  18776. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  18777. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  18778. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  18779. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  18780. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  18781. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  18782. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  18783. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  18784. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  18785. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18786. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  18787. {"BE_OUT", NULL, "INT_FM_RX"},
  18788. {"BE_OUT", NULL, "PCM_RX"},
  18789. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18790. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18791. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  18792. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  18793. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  18794. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  18795. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  18796. {"BE_OUT", NULL, "INT_FM_RX"},
  18797. {"BE_OUT", NULL, "PCM_RX"},
  18798. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18799. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  18800. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  18801. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  18802. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  18803. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  18804. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  18805. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  18806. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  18807. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  18808. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  18809. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  18810. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  18811. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  18812. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  18813. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  18814. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  18815. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  18816. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  18817. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  18818. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  18819. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  18820. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  18821. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  18822. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  18823. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  18824. {"PRI_I2S_TX", NULL, "BE_IN"},
  18825. {"MI2S_TX", NULL, "BE_IN"},
  18826. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  18827. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  18828. {"PRI_MI2S_TX", NULL, "BE_IN"},
  18829. {"TERT_MI2S_TX", NULL, "BE_IN"},
  18830. {"INT0_MI2S_TX", NULL, "BE_IN"},
  18831. {"INT2_MI2S_TX", NULL, "BE_IN"},
  18832. {"INT3_MI2S_TX", NULL, "BE_IN"},
  18833. {"INT4_MI2S_TX", NULL, "BE_IN"},
  18834. {"INT5_MI2S_TX", NULL, "BE_IN"},
  18835. {"SEC_MI2S_TX", NULL, "BE_IN"},
  18836. {"SENARY_MI2S_TX", NULL, "BE_IN" },
  18837. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  18838. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  18839. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  18840. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  18841. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  18842. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  18843. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  18844. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  18845. {"USB_AUDIO_TX", NULL, "BE_IN" },
  18846. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  18847. {"INT_FM_TX", NULL, "BE_IN"},
  18848. {"PCM_TX", NULL, "BE_IN"},
  18849. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  18850. {"BE_OUT", NULL, "STUB_RX"},
  18851. {"STUB_TX", NULL, "BE_IN"},
  18852. {"STUB_1_TX", NULL, "BE_IN"},
  18853. {"BE_OUT", NULL, "AUX_PCM_RX"},
  18854. {"AUX_PCM_TX", NULL, "BE_IN"},
  18855. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  18856. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  18857. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  18858. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  18859. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  18860. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  18861. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18862. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  18863. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18864. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  18865. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  18866. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18867. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  18868. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  18869. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  18870. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  18871. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  18872. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  18873. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  18874. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  18875. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  18876. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  18877. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  18878. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  18879. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  18880. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  18881. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  18882. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  18883. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  18884. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  18885. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  18886. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  18887. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  18888. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  18889. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  18890. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  18891. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  18892. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  18893. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  18894. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  18895. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18896. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18897. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  18898. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  18899. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  18900. };
  18901. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  18902. struct snd_pcm_hw_params *params)
  18903. {
  18904. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18905. unsigned int be_id = rtd->dai_link->id;
  18906. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18907. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18908. return -EINVAL;
  18909. }
  18910. mutex_lock(&routing_lock);
  18911. msm_bedais[be_id].sample_rate = params_rate(params);
  18912. msm_bedais[be_id].channel = params_channels(params);
  18913. msm_bedais[be_id].format = params_format(params);
  18914. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  18915. __func__, msm_bedais[be_id].sample_rate,
  18916. msm_bedais[be_id].format, be_id);
  18917. mutex_unlock(&routing_lock);
  18918. return 0;
  18919. }
  18920. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  18921. {
  18922. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18923. unsigned int be_id = rtd->dai_link->id;
  18924. int i, session_type, path_type, topology;
  18925. struct msm_pcm_routing_bdai_data *bedai;
  18926. struct msm_pcm_routing_fdai_data *fdai;
  18927. pr_debug("%s: substream->pcm->id:%s\n",
  18928. __func__, substream->pcm->id);
  18929. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18930. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18931. return -EINVAL;
  18932. }
  18933. bedai = &msm_bedais[be_id];
  18934. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  18935. 0 : 1);
  18936. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  18937. path_type = ADM_PATH_PLAYBACK;
  18938. else
  18939. path_type = ADM_PATH_LIVE_REC;
  18940. mutex_lock(&routing_lock);
  18941. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  18942. if (!is_mm_lsm_fe_id(i))
  18943. continue;
  18944. fdai = &fe_dai_map[i][session_type];
  18945. if (fdai->strm_id != INVALID_SESSION) {
  18946. int idx;
  18947. int port_id;
  18948. unsigned long copp =
  18949. session_copp_map[i][session_type][be_id];
  18950. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  18951. if (test_bit(idx, &copp))
  18952. break;
  18953. fdai->be_srate = bedai->sample_rate;
  18954. port_id = bedai->port_id;
  18955. topology = adm_get_topology_for_port_copp_idx(port_id,
  18956. idx);
  18957. msm_routing_unload_topology(topology);
  18958. adm_close(bedai->port_id, fdai->perf_mode, idx);
  18959. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  18960. __func__, copp, i, session_type, be_id,
  18961. topology);
  18962. clear_bit(idx,
  18963. &session_copp_map[i][session_type][be_id]);
  18964. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  18965. (bedai->passthr_mode[i] == LEGACY_PCM))
  18966. msm_pcm_routing_deinit_pp(bedai->port_id,
  18967. topology);
  18968. }
  18969. }
  18970. bedai->active = 0;
  18971. bedai->sample_rate = 0;
  18972. bedai->channel = 0;
  18973. for (i = 0; i < MSM_FRONTEND_DAI_MAX; i++) {
  18974. if (bedai->passthr_mode[i] != LISTEN)
  18975. bedai->passthr_mode[i] = LEGACY_PCM;
  18976. }
  18977. mutex_unlock(&routing_lock);
  18978. return 0;
  18979. }
  18980. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  18981. {
  18982. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  18983. unsigned int be_id = rtd->dai_link->id;
  18984. int i, path_type, topology;
  18985. int session_type = INVALID_SESSION;
  18986. struct msm_pcm_routing_bdai_data *bedai;
  18987. u32 channels, sample_rate;
  18988. uint16_t bits_per_sample = 16, voc_path_type;
  18989. struct msm_pcm_routing_fdai_data *fdai;
  18990. u32 session_id;
  18991. struct media_format_info voc_be_media_format;
  18992. bool is_lsm;
  18993. pr_debug("%s: substream->pcm->id:%s\n",
  18994. __func__, substream->pcm->id);
  18995. if (be_id >= MSM_BACKEND_DAI_MAX) {
  18996. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  18997. return -EINVAL;
  18998. }
  18999. bedai = &msm_bedais[be_id];
  19000. mutex_lock(&routing_lock);
  19001. if (bedai->active == 1)
  19002. goto done; /* Ignore prepare if back-end already active */
  19003. /* AFE port is not active at this point. However, still
  19004. * go ahead setting active flag under the notion that
  19005. * QDSP6 is able to handle ADM starting before AFE port
  19006. * is started.
  19007. */
  19008. bedai->active = 1;
  19009. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19010. if (!(is_mm_lsm_fe_id(i) &&
  19011. route_check_fe_id_adm_support(i)))
  19012. continue;
  19013. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  19014. if (bedai->passthr_mode[i] != LEGACY_PCM)
  19015. path_type = ADM_PATH_COMPRESSED_RX;
  19016. else
  19017. path_type = ADM_PATH_PLAYBACK;
  19018. session_type = SESSION_TYPE_RX;
  19019. } else {
  19020. path_type = ADM_PATH_LIVE_REC;
  19021. session_type = SESSION_TYPE_TX;
  19022. }
  19023. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  19024. (i <= MSM_FRONTEND_DAI_LSM8);
  19025. fdai = &fe_dai_map[i][session_type];
  19026. if (fdai->strm_id != INVALID_SESSION) {
  19027. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  19028. if (session_type == SESSION_TYPE_TX &&
  19029. fdai->be_srate &&
  19030. (fdai->be_srate != bedai->sample_rate)) {
  19031. pr_debug("%s: flush strm %d diff BE rates\n",
  19032. __func__,
  19033. fdai->strm_id);
  19034. if (fdai->event_info.event_func)
  19035. fdai->event_info.event_func(
  19036. MSM_PCM_RT_EVT_BUF_RECFG,
  19037. fdai->event_info.priv_data);
  19038. fdai->be_srate = 0; /* might not need it */
  19039. }
  19040. bits_per_sample = msm_routing_get_bit_width(
  19041. bedai->format);
  19042. app_type =
  19043. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  19044. if (app_type && is_lsm) {
  19045. app_type_idx =
  19046. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  19047. sample_rate =
  19048. fe_dai_app_type_cfg[i][session_type][be_id]
  19049. .sample_rate;
  19050. bits_per_sample =
  19051. lsm_app_type_cfg[app_type_idx].bit_width;
  19052. } else if (app_type) {
  19053. app_type_idx =
  19054. msm_pcm_routing_get_app_type_idx(app_type);
  19055. sample_rate =
  19056. fe_dai_app_type_cfg[i][session_type]
  19057. [be_id].sample_rate;
  19058. bits_per_sample =
  19059. app_type_cfg[app_type_idx].bit_width;
  19060. } else
  19061. sample_rate = bedai->sample_rate;
  19062. /*
  19063. * check if ADM needs to be configured with different
  19064. * channel mapping than backend
  19065. */
  19066. if (!bedai->adm_override_ch)
  19067. channels = bedai->channel;
  19068. else
  19069. channels = bedai->adm_override_ch;
  19070. acdb_dev_id =
  19071. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  19072. topology = msm_routing_get_adm_topology(i, session_type,
  19073. be_id);
  19074. copp_idx = adm_open(bedai->port_id, path_type,
  19075. sample_rate, channels, topology,
  19076. fdai->perf_mode, bits_per_sample,
  19077. app_type, acdb_dev_id);
  19078. if ((copp_idx < 0) ||
  19079. (copp_idx >= MAX_COPPS_PER_PORT)) {
  19080. pr_err("%s: adm open failed\n", __func__);
  19081. mutex_unlock(&routing_lock);
  19082. return -EINVAL;
  19083. }
  19084. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  19085. __func__, i, session_type, be_id);
  19086. set_bit(copp_idx,
  19087. &session_copp_map[i][session_type][be_id]);
  19088. if (msm_is_resample_needed(
  19089. sample_rate,
  19090. bedai->sample_rate))
  19091. adm_copp_mfc_cfg(
  19092. bedai->port_id, copp_idx,
  19093. bedai->sample_rate);
  19094. msm_pcm_routing_build_matrix(i, session_type, path_type,
  19095. fdai->perf_mode,
  19096. bedai->passthr_mode[i]);
  19097. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  19098. (bedai->passthr_mode[i] == LEGACY_PCM))
  19099. msm_pcm_routing_cfg_pp(bedai->port_id, copp_idx,
  19100. topology, channels);
  19101. }
  19102. }
  19103. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  19104. session_id = msm_pcm_routing_get_voc_sessionid(i);
  19105. if (session_id) {
  19106. pr_debug("%s voice session_id: 0x%x\n", __func__,
  19107. session_id);
  19108. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  19109. voc_path_type = RX_PATH;
  19110. else
  19111. voc_path_type = TX_PATH;
  19112. voc_set_route_flag(session_id, voc_path_type, 1);
  19113. memset(&voc_be_media_format, 0,
  19114. sizeof(struct media_format_info));
  19115. voc_be_media_format.port_id = bedai->port_id;
  19116. voc_be_media_format.num_channels = bedai->channel;
  19117. voc_be_media_format.sample_rate = bedai->sample_rate;
  19118. voc_be_media_format.bits_per_sample = bedai->format;
  19119. /* Defaulting this to 1 for voice call usecases */
  19120. voc_be_media_format.channel_mapping[0] = 1;
  19121. voc_set_device_config(session_id, voc_path_type,
  19122. &voc_be_media_format);
  19123. if (voc_get_route_flag(session_id, RX_PATH) &&
  19124. voc_get_route_flag(session_id, TX_PATH))
  19125. voc_enable_device(session_id);
  19126. }
  19127. }
  19128. /* Check if backend is an external ec ref port and set as needed */
  19129. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  19130. memset(&voc_be_media_format, 0,
  19131. sizeof(struct media_format_info));
  19132. /* Get format info for ec ref port from msm_bedais[] */
  19133. voc_be_media_format.port_id = bedai->port_id;
  19134. voc_be_media_format.num_channels = bedai->channel;
  19135. voc_be_media_format.bits_per_sample = bedai->format;
  19136. voc_be_media_format.sample_rate = bedai->sample_rate;
  19137. /* Defaulting this to 1 for voice call usecases */
  19138. voc_be_media_format.channel_mapping[0] = 1;
  19139. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  19140. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  19141. __func__, voc_be_media_format.port_id,
  19142. voc_be_media_format.num_channels,
  19143. voc_be_media_format.bits_per_sample,
  19144. voc_be_media_format.sample_rate);
  19145. }
  19146. done:
  19147. mutex_unlock(&routing_lock);
  19148. return 0;
  19149. }
  19150. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  19151. int fe_id)
  19152. {
  19153. int index, topo_id, be_idx;
  19154. unsigned long pp_config = 0;
  19155. bool mute_on;
  19156. int latency;
  19157. bool compr_passthr_mode = true;
  19158. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  19159. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  19160. pr_err("%s: Device pp params on invalid port %d\n",
  19161. __func__, port_id);
  19162. return -EINVAL;
  19163. }
  19164. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19165. if (port_id == msm_bedais[be_idx].port_id)
  19166. break;
  19167. }
  19168. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19169. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19170. return -EINVAL;
  19171. }
  19172. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19173. if (msm_bedais_pp_params[index].port_id == port_id)
  19174. break;
  19175. }
  19176. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19177. pr_err("%s: Invalid backend pp params index %d\n",
  19178. __func__, index);
  19179. return -EINVAL;
  19180. }
  19181. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  19182. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  19183. pr_err("%s: Invalid passthrough topology 0x%x\n",
  19184. __func__, topo_id);
  19185. return -EINVAL;
  19186. }
  19187. if ((msm_bedais[be_idx].passthr_mode[fe_id] == LEGACY_PCM) ||
  19188. (msm_bedais[be_idx].passthr_mode[fe_id] == LISTEN))
  19189. compr_passthr_mode = false;
  19190. pp_config = msm_bedais_pp_params[index].pp_params_config;
  19191. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  19192. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19193. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  19194. mute_on = msm_bedais_pp_params[index].mute_on;
  19195. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19196. adm_send_compressed_device_mute(port_id,
  19197. copp_idx,
  19198. mute_on);
  19199. }
  19200. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  19201. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19202. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  19203. &pp_config);
  19204. latency = msm_bedais_pp_params[index].latency;
  19205. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19206. adm_send_compressed_device_latency(port_id,
  19207. copp_idx,
  19208. latency);
  19209. }
  19210. return 0;
  19211. }
  19212. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  19213. {
  19214. uint32_t topology = NULL_COPP_TOPOLOGY;
  19215. void *cal_info = NULL;
  19216. uint32_t size = 0;
  19217. /* Retrieve cal_info size from cal data*/
  19218. size = data_size - sizeof(struct audio_cal_type_basic);
  19219. cal_info = kzalloc(size, GFP_KERNEL);
  19220. if (!cal_info)
  19221. goto done;
  19222. memcpy(cal_info,
  19223. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  19224. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  19225. kfree(cal_info);
  19226. cal_info = NULL;
  19227. done:
  19228. pr_debug("%s: Using topology %d\n", __func__, topology);
  19229. return topology;
  19230. }
  19231. static void msm_routing_load_topology(size_t data_size, void *data)
  19232. {
  19233. uint32_t topology_id;
  19234. int ret;
  19235. topology_id = msm_routing_get_topology(data_size, data);
  19236. if (topology_id != NULL_COPP_TOPOLOGY)
  19237. ret = q6core_load_unload_topo_modules(topology_id,
  19238. CORE_LOAD_TOPOLOGY);
  19239. if (ret < 0)
  19240. pr_debug("%s %d load topology failed\n",
  19241. __func__, topology_id);
  19242. }
  19243. static void msm_routing_unload_topology(uint32_t topology_id)
  19244. {
  19245. int ret;
  19246. if (topology_id != NULL_COPP_TOPOLOGY)
  19247. ret = q6core_load_unload_topo_modules(topology_id,
  19248. CORE_UNLOAD_TOPOLOGY);
  19249. if (ret < 0)
  19250. pr_debug("%s %d unload topology failed\n",
  19251. __func__, topology_id);
  19252. }
  19253. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19254. struct snd_ctl_elem_value *ucontrol)
  19255. {
  19256. int pp_id = ucontrol->value.integer.value[0];
  19257. int port_id = 0;
  19258. int index, be_idx, i, topo_id, idx;
  19259. bool mute;
  19260. int latency;
  19261. bool compr_passthr_mode = true;
  19262. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  19263. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  19264. port_id = msm_bedais[be_idx].port_id;
  19265. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  19266. break;
  19267. }
  19268. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  19269. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  19270. return -EINVAL;
  19271. }
  19272. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  19273. if (msm_bedais_pp_params[index].port_id == port_id)
  19274. break;
  19275. }
  19276. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  19277. pr_err("%s: Invalid pp params backend index %d\n",
  19278. __func__, index);
  19279. return -EINVAL;
  19280. }
  19281. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  19282. MSM_FRONTEND_DAI_MM_SIZE) {
  19283. if ((msm_bedais[be_idx].passthr_mode[i] == LEGACY_PCM) ||
  19284. (msm_bedais[be_idx].passthr_mode[i] == LISTEN))
  19285. compr_passthr_mode = false;
  19286. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19287. unsigned long copp =
  19288. session_copp_map[i]
  19289. [SESSION_TYPE_RX][be_idx];
  19290. if (!test_bit(idx, &copp))
  19291. continue;
  19292. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  19293. idx);
  19294. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  19295. continue;
  19296. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  19297. __func__, port_id, copp, msm_bedais[be_idx].active,
  19298. msm_bedais[be_idx].passthr_mode[i]);
  19299. switch (pp_id) {
  19300. case ADM_PP_PARAM_MUTE_ID:
  19301. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  19302. mute = ucontrol->value.integer.value[1] ? true : false;
  19303. msm_bedais_pp_params[index].mute_on = mute;
  19304. set_bit(ADM_PP_PARAM_MUTE_BIT,
  19305. &msm_bedais_pp_params[index].pp_params_config);
  19306. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19307. adm_send_compressed_device_mute(port_id,
  19308. idx, mute);
  19309. break;
  19310. case ADM_PP_PARAM_LATENCY_ID:
  19311. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  19312. msm_bedais_pp_params[index].latency =
  19313. ucontrol->value.integer.value[1];
  19314. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  19315. &msm_bedais_pp_params[index].pp_params_config);
  19316. latency = msm_bedais_pp_params[index].latency =
  19317. ucontrol->value.integer.value[1];
  19318. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  19319. adm_send_compressed_device_latency(port_id,
  19320. idx, latency);
  19321. break;
  19322. default:
  19323. pr_info("%s, device pp param %d not supported\n",
  19324. __func__, pp_id);
  19325. break;
  19326. }
  19327. }
  19328. }
  19329. return 0;
  19330. }
  19331. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  19332. struct snd_ctl_elem_value *ucontrol)
  19333. {
  19334. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  19335. return 0;
  19336. }
  19337. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  19338. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  19339. 0, 3, msm_routing_get_device_pp_params_mixer,
  19340. msm_routing_put_device_pp_params_mixer),
  19341. };
  19342. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  19343. struct snd_ctl_elem_value *ucontrol)
  19344. {
  19345. ucontrol->value.integer.value[0] =
  19346. core_get_license_status(ASM_MEDIA_FMT_APTX);
  19347. pr_debug("%s: status %ld\n", __func__,
  19348. ucontrol->value.integer.value[0]);
  19349. return 0;
  19350. }
  19351. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  19352. struct snd_ctl_elem_value *ucontrol)
  19353. {
  19354. int32_t status = 0;
  19355. status = core_set_license(ucontrol->value.integer.value[0],
  19356. APTX_CLASSIC_DEC_LICENSE_ID);
  19357. pr_debug("%s: status %d\n", __func__, status);
  19358. return status;
  19359. }
  19360. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  19361. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  19362. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  19363. msm_aptx_dec_license_control_put),
  19364. };
  19365. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  19366. struct snd_ctl_elem_info *uinfo)
  19367. {
  19368. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  19369. uinfo->count = sizeof(be_dai_name_table);
  19370. return 0;
  19371. }
  19372. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  19373. unsigned int __user *bytes,
  19374. unsigned int size)
  19375. {
  19376. int i;
  19377. int ret;
  19378. if (size < sizeof(be_dai_name_table)) {
  19379. pr_err("%s: invalid size %d requested, returning\n",
  19380. __func__, size);
  19381. ret = -EINVAL;
  19382. goto done;
  19383. }
  19384. /*
  19385. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  19386. * needed when adding new backends
  19387. */
  19388. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19389. be_dai_name_table[i].be_id = i;
  19390. strlcpy(be_dai_name_table[i].be_name,
  19391. msm_bedais[i].name,
  19392. LPASS_BE_NAME_MAX_LENGTH);
  19393. }
  19394. ret = copy_to_user(bytes, &be_dai_name_table,
  19395. sizeof(be_dai_name_table));
  19396. if (ret) {
  19397. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  19398. ret = -EFAULT;
  19399. }
  19400. done:
  19401. return ret;
  19402. }
  19403. static const struct snd_kcontrol_new
  19404. msm_routing_be_dai_name_table_mixer_controls[] = {
  19405. {
  19406. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  19407. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  19408. .info = msm_routing_be_dai_name_table_info,
  19409. .name = "Backend DAI Name Table",
  19410. .tlv.c = snd_soc_bytes_tlv_callback,
  19411. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  19412. .max = sizeof(be_dai_name_table),
  19413. .get = msm_routing_be_dai_name_table_tlv_get,
  19414. }
  19415. },
  19416. };
  19417. static int msm_routing_stereo_channel_reverse_control_get(
  19418. struct snd_kcontrol *kcontrol,
  19419. struct snd_ctl_elem_value *ucontrol)
  19420. {
  19421. ucontrol->value.integer.value[0] = swap_ch;
  19422. pr_debug("%s: Swap channel value: %ld\n", __func__,
  19423. ucontrol->value.integer.value[0]);
  19424. return 0;
  19425. }
  19426. static int msm_routing_stereo_channel_reverse_control_put(
  19427. struct snd_kcontrol *kcontrol,
  19428. struct snd_ctl_elem_value *ucontrol)
  19429. {
  19430. int i, idx, be_index, port_id;
  19431. int ret = 0;
  19432. unsigned long copp;
  19433. pr_debug("%s Swap channel value:%ld\n", __func__,
  19434. ucontrol->value.integer.value[0]);
  19435. swap_ch = ucontrol->value.integer.value[0];
  19436. mutex_lock(&routing_lock);
  19437. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  19438. port_id = msm_bedais[be_index].port_id;
  19439. if (!msm_bedais[be_index].active)
  19440. continue;
  19441. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  19442. MSM_FRONTEND_DAI_MM_SIZE) {
  19443. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  19444. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  19445. if (!test_bit(idx, &copp))
  19446. continue;
  19447. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  19448. __func__, port_id, idx);
  19449. ret = adm_swap_speaker_channels(
  19450. port_id, idx,
  19451. msm_bedais[be_index].sample_rate,
  19452. swap_ch);
  19453. if (ret) {
  19454. pr_err("%s:Swap_channel failed, err=%d\n",
  19455. __func__, ret);
  19456. goto done;
  19457. }
  19458. }
  19459. }
  19460. }
  19461. done:
  19462. mutex_unlock(&routing_lock);
  19463. return ret;
  19464. }
  19465. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  19466. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  19467. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  19468. msm_routing_stereo_channel_reverse_control_put),
  19469. };
  19470. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  19471. struct snd_ctl_elem_info *uinfo)
  19472. {
  19473. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  19474. uinfo->count = 1;
  19475. return 0;
  19476. }
  19477. static int msm_routing_instance_id_support_put(
  19478. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19479. {
  19480. bool supported = ucontrol->value.integer.value[0] ? true : false;
  19481. q6common_update_instance_id_support(supported);
  19482. return 0;
  19483. }
  19484. static int msm_routing_instance_id_support_get(
  19485. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  19486. {
  19487. bool supported = false;
  19488. supported = q6common_is_instance_id_supported();
  19489. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  19490. return 0;
  19491. }
  19492. static const struct snd_kcontrol_new
  19493. msm_routing_feature_support_mixer_controls[] = {
  19494. {
  19495. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  19496. SNDRV_CTL_ELEM_ACCESS_WRITE,
  19497. .info = msm_routing_instance_id_support_info,
  19498. .name = "Instance ID Support",
  19499. .put = msm_routing_instance_id_support_put,
  19500. .get = msm_routing_instance_id_support_get,
  19501. },
  19502. };
  19503. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  19504. .hw_params = msm_pcm_routing_hw_params,
  19505. .close = msm_pcm_routing_close,
  19506. .prepare = msm_pcm_routing_prepare,
  19507. };
  19508. /* Not used but frame seems to require it */
  19509. static int msm_routing_probe(struct snd_soc_platform *platform)
  19510. {
  19511. snd_soc_dapm_new_controls(&platform->component.dapm, msm_qdsp6_widgets,
  19512. ARRAY_SIZE(msm_qdsp6_widgets));
  19513. snd_soc_dapm_add_routes(&platform->component.dapm, intercon,
  19514. ARRAY_SIZE(intercon));
  19515. snd_soc_dapm_new_widgets(platform->component.dapm.card);
  19516. snd_soc_add_platform_controls(platform, lsm_controls,
  19517. ARRAY_SIZE(lsm_controls));
  19518. snd_soc_add_platform_controls(platform, aanc_slim_0_rx_mux,
  19519. ARRAY_SIZE(aanc_slim_0_rx_mux));
  19520. snd_soc_add_platform_controls(platform, msm_voc_session_controls,
  19521. ARRAY_SIZE(msm_voc_session_controls));
  19522. snd_soc_add_platform_controls(platform, app_type_cfg_controls,
  19523. ARRAY_SIZE(app_type_cfg_controls));
  19524. snd_soc_add_platform_controls(platform, lsm_app_type_cfg_controls,
  19525. ARRAY_SIZE(lsm_app_type_cfg_controls));
  19526. snd_soc_add_platform_controls(platform, module_cfg_controls,
  19527. ARRAY_SIZE(module_cfg_controls));
  19528. snd_soc_add_platform_controls(platform,
  19529. stereo_to_custom_stereo_controls,
  19530. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  19531. snd_soc_add_platform_controls(platform, ec_ref_param_controls,
  19532. ARRAY_SIZE(ec_ref_param_controls));
  19533. snd_soc_add_platform_controls(platform, channel_mixer_controls,
  19534. ARRAY_SIZE(channel_mixer_controls));
  19535. msm_qti_pp_add_controls(platform);
  19536. msm_dts_srs_tm_add_controls(platform);
  19537. msm_dolby_dap_add_controls(platform);
  19538. snd_soc_add_platform_controls(platform,
  19539. use_ds1_or_ds2_controls,
  19540. ARRAY_SIZE(use_ds1_or_ds2_controls));
  19541. snd_soc_add_platform_controls(platform,
  19542. device_pp_params_mixer_controls,
  19543. ARRAY_SIZE(device_pp_params_mixer_controls));
  19544. snd_soc_add_platform_controls(platform,
  19545. msm_routing_be_dai_name_table_mixer_controls,
  19546. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  19547. snd_soc_add_platform_controls(platform, msm_source_tracking_controls,
  19548. ARRAY_SIZE(msm_source_tracking_controls));
  19549. snd_soc_add_platform_controls(platform, adm_channel_config_controls,
  19550. ARRAY_SIZE(adm_channel_config_controls));
  19551. snd_soc_add_platform_controls(platform, aptx_dec_license_controls,
  19552. ARRAY_SIZE(aptx_dec_license_controls));
  19553. snd_soc_add_platform_controls(platform, stereo_channel_reverse_control,
  19554. ARRAY_SIZE(stereo_channel_reverse_control));
  19555. snd_soc_add_platform_controls(
  19556. platform, msm_routing_feature_support_mixer_controls,
  19557. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  19558. return 0;
  19559. }
  19560. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  19561. {
  19562. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  19563. }
  19564. void msm_routing_pcm_free(struct snd_pcm *pcm)
  19565. {
  19566. msm_pcm_routing_hwdep_free(pcm);
  19567. }
  19568. static struct snd_soc_platform_driver msm_soc_routing_platform = {
  19569. .ops = &msm_routing_pcm_ops,
  19570. .probe = msm_routing_probe,
  19571. .pcm_new = msm_routing_pcm_new,
  19572. .pcm_free = msm_routing_pcm_free,
  19573. };
  19574. static int msm_routing_pcm_probe(struct platform_device *pdev)
  19575. {
  19576. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  19577. return snd_soc_register_platform(&pdev->dev,
  19578. &msm_soc_routing_platform);
  19579. }
  19580. static int msm_routing_pcm_remove(struct platform_device *pdev)
  19581. {
  19582. snd_soc_unregister_platform(&pdev->dev);
  19583. return 0;
  19584. }
  19585. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  19586. {.compatible = "qcom,msm-pcm-routing"},
  19587. {}
  19588. };
  19589. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  19590. static struct platform_driver msm_routing_pcm_driver = {
  19591. .driver = {
  19592. .name = "msm-pcm-routing",
  19593. .owner = THIS_MODULE,
  19594. .of_match_table = msm_pcm_routing_dt_match,
  19595. },
  19596. .probe = msm_routing_pcm_probe,
  19597. .remove = msm_routing_pcm_remove,
  19598. };
  19599. int msm_routing_check_backend_enabled(int fedai_id)
  19600. {
  19601. int i;
  19602. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  19603. /* bad ID assigned in machine driver */
  19604. pr_err("%s: bad MM ID\n", __func__);
  19605. return 0;
  19606. }
  19607. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  19608. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  19609. return msm_bedais[i].active;
  19610. }
  19611. return 0;
  19612. }
  19613. static int get_cal_type_index(int32_t cal_type)
  19614. {
  19615. int ret = -EINVAL;
  19616. switch (cal_type) {
  19617. case ADM_TOPOLOGY_CAL_TYPE:
  19618. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  19619. break;
  19620. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  19621. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  19622. break;
  19623. default:
  19624. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  19625. }
  19626. return ret;
  19627. }
  19628. static int msm_routing_set_cal(int32_t cal_type,
  19629. size_t data_size, void *data)
  19630. {
  19631. int ret = 0;
  19632. int cal_index;
  19633. pr_debug("%s\n", __func__);
  19634. cal_index = get_cal_type_index(cal_type);
  19635. if (cal_index < 0) {
  19636. pr_err("%s: Could not get cal index %d\n",
  19637. __func__, cal_index);
  19638. ret = -EINVAL;
  19639. goto done;
  19640. }
  19641. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  19642. if (ret < 0) {
  19643. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  19644. __func__, ret, cal_type);
  19645. ret = -EINVAL;
  19646. goto done;
  19647. }
  19648. /* Pre-load if it is ADM topology */
  19649. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  19650. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  19651. msm_routing_load_topology(data_size, data);
  19652. }
  19653. done:
  19654. return ret;
  19655. }
  19656. static void msm_routing_delete_cal_data(void)
  19657. {
  19658. pr_debug("%s\n", __func__);
  19659. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  19660. }
  19661. static int msm_routing_init_cal_data(void)
  19662. {
  19663. int ret = 0;
  19664. struct cal_type_info cal_type_info[] = {
  19665. {{ADM_TOPOLOGY_CAL_TYPE,
  19666. {NULL, NULL, NULL,
  19667. msm_routing_set_cal, NULL, NULL} },
  19668. {NULL, NULL, cal_utils_match_buf_num} },
  19669. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  19670. {NULL, NULL, NULL,
  19671. msm_routing_set_cal, NULL, NULL} },
  19672. {NULL, NULL, cal_utils_match_buf_num} },
  19673. };
  19674. pr_debug("%s\n", __func__);
  19675. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  19676. &cal_type_info[0]);
  19677. if (ret < 0) {
  19678. pr_err("%s: could not create cal type!\n",
  19679. __func__);
  19680. ret = -EINVAL;
  19681. goto err;
  19682. }
  19683. return ret;
  19684. err:
  19685. msm_routing_delete_cal_data();
  19686. return ret;
  19687. }
  19688. int __init msm_soc_routing_platform_init(void)
  19689. {
  19690. mutex_init(&routing_lock);
  19691. if (msm_routing_init_cal_data())
  19692. pr_err("%s: could not init cal data!\n", __func__);
  19693. afe_set_routing_callback(
  19694. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  19695. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19696. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  19697. return platform_driver_register(&msm_routing_pcm_driver);
  19698. }
  19699. void msm_soc_routing_platform_exit(void)
  19700. {
  19701. msm_routing_delete_cal_data();
  19702. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  19703. mutex_destroy(&routing_lock);
  19704. platform_driver_unregister(&msm_routing_pcm_driver);
  19705. }
  19706. MODULE_DESCRIPTION("MSM routing platform driver");
  19707. MODULE_LICENSE("GPL v2");