msm-pcm-routing-v2.c 1.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  3. */
  4. #include <linux/init.h>
  5. #include <linux/err.h>
  6. #include <linux/module.h>
  7. #include <linux/moduleparam.h>
  8. #include <linux/platform_device.h>
  9. #include <linux/bitops.h>
  10. #include <linux/mutex.h>
  11. #include <linux/of_device.h>
  12. #include <linux/slab.h>
  13. #include <sound/core.h>
  14. #include <sound/soc.h>
  15. #include <sound/soc-dapm.h>
  16. #include <sound/pcm.h>
  17. #include <sound/initval.h>
  18. #include <sound/control.h>
  19. #include <sound/tlv.h>
  20. #include <sound/asound.h>
  21. #include <sound/pcm_params.h>
  22. #include <sound/hwdep.h>
  23. #include <sound/audio_effects.h>
  24. #include <dsp/msm-dts-srs-tm-config.h>
  25. #include <dsp/q6voice.h>
  26. #include <dsp/q6adm-v2.h>
  27. #include <dsp/q6asm-v2.h>
  28. #include <dsp/q6afe-v2.h>
  29. #include <dsp/q6lsm.h>
  30. #include <dsp/q6core.h>
  31. #include <dsp/q6common.h>
  32. #include <dsp/audio_cal_utils.h>
  33. #include "msm-pcm-routing-v2.h"
  34. #include "msm-pcm-routing-devdep.h"
  35. #include "msm-qti-pp-config.h"
  36. #include "msm-dolby-dap-config.h"
  37. #include "msm-ds2-dap-config.h"
  38. #define DRV_NAME "msm-pcm-routing-v2"
  39. #ifndef CONFIG_DOLBY_DAP
  40. #undef DOLBY_ADM_COPP_TOPOLOGY_ID
  41. #define DOLBY_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFE
  42. #endif
  43. #ifndef CONFIG_DOLBY_DS2
  44. #undef DS2_ADM_COPP_TOPOLOGY_ID
  45. #define DS2_ADM_COPP_TOPOLOGY_ID 0xFFFFFFFF
  46. #endif
  47. static struct mutex routing_lock;
  48. static struct cal_type_data *cal_data[MAX_ROUTING_CAL_TYPES];
  49. static int fm_switch_enable;
  50. static int hfp_switch_enable;
  51. static int a2dp_switch_enable;
  52. static int sco_switch_enable;
  53. static int int0_mi2s_switch_enable;
  54. static int int4_mi2s_switch_enable;
  55. static int pri_mi2s_switch_enable;
  56. static int sec_mi2s_switch_enable;
  57. static int tert_mi2s_switch_enable;
  58. static int quat_mi2s_switch_enable;
  59. static int quin_mi2s_switch_enable;
  60. static int sen_mi2s_switch_enable;
  61. static int fm_pcmrx_switch_enable;
  62. static int usb_switch_enable;
  63. static int lsm_port_index;
  64. static int slim0_rx_aanc_fb_port;
  65. static int msm_route_ec_ref_rx;
  66. static int msm_ec_ref_ch = 4;
  67. static int msm_ec_ref_ch_downmixed = 4;
  68. static int msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  69. static int msm_ec_ref_sampling_rate = 48000;
  70. static uint32_t voc_session_id = ALL_SESSION_VSID;
  71. static int msm_route_ext_ec_ref;
  72. static bool is_custom_stereo_on;
  73. static bool is_ds2_on;
  74. static bool swap_ch;
  75. static bool hifi_filter_enabled;
  76. static int aanc_level;
  77. static int num_app_cfg_types;
  78. static int msm_ec_ref_port_id;
  79. static int afe_loopback_tx_port_index;
  80. static int afe_loopback_tx_port_id = -1;
  81. #define WEIGHT_0_DB 0x4000
  82. /* all the FEs which can support channel mixer */
  83. static struct msm_pcm_channel_mixer channel_mixer[MSM_FRONTEND_DAI_MM_SIZE];
  84. /* all the FES which can support channel mixer for bidirection */
  85. static struct msm_pcm_channel_mixer
  86. channel_mixer_v2[MSM_FRONTEND_DAI_MM_SIZE][2];
  87. /* input BE for each FE */
  88. static int channel_input[MSM_FRONTEND_DAI_MM_SIZE][ADM_MAX_CHANNELS];
  89. enum {
  90. MADNONE,
  91. MADAUDIO,
  92. MADBEACON,
  93. MADULTRASOUND,
  94. MADSWAUDIO,
  95. };
  96. #define ADM_LSM_PORT_INDEX 9
  97. #define SLIMBUS_0_TX_TEXT "SLIMBUS_0_TX"
  98. #define SLIMBUS_1_TX_TEXT "SLIMBUS_1_TX"
  99. #define SLIMBUS_2_TX_TEXT "SLIMBUS_2_TX"
  100. #define SLIMBUS_3_TX_TEXT "SLIMBUS_3_TX"
  101. #define SLIMBUS_4_TX_TEXT "SLIMBUS_4_TX"
  102. #define SLIMBUS_5_TX_TEXT "SLIMBUS_5_TX"
  103. #define TERT_MI2S_TX_TEXT "TERT_MI2S_TX"
  104. #define QUAT_MI2S_TX_TEXT "QUAT_MI2S_TX"
  105. #define ADM_LSM_TX_TEXT "ADM_LSM_TX"
  106. #define INT3_MI2S_TX_TEXT "INT3_MI2S_TX"
  107. #define VA_CDC_DMA_TX_0_TEXT "VA_CDC_DMA_TX_0"
  108. #define VA_CDC_DMA_TX_1_TEXT "VA_CDC_DMA_TX_1"
  109. #define VA_CDC_DMA_TX_2_TEXT "VA_CDC_DMA_TX_2"
  110. #define TX_CDC_DMA_TX_3_TEXT "TX_CDC_DMA_TX_3"
  111. #define QUIN_TDM_TX_TEXT "QUIN_TDM_TX_0"
  112. #define LSM_FUNCTION_TEXT "LSM Function"
  113. static const char * const lsm_port_text[] = {
  114. "None",
  115. SLIMBUS_0_TX_TEXT, SLIMBUS_1_TX_TEXT, SLIMBUS_2_TX_TEXT,
  116. SLIMBUS_3_TX_TEXT, SLIMBUS_4_TX_TEXT, SLIMBUS_5_TX_TEXT,
  117. TERT_MI2S_TX_TEXT, QUAT_MI2S_TX_TEXT, ADM_LSM_TX_TEXT,
  118. INT3_MI2S_TX_TEXT, VA_CDC_DMA_TX_0_TEXT, VA_CDC_DMA_TX_1_TEXT,
  119. VA_CDC_DMA_TX_2_TEXT, TX_CDC_DMA_TX_3_TEXT, QUIN_TDM_TX_TEXT
  120. };
  121. struct msm_pcm_route_bdai_pp_params {
  122. u16 port_id; /* AFE port ID */
  123. unsigned long pp_params_config;
  124. bool mute_on;
  125. int latency;
  126. };
  127. static struct msm_pcm_route_bdai_pp_params
  128. msm_bedais_pp_params[MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX] = {
  129. {HDMI_RX, 0, 0, 0},
  130. {DISPLAY_PORT_RX, 0, 0, 0},
  131. };
  132. /*
  133. * The be_dai_name_table is passed to HAL so that it can specify the
  134. * BE ID for the BE it wants to enable based on the name. Thus there
  135. * is a matching table and structure in HAL that need to be updated
  136. * if any changes to these are made.
  137. */
  138. struct msm_pcm_route_bdai_name {
  139. unsigned int be_id;
  140. char be_name[LPASS_BE_NAME_MAX_LENGTH];
  141. };
  142. static struct msm_pcm_route_bdai_name be_dai_name_table[MSM_BACKEND_DAI_MAX];
  143. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  144. int fe_id);
  145. static void msm_routing_load_topology(size_t data_size, void *data);
  146. static void msm_routing_unload_topology(uint32_t topology_id);
  147. static int msm_routing_get_bit_width(unsigned int format)
  148. {
  149. int bit_width;
  150. switch (format) {
  151. case SNDRV_PCM_FORMAT_S32_LE:
  152. bit_width = 32;
  153. break;
  154. case SNDRV_PCM_FORMAT_S24_LE:
  155. case SNDRV_PCM_FORMAT_S24_3LE:
  156. bit_width = 24;
  157. break;
  158. case SNDRV_PCM_FORMAT_S16_LE:
  159. default:
  160. bit_width = 16;
  161. }
  162. return bit_width;
  163. }
  164. static bool msm_is_resample_needed(int input_sr, int output_sr)
  165. {
  166. bool rc = false;
  167. if (input_sr != output_sr)
  168. rc = true;
  169. pr_debug("perform resampling (%s) for copp rate (%d)afe rate (%d)",
  170. (rc ? "oh yes" : "not really"),
  171. input_sr, output_sr);
  172. return rc;
  173. }
  174. static void msm_pcm_routing_cfg_pp(int port_id, int copp_idx, int topology,
  175. int channels)
  176. {
  177. int rc = 0;
  178. switch (topology) {
  179. case SRS_TRUMEDIA_TOPOLOGY_ID:
  180. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  181. msm_dts_srs_tm_init(port_id, copp_idx);
  182. break;
  183. case DS2_ADM_COPP_TOPOLOGY_ID:
  184. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY %d\n",
  185. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  186. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  187. is_custom_stereo_on);
  188. if (rc < 0)
  189. pr_err("%s: DS2 topo_id 0x%x, port %d, CS %d rc %d\n",
  190. __func__, topology, port_id,
  191. is_custom_stereo_on, rc);
  192. break;
  193. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  194. if (is_ds2_on) {
  195. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY\n", __func__);
  196. rc = msm_ds2_dap_init(port_id, copp_idx, channels,
  197. is_custom_stereo_on);
  198. if (rc < 0)
  199. pr_err("%s:DS2 topo_id 0x%x, port %d, rc %d\n",
  200. __func__, topology, port_id, rc);
  201. } else {
  202. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  203. rc = msm_dolby_dap_init(port_id, copp_idx, channels,
  204. is_custom_stereo_on);
  205. if (rc < 0)
  206. pr_err("%s: DS1 topo_id 0x%x, port %d, rc %d\n",
  207. __func__, topology, port_id, rc);
  208. }
  209. break;
  210. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  211. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  212. rc = msm_qti_pp_asphere_init(port_id, copp_idx);
  213. if (rc < 0)
  214. pr_err("%s: topo_id 0x%x, port %d, copp %d, rc %d\n",
  215. __func__, topology, port_id, copp_idx, rc);
  216. break;
  217. default:
  218. /* custom topology specific feature param handlers */
  219. break;
  220. }
  221. }
  222. static void msm_pcm_routing_deinit_pp(int port_id, int topology)
  223. {
  224. switch (topology) {
  225. case SRS_TRUMEDIA_TOPOLOGY_ID:
  226. pr_debug("%s: SRS_TRUMEDIA_TOPOLOGY_ID\n", __func__);
  227. msm_dts_srs_tm_deinit(port_id);
  228. break;
  229. case DS2_ADM_COPP_TOPOLOGY_ID:
  230. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID %d\n",
  231. __func__, DS2_ADM_COPP_TOPOLOGY_ID);
  232. msm_ds2_dap_deinit(port_id);
  233. break;
  234. case DOLBY_ADM_COPP_TOPOLOGY_ID:
  235. if (is_ds2_on) {
  236. pr_debug("%s: DS2_ADM_COPP_TOPOLOGY_ID\n", __func__);
  237. msm_ds2_dap_deinit(port_id);
  238. } else {
  239. pr_debug("%s: DOLBY_ADM_COPP_TOPOLOGY_ID\n", __func__);
  240. msm_dolby_dap_deinit(port_id);
  241. }
  242. break;
  243. case ADM_CMD_COPP_OPEN_TOPOLOGY_ID_AUDIOSPHERE:
  244. pr_debug("%s: TOPOLOGY_ID_AUDIOSPHERE\n", __func__);
  245. msm_qti_pp_asphere_deinit(port_id);
  246. break;
  247. default:
  248. /* custom topology specific feature deinit handlers */
  249. break;
  250. }
  251. }
  252. static void msm_pcm_routng_cfg_matrix_map_pp(struct route_payload payload,
  253. int path_type, int perf_mode)
  254. {
  255. int itr = 0, rc = 0;
  256. if ((path_type == ADM_PATH_PLAYBACK) &&
  257. (perf_mode == LEGACY_PCM_MODE) &&
  258. is_custom_stereo_on) {
  259. for (itr = 0; itr < payload.num_copps; itr++) {
  260. if ((payload.port_id[itr] != SLIMBUS_0_RX) &&
  261. (payload.port_id[itr] != RT_PROXY_PORT_001_RX)) {
  262. continue;
  263. }
  264. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd(
  265. payload.port_id[itr],
  266. payload.copp_idx[itr],
  267. payload.session_id,
  268. Q14_GAIN_ZERO_POINT_FIVE,
  269. Q14_GAIN_ZERO_POINT_FIVE,
  270. Q14_GAIN_ZERO_POINT_FIVE,
  271. Q14_GAIN_ZERO_POINT_FIVE);
  272. if (rc < 0)
  273. pr_err("%s: err setting custom stereo\n",
  274. __func__);
  275. }
  276. }
  277. }
  278. #define SLIMBUS_EXTPROC_RX AFE_PORT_INVALID
  279. struct msm_pcm_routing_bdai_data msm_bedais[MSM_BACKEND_DAI_MAX] = {
  280. { PRIMARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_RX},
  281. { PRIMARY_I2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_PRI_I2S_TX},
  282. { SLIMBUS_0_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_RX},
  283. { SLIMBUS_0_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_0_TX},
  284. { HDMI_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_HDMI},
  285. { INT_BT_SCO_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_RX},
  286. { INT_BT_SCO_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_BT_SCO_TX},
  287. { INT_FM_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_RX},
  288. { INT_FM_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_INT_FM_TX},
  289. { RT_PROXY_PORT_001_RX, 0, {0}, {0}, 0, 0, 0, 0,
  290. LPASS_BE_AFE_PCM_RX},
  291. { RT_PROXY_PORT_001_TX, 0, {0}, {0}, 0, 0, 0, 0,
  292. LPASS_BE_AFE_PCM_TX},
  293. { AFE_PORT_ID_PRIMARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  294. LPASS_BE_AUXPCM_RX},
  295. { AFE_PORT_ID_PRIMARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  296. LPASS_BE_AUXPCM_TX},
  297. { VOICE_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  298. LPASS_BE_VOICE_PLAYBACK_TX},
  299. { VOICE2_PLAYBACK_TX, 0, {0}, {0}, 0, 0, 0, 0,
  300. LPASS_BE_VOICE2_PLAYBACK_TX},
  301. { VOICE_RECORD_RX, 0, {0}, {0}, 0, 0, 0, 0,
  302. LPASS_BE_INCALL_RECORD_RX},
  303. { VOICE_RECORD_TX, 0, {0}, {0}, 0, 0, 0, 0,
  304. LPASS_BE_INCALL_RECORD_TX},
  305. { MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_RX},
  306. { MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_MI2S_TX},
  307. { SECONDARY_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SEC_I2S_RX},
  308. { SLIMBUS_1_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_RX},
  309. { SLIMBUS_1_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_1_TX},
  310. { SLIMBUS_2_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_RX},
  311. { SLIMBUS_2_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_2_TX},
  312. { SLIMBUS_3_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_RX},
  313. { SLIMBUS_3_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_3_TX},
  314. { SLIMBUS_4_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_RX},
  315. { SLIMBUS_4_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_4_TX},
  316. { SLIMBUS_5_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_RX},
  317. { SLIMBUS_5_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_5_TX},
  318. { SLIMBUS_6_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_RX},
  319. { SLIMBUS_6_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_6_TX},
  320. { SLIMBUS_7_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_RX},
  321. { SLIMBUS_7_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_7_TX},
  322. { SLIMBUS_8_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_RX},
  323. { SLIMBUS_8_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_8_TX},
  324. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_RX},
  325. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_TX},
  326. { SLIMBUS_EXTPROC_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_STUB_1_TX},
  327. { AFE_PORT_ID_QUATERNARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  328. LPASS_BE_QUAT_MI2S_RX},
  329. { AFE_PORT_ID_QUATERNARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  330. LPASS_BE_QUAT_MI2S_TX},
  331. { AFE_PORT_ID_SECONDARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  332. LPASS_BE_SEC_MI2S_RX},
  333. { AFE_PORT_ID_SECONDARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  334. LPASS_BE_SEC_MI2S_TX},
  335. { AFE_PORT_ID_PRIMARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  336. LPASS_BE_PRI_MI2S_RX},
  337. { AFE_PORT_ID_PRIMARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  338. LPASS_BE_PRI_MI2S_TX},
  339. { AFE_PORT_ID_TERTIARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  340. LPASS_BE_TERT_MI2S_RX},
  341. { AFE_PORT_ID_TERTIARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  342. LPASS_BE_TERT_MI2S_TX},
  343. { AUDIO_PORT_ID_I2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  344. LPASS_BE_AUDIO_I2S_RX},
  345. { AFE_PORT_ID_SECONDARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  346. LPASS_BE_SEC_AUXPCM_RX},
  347. { AFE_PORT_ID_SECONDARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  348. LPASS_BE_SEC_AUXPCM_TX},
  349. { AFE_PORT_ID_PRIMARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  350. LPASS_BE_PRI_SPDIF_RX},
  351. { AFE_PORT_ID_SECONDARY_MI2S_RX_SD1, 0, {0}, {0}, 0, 0, 0, 0,
  352. LPASS_BE_SEC_MI2S_RX_SD1},
  353. { AFE_PORT_ID_QUINARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  354. LPASS_BE_QUIN_MI2S_RX},
  355. { AFE_PORT_ID_QUINARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  356. LPASS_BE_QUIN_MI2S_TX},
  357. { AFE_PORT_ID_SENARY_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  358. LPASS_BE_SENARY_MI2S_TX},
  359. { AFE_PORT_ID_PRIMARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  360. LPASS_BE_PRI_TDM_RX_0},
  361. { AFE_PORT_ID_PRIMARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  362. LPASS_BE_PRI_TDM_TX_0},
  363. { AFE_PORT_ID_PRIMARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  364. LPASS_BE_PRI_TDM_RX_1},
  365. { AFE_PORT_ID_PRIMARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  366. LPASS_BE_PRI_TDM_TX_1},
  367. { AFE_PORT_ID_PRIMARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  368. LPASS_BE_PRI_TDM_RX_2},
  369. { AFE_PORT_ID_PRIMARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  370. LPASS_BE_PRI_TDM_TX_2},
  371. { AFE_PORT_ID_PRIMARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  372. LPASS_BE_PRI_TDM_RX_3},
  373. { AFE_PORT_ID_PRIMARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  374. LPASS_BE_PRI_TDM_TX_3},
  375. { AFE_PORT_ID_PRIMARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  376. LPASS_BE_PRI_TDM_RX_4},
  377. { AFE_PORT_ID_PRIMARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  378. LPASS_BE_PRI_TDM_TX_4},
  379. { AFE_PORT_ID_PRIMARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  380. LPASS_BE_PRI_TDM_RX_5},
  381. { AFE_PORT_ID_PRIMARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  382. LPASS_BE_PRI_TDM_TX_5},
  383. { AFE_PORT_ID_PRIMARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  384. LPASS_BE_PRI_TDM_RX_6},
  385. { AFE_PORT_ID_PRIMARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  386. LPASS_BE_PRI_TDM_TX_6},
  387. { AFE_PORT_ID_PRIMARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  388. LPASS_BE_PRI_TDM_RX_7},
  389. { AFE_PORT_ID_PRIMARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  390. LPASS_BE_PRI_TDM_TX_7},
  391. { AFE_PORT_ID_SECONDARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  392. LPASS_BE_SEC_TDM_RX_0},
  393. { AFE_PORT_ID_SECONDARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  394. LPASS_BE_SEC_TDM_TX_0},
  395. { AFE_PORT_ID_SECONDARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  396. LPASS_BE_SEC_TDM_RX_1},
  397. { AFE_PORT_ID_SECONDARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  398. LPASS_BE_SEC_TDM_TX_1},
  399. { AFE_PORT_ID_SECONDARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  400. LPASS_BE_SEC_TDM_RX_2},
  401. { AFE_PORT_ID_SECONDARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  402. LPASS_BE_SEC_TDM_TX_2},
  403. { AFE_PORT_ID_SECONDARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  404. LPASS_BE_SEC_TDM_RX_3},
  405. { AFE_PORT_ID_SECONDARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  406. LPASS_BE_SEC_TDM_TX_3},
  407. { AFE_PORT_ID_SECONDARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  408. LPASS_BE_SEC_TDM_RX_4},
  409. { AFE_PORT_ID_SECONDARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  410. LPASS_BE_SEC_TDM_TX_4},
  411. { AFE_PORT_ID_SECONDARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  412. LPASS_BE_SEC_TDM_RX_5},
  413. { AFE_PORT_ID_SECONDARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  414. LPASS_BE_SEC_TDM_TX_5},
  415. { AFE_PORT_ID_SECONDARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  416. LPASS_BE_SEC_TDM_RX_6},
  417. { AFE_PORT_ID_SECONDARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  418. LPASS_BE_SEC_TDM_TX_6},
  419. { AFE_PORT_ID_SECONDARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  420. LPASS_BE_SEC_TDM_RX_7},
  421. { AFE_PORT_ID_SECONDARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  422. LPASS_BE_SEC_TDM_TX_7},
  423. { AFE_PORT_ID_TERTIARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  424. LPASS_BE_TERT_TDM_RX_0},
  425. { AFE_PORT_ID_TERTIARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  426. LPASS_BE_TERT_TDM_TX_0},
  427. { AFE_PORT_ID_TERTIARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  428. LPASS_BE_TERT_TDM_RX_1},
  429. { AFE_PORT_ID_TERTIARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  430. LPASS_BE_TERT_TDM_TX_1},
  431. { AFE_PORT_ID_TERTIARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  432. LPASS_BE_TERT_TDM_RX_2},
  433. { AFE_PORT_ID_TERTIARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  434. LPASS_BE_TERT_TDM_TX_2},
  435. { AFE_PORT_ID_TERTIARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  436. LPASS_BE_TERT_TDM_RX_3},
  437. { AFE_PORT_ID_TERTIARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  438. LPASS_BE_TERT_TDM_TX_3},
  439. { AFE_PORT_ID_TERTIARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  440. LPASS_BE_TERT_TDM_RX_4},
  441. { AFE_PORT_ID_TERTIARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  442. LPASS_BE_TERT_TDM_TX_4},
  443. { AFE_PORT_ID_TERTIARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  444. LPASS_BE_TERT_TDM_RX_5},
  445. { AFE_PORT_ID_TERTIARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  446. LPASS_BE_TERT_TDM_TX_5},
  447. { AFE_PORT_ID_TERTIARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  448. LPASS_BE_TERT_TDM_RX_6},
  449. { AFE_PORT_ID_TERTIARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  450. LPASS_BE_TERT_TDM_TX_6},
  451. { AFE_PORT_ID_TERTIARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  452. LPASS_BE_TERT_TDM_RX_7},
  453. { AFE_PORT_ID_TERTIARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  454. LPASS_BE_TERT_TDM_TX_7},
  455. { AFE_PORT_ID_QUATERNARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  456. LPASS_BE_QUAT_TDM_RX_0},
  457. { AFE_PORT_ID_QUATERNARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  458. LPASS_BE_QUAT_TDM_TX_0},
  459. { AFE_PORT_ID_QUATERNARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  460. LPASS_BE_QUAT_TDM_RX_1},
  461. { AFE_PORT_ID_QUATERNARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  462. LPASS_BE_QUAT_TDM_TX_1},
  463. { AFE_PORT_ID_QUATERNARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  464. LPASS_BE_QUAT_TDM_RX_2},
  465. { AFE_PORT_ID_QUATERNARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  466. LPASS_BE_QUAT_TDM_TX_2},
  467. { AFE_PORT_ID_QUATERNARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  468. LPASS_BE_QUAT_TDM_RX_3},
  469. { AFE_PORT_ID_QUATERNARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  470. LPASS_BE_QUAT_TDM_TX_3},
  471. { AFE_PORT_ID_QUATERNARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  472. LPASS_BE_QUAT_TDM_RX_4},
  473. { AFE_PORT_ID_QUATERNARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  474. LPASS_BE_QUAT_TDM_TX_4},
  475. { AFE_PORT_ID_QUATERNARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  476. LPASS_BE_QUAT_TDM_RX_5},
  477. { AFE_PORT_ID_QUATERNARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  478. LPASS_BE_QUAT_TDM_TX_5},
  479. { AFE_PORT_ID_QUATERNARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  480. LPASS_BE_QUAT_TDM_RX_6},
  481. { AFE_PORT_ID_QUATERNARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  482. LPASS_BE_QUAT_TDM_TX_6},
  483. { AFE_PORT_ID_QUATERNARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  484. LPASS_BE_QUAT_TDM_RX_7},
  485. { AFE_PORT_ID_QUATERNARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  486. LPASS_BE_QUAT_TDM_TX_7},
  487. { AFE_PORT_ID_QUINARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  488. LPASS_BE_QUIN_TDM_RX_0},
  489. { AFE_PORT_ID_QUINARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  490. LPASS_BE_QUIN_TDM_TX_0},
  491. { AFE_PORT_ID_QUINARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  492. LPASS_BE_QUIN_TDM_RX_1},
  493. { AFE_PORT_ID_QUINARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  494. LPASS_BE_QUIN_TDM_TX_1},
  495. { AFE_PORT_ID_QUINARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  496. LPASS_BE_QUIN_TDM_RX_2},
  497. { AFE_PORT_ID_QUINARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  498. LPASS_BE_QUIN_TDM_TX_2},
  499. { AFE_PORT_ID_QUINARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  500. LPASS_BE_QUIN_TDM_RX_3},
  501. { AFE_PORT_ID_QUINARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  502. LPASS_BE_QUIN_TDM_TX_3},
  503. { AFE_PORT_ID_QUINARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  504. LPASS_BE_QUIN_TDM_RX_4},
  505. { AFE_PORT_ID_QUINARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  506. LPASS_BE_QUIN_TDM_TX_4},
  507. { AFE_PORT_ID_QUINARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  508. LPASS_BE_QUIN_TDM_RX_5},
  509. { AFE_PORT_ID_QUINARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  510. LPASS_BE_QUIN_TDM_TX_5},
  511. { AFE_PORT_ID_QUINARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  512. LPASS_BE_QUIN_TDM_RX_6},
  513. { AFE_PORT_ID_QUINARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  514. LPASS_BE_QUIN_TDM_TX_6},
  515. { AFE_PORT_ID_QUINARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  516. LPASS_BE_QUIN_TDM_RX_7},
  517. { AFE_PORT_ID_QUINARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  518. LPASS_BE_QUIN_TDM_TX_7},
  519. { AFE_PORT_ID_SENARY_TDM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  520. LPASS_BE_SEN_TDM_RX_0},
  521. { AFE_PORT_ID_SENARY_TDM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  522. LPASS_BE_SEN_TDM_TX_0},
  523. { AFE_PORT_ID_SENARY_TDM_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  524. LPASS_BE_SEN_TDM_RX_1},
  525. { AFE_PORT_ID_SENARY_TDM_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  526. LPASS_BE_SEN_TDM_TX_1},
  527. { AFE_PORT_ID_SENARY_TDM_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  528. LPASS_BE_SEN_TDM_RX_2},
  529. { AFE_PORT_ID_SENARY_TDM_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  530. LPASS_BE_SEN_TDM_TX_2},
  531. { AFE_PORT_ID_SENARY_TDM_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  532. LPASS_BE_SEN_TDM_RX_3},
  533. { AFE_PORT_ID_SENARY_TDM_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  534. LPASS_BE_SEN_TDM_TX_3},
  535. { AFE_PORT_ID_SENARY_TDM_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  536. LPASS_BE_SEN_TDM_RX_4},
  537. { AFE_PORT_ID_SENARY_TDM_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  538. LPASS_BE_SEN_TDM_TX_4},
  539. { AFE_PORT_ID_SENARY_TDM_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  540. LPASS_BE_SEN_TDM_RX_5},
  541. { AFE_PORT_ID_SENARY_TDM_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  542. LPASS_BE_SEN_TDM_TX_5},
  543. { AFE_PORT_ID_SENARY_TDM_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  544. LPASS_BE_SEN_TDM_RX_6},
  545. { AFE_PORT_ID_SENARY_TDM_TX_6, 0, {0}, {0}, 0, 0, 0, 0,
  546. LPASS_BE_SEN_TDM_TX_6},
  547. { AFE_PORT_ID_SENARY_TDM_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  548. LPASS_BE_SEN_TDM_RX_7},
  549. { AFE_PORT_ID_SENARY_TDM_TX_7, 0, {0}, {0}, 0, 0, 0, 0,
  550. LPASS_BE_SEN_TDM_TX_7},
  551. { INT_BT_A2DP_RX, 0, {0}, {0}, 0, 0, 0, 0,
  552. LPASS_BE_INT_BT_A2DP_RX},
  553. { AFE_PORT_ID_USB_RX, 0, {0}, {0}, 0, 0, 0, 0,
  554. LPASS_BE_USB_AUDIO_RX},
  555. { AFE_PORT_ID_USB_TX, 0, {0}, {0}, 0, 0, 0, 0,
  556. LPASS_BE_USB_AUDIO_TX},
  557. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  558. LPASS_BE_DISPLAY_PORT},
  559. { DISPLAY_PORT_RX, 0, {0}, {0}, 0, 0, 0, 0,
  560. LPASS_BE_DISPLAY_PORT1},
  561. { AFE_PORT_ID_TERTIARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  562. LPASS_BE_TERT_AUXPCM_RX},
  563. { AFE_PORT_ID_TERTIARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  564. LPASS_BE_TERT_AUXPCM_TX},
  565. { AFE_PORT_ID_QUATERNARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  566. LPASS_BE_QUAT_AUXPCM_RX},
  567. { AFE_PORT_ID_QUATERNARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  568. LPASS_BE_QUAT_AUXPCM_TX},
  569. { AFE_PORT_ID_QUINARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  570. LPASS_BE_QUIN_AUXPCM_RX},
  571. { AFE_PORT_ID_QUINARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  572. LPASS_BE_QUIN_AUXPCM_TX},
  573. { AFE_PORT_ID_INT0_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  574. LPASS_BE_INT0_MI2S_RX},
  575. { AFE_PORT_ID_INT0_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  576. LPASS_BE_INT0_MI2S_TX},
  577. { AFE_PORT_ID_INT1_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  578. LPASS_BE_INT1_MI2S_RX},
  579. { AFE_PORT_ID_INT1_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  580. LPASS_BE_INT1_MI2S_TX},
  581. { AFE_PORT_ID_INT2_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  582. LPASS_BE_INT2_MI2S_RX},
  583. { AFE_PORT_ID_INT2_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  584. LPASS_BE_INT2_MI2S_TX},
  585. { AFE_PORT_ID_INT3_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  586. LPASS_BE_INT3_MI2S_RX},
  587. { AFE_PORT_ID_INT3_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  588. LPASS_BE_INT3_MI2S_TX},
  589. { AFE_PORT_ID_INT4_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  590. LPASS_BE_INT4_MI2S_RX},
  591. { AFE_PORT_ID_INT4_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  592. LPASS_BE_INT4_MI2S_TX},
  593. { AFE_PORT_ID_INT5_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  594. LPASS_BE_INT5_MI2S_RX},
  595. { AFE_PORT_ID_INT5_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  596. LPASS_BE_INT5_MI2S_TX},
  597. { AFE_PORT_ID_INT6_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  598. LPASS_BE_INT6_MI2S_RX},
  599. { AFE_PORT_ID_INT6_MI2S_TX, 0, {0}, {0}, 0, 0, 0, 0,
  600. LPASS_BE_INT6_MI2S_TX},
  601. { AFE_PORT_ID_SENARY_PCM_RX, 0, {0}, {0}, 0, 0, 0, 0,
  602. LPASS_BE_SEN_AUXPCM_RX},
  603. { AFE_PORT_ID_SENARY_PCM_TX, 0, {0}, {0}, 0, 0, 0, 0,
  604. LPASS_BE_SEN_AUXPCM_TX},
  605. { AFE_PORT_ID_SENARY_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  606. LPASS_BE_SENARY_MI2S_RX},
  607. { AFE_PORT_ID_WSA_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  608. LPASS_BE_WSA_CDC_DMA_RX_0},
  609. { AFE_PORT_ID_WSA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  610. LPASS_BE_WSA_CDC_DMA_TX_0},
  611. { AFE_PORT_ID_WSA_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  612. LPASS_BE_WSA_CDC_DMA_RX_1},
  613. { AFE_PORT_ID_WSA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  614. LPASS_BE_WSA_CDC_DMA_TX_1},
  615. { AFE_PORT_ID_WSA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  616. LPASS_BE_WSA_CDC_DMA_TX_2},
  617. { AFE_PORT_ID_VA_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  618. LPASS_BE_VA_CDC_DMA_TX_0},
  619. { AFE_PORT_ID_VA_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  620. LPASS_BE_VA_CDC_DMA_TX_1},
  621. { AFE_PORT_ID_VA_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  622. LPASS_BE_VA_CDC_DMA_TX_2},
  623. { AFE_PORT_ID_RX_CODEC_DMA_RX_0, 0, {0}, {0}, 0, 0, 0, 0,
  624. LPASS_BE_RX_CDC_DMA_RX_0},
  625. { AFE_PORT_ID_TX_CODEC_DMA_TX_0, 0, {0}, {0}, 0, 0, 0, 0,
  626. LPASS_BE_TX_CDC_DMA_TX_0},
  627. { AFE_PORT_ID_RX_CODEC_DMA_RX_1, 0, {0}, {0}, 0, 0, 0, 0,
  628. LPASS_BE_RX_CDC_DMA_RX_1},
  629. { AFE_PORT_ID_TX_CODEC_DMA_TX_1, 0, {0}, {0}, 0, 0, 0, 0,
  630. LPASS_BE_TX_CDC_DMA_TX_1},
  631. { AFE_PORT_ID_RX_CODEC_DMA_RX_2, 0, {0}, {0}, 0, 0, 0, 0,
  632. LPASS_BE_RX_CDC_DMA_RX_2},
  633. { AFE_PORT_ID_TX_CODEC_DMA_TX_2, 0, {0}, {0}, 0, 0, 0, 0,
  634. LPASS_BE_TX_CDC_DMA_TX_2},
  635. { AFE_PORT_ID_RX_CODEC_DMA_RX_3, 0, {0}, {0}, 0, 0, 0, 0,
  636. LPASS_BE_RX_CDC_DMA_RX_3},
  637. { AFE_PORT_ID_TX_CODEC_DMA_TX_3, 0, {0}, {0}, 0, 0, 0, 0,
  638. LPASS_BE_TX_CDC_DMA_TX_3},
  639. { AFE_PORT_ID_RX_CODEC_DMA_RX_4, 0, {0}, {0}, 0, 0, 0, 0,
  640. LPASS_BE_RX_CDC_DMA_RX_4},
  641. { AFE_PORT_ID_TX_CODEC_DMA_TX_4, 0, {0}, {0}, 0, 0, 0, 0,
  642. LPASS_BE_TX_CDC_DMA_TX_4},
  643. { AFE_PORT_ID_RX_CODEC_DMA_RX_5, 0, {0}, {0}, 0, 0, 0, 0,
  644. LPASS_BE_RX_CDC_DMA_RX_5},
  645. { AFE_PORT_ID_TX_CODEC_DMA_TX_5, 0, {0}, {0}, 0, 0, 0, 0,
  646. LPASS_BE_TX_CDC_DMA_TX_5},
  647. { AFE_PORT_ID_RX_CODEC_DMA_RX_6, 0, {0}, {0}, 0, 0, 0, 0,
  648. LPASS_BE_RX_CDC_DMA_RX_6},
  649. { AFE_PORT_ID_RX_CODEC_DMA_RX_7, 0, {0}, {0}, 0, 0, 0, 0,
  650. LPASS_BE_RX_CDC_DMA_RX_7},
  651. { AFE_PORT_ID_PRIMARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  652. LPASS_BE_PRI_SPDIF_TX},
  653. { AFE_PORT_ID_SECONDARY_SPDIF_RX, 0, {0}, {0}, 0, 0, 0, 0,
  654. LPASS_BE_SEC_SPDIF_RX},
  655. { AFE_PORT_ID_SECONDARY_SPDIF_TX, 0, {0}, {0}, 0, 0, 0, 0,
  656. LPASS_BE_SEC_SPDIF_TX},
  657. { SLIMBUS_9_RX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_RX},
  658. { SLIMBUS_9_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_SLIMBUS_9_TX},
  659. { AFE_LOOPBACK_TX, 0, {0}, {0}, 0, 0, 0, 0, LPASS_BE_AFE_LOOPBACK_TX},
  660. { AFE_PORT_ID_PRIMARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  661. LPASS_BE_PRI_META_MI2S_RX},
  662. { AFE_PORT_ID_SECONDARY_META_MI2S_RX, 0, {0}, {0}, 0, 0, 0, 0,
  663. LPASS_BE_SEC_META_MI2S_RX},
  664. };
  665. /* Track ASM playback & capture sessions of DAI
  666. * Track LSM listen sessions
  667. */
  668. static struct msm_pcm_routing_fdai_data
  669. fe_dai_map[MSM_FRONTEND_DAI_MAX][2] = {
  670. /* MULTIMEDIA1 */
  671. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  672. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  673. /* MULTIMEDIA2 */
  674. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  675. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  676. /* MULTIMEDIA3 */
  677. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  678. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  679. /* MULTIMEDIA4 */
  680. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  681. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  682. /* MULTIMEDIA5 */
  683. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  684. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  685. /* MULTIMEDIA6 */
  686. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  687. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  688. /* MULTIMEDIA7*/
  689. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  690. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  691. /* MULTIMEDIA8 */
  692. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  693. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  694. /* MULTIMEDIA9 */
  695. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  696. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  697. /* MULTIMEDIA10 */
  698. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  699. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  700. /* MULTIMEDIA11 */
  701. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  702. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  703. /* MULTIMEDIA12 */
  704. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  705. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  706. /* MULTIMEDIA13 */
  707. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  708. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  709. /* MULTIMEDIA14 */
  710. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  711. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  712. /* MULTIMEDIA15 */
  713. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  714. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  715. /* MULTIMEDIA16 */
  716. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  717. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  718. /* MULTIMEDIA17 */
  719. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  720. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  721. /* MULTIMEDIA18 */
  722. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  723. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  724. /* MULTIMEDIA19 */
  725. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  726. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  727. /* MULTIMEDIA20 */
  728. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  729. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  730. /* MULTIMEDIA21 */
  731. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  732. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  733. /* MULTIMEDIA22 */
  734. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  735. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  736. /* MULTIMEDIA26 */
  737. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  738. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  739. /* MULTIMEDIA27 */
  740. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  741. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  742. /* MULTIMEDIA28 */
  743. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  744. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  745. /* MULTIMEDIA29 */
  746. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  747. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  748. /* MULTIMEDIA30 */
  749. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  750. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  751. /* VOIP */
  752. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  753. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  754. /* AFE_RX */
  755. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  756. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  757. /* AFE_TX */
  758. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  759. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  760. /* VOICE_STUB */
  761. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  762. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  763. /* DTMF_RX */
  764. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  765. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  766. /* QCHAT */
  767. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  768. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  769. /* VOLTE_STUB */
  770. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  771. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  772. /* LSM1 */
  773. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  774. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  775. /* LSM2 */
  776. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  777. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  778. /* LSM3 */
  779. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  780. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  781. /* LSM4 */
  782. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  783. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  784. /* LSM5 */
  785. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  786. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  787. /* LSM6 */
  788. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  789. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  790. /* LSM7 */
  791. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  792. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  793. /* LSM8 */
  794. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  795. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  796. /* VOICE2_STUB */
  797. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  798. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  799. /* VOICEMMODE1 */
  800. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  801. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  802. /* VOICEMMODE2 */
  803. {{0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM},
  804. {0, INVALID_SESSION, LEGACY_PCM_MODE, {NULL, NULL}, LEGACY_PCM} },
  805. };
  806. static unsigned long session_copp_map[MSM_FRONTEND_DAI_MAX][2]
  807. [MSM_BACKEND_DAI_MAX];
  808. static struct msm_pcm_routing_app_type_data app_type_cfg[MAX_APP_TYPES];
  809. static struct msm_pcm_routing_app_type_data lsm_app_type_cfg[MAX_APP_TYPES];
  810. static struct msm_pcm_stream_app_type_cfg
  811. fe_dai_app_type_cfg[MSM_FRONTEND_DAI_MAX][2][MSM_BACKEND_DAI_MAX];
  812. static int last_be_id_configured[MSM_FRONTEND_DAI_MAX][MAX_SESSION_TYPES];
  813. /* The caller of this should acquire routing lock */
  814. void msm_pcm_routing_get_bedai_info(int be_idx,
  815. struct msm_pcm_routing_bdai_data *be_dai)
  816. {
  817. if (be_idx >= 0 && be_idx < MSM_BACKEND_DAI_MAX)
  818. memcpy(be_dai, &msm_bedais[be_idx],
  819. sizeof(struct msm_pcm_routing_bdai_data));
  820. }
  821. /* The caller of this should acquire routing lock */
  822. void msm_pcm_routing_get_fedai_info(int fe_idx, int sess_type,
  823. struct msm_pcm_routing_fdai_data *fe_dai)
  824. {
  825. if ((sess_type == SESSION_TYPE_TX) || (sess_type == SESSION_TYPE_RX))
  826. memcpy(fe_dai, &fe_dai_map[fe_idx][sess_type],
  827. sizeof(struct msm_pcm_routing_fdai_data));
  828. }
  829. void msm_pcm_routing_acquire_lock(void)
  830. {
  831. mutex_lock(&routing_lock);
  832. }
  833. void msm_pcm_routing_release_lock(void)
  834. {
  835. mutex_unlock(&routing_lock);
  836. }
  837. static int msm_pcm_routing_get_app_type_idx(int app_type)
  838. {
  839. int idx;
  840. pr_debug("%s: app_type: %d\n", __func__, app_type);
  841. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  842. if (app_type_cfg[idx].app_type == app_type)
  843. return idx;
  844. }
  845. pr_info("%s: App type not available, fallback to default\n", __func__);
  846. return 0;
  847. }
  848. static int msm_pcm_routing_get_lsm_app_type_idx(int app_type)
  849. {
  850. int idx;
  851. pr_debug("%s: app_type: %d\n", __func__, app_type);
  852. for (idx = 0; idx < MAX_APP_TYPES; idx++) {
  853. if (lsm_app_type_cfg[idx].app_type == app_type)
  854. return idx;
  855. }
  856. pr_debug("%s: App type not available, fallback to default\n", __func__);
  857. return 0;
  858. }
  859. static int get_port_id(int port_id)
  860. {
  861. int ret = port_id;
  862. if (port_id == AFE_LOOPBACK_TX) {
  863. /*
  864. * Return afe_loopback_tx_port_id if set. Else return
  865. * msm_ec_ref_port_id to maintain backward compatibility.
  866. */
  867. if (afe_loopback_tx_port_id != -1)
  868. ret = afe_loopback_tx_port_id;
  869. else
  870. ret = msm_ec_ref_port_id;
  871. }
  872. return ret;
  873. }
  874. static bool is_mm_lsm_fe_id(int fe_id)
  875. {
  876. bool rc = true;
  877. if (fe_id > MSM_FRONTEND_DAI_MM_MAX_ID &&
  878. ((fe_id < MSM_FRONTEND_DAI_LSM1) ||
  879. (fe_id > MSM_FRONTEND_DAI_LSM8))) {
  880. rc = false;
  881. }
  882. return rc;
  883. }
  884. /*
  885. * msm_pcm_routing_send_chmix_cfg:
  886. * send the channel mixer command to mix the input channels
  887. * into output channels.
  888. *
  889. * @fe_id: front end id
  890. * @ip_channel_cnt: input channel count
  891. * @op_channel_cnt: output channel count
  892. * @ch_wght_coeff: channel weight co-efficients for channel mixing
  893. * @session_type: indicates session is of type TX or RX
  894. * @stream_type: indicates either Audio or Listen stream type
  895. */
  896. int msm_pcm_routing_send_chmix_cfg(int fe_id, int ip_channel_cnt,
  897. int op_channel_cnt, int *ch_wght_coeff,
  898. int session_type, int stream_type)
  899. {
  900. int rc = 0, idx = 0;
  901. int be_index = 0, port_id;
  902. unsigned int session_id = 0;
  903. pr_debug("%s:fe_id[%d] ip_ch[%d] op_ch[%d] sess_type [%d], stream_type[%d]",
  904. __func__, fe_id, ip_channel_cnt, op_channel_cnt, session_type,
  905. stream_type);
  906. if (!is_mm_lsm_fe_id(fe_id)) {
  907. /* bad ID assigned in machine driver */
  908. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  909. return -EINVAL;
  910. }
  911. if (ch_wght_coeff == NULL) {
  912. pr_err("%s: Null channel weightage coefficients passed\n",
  913. __func__);
  914. return -EINVAL;
  915. }
  916. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  917. port_id = msm_bedais[be_index].port_id;
  918. if (!msm_bedais[be_index].active ||
  919. !test_bit(fe_id, &msm_bedais[be_index].fe_sessions[0]))
  920. continue;
  921. session_id = fe_dai_map[fe_id][session_type].strm_id;
  922. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  923. unsigned long copp =
  924. session_copp_map[fe_id][session_type][be_index];
  925. if (!test_bit(idx, &copp))
  926. continue;
  927. msm_qti_pp_send_chmix_cfg_cmd(port_id, idx,
  928. session_id, ip_channel_cnt,
  929. op_channel_cnt, ch_wght_coeff,
  930. session_type, stream_type);
  931. if (rc < 0)
  932. pr_err("%s: err setting channel mix config\n",
  933. __func__);
  934. }
  935. }
  936. return 0;
  937. }
  938. EXPORT_SYMBOL(msm_pcm_routing_send_chmix_cfg);
  939. /**
  940. * msm_pcm_routing_set_channel_mixer_cfg - cache channel mixer
  941. * setting before use case start.
  942. *
  943. * @fe_id: frontend idx
  944. * @type: stream direction type
  945. * @params: parameters of channel mixer setting
  946. *
  947. * Return 0 for success
  948. */
  949. int msm_pcm_routing_set_channel_mixer_cfg(
  950. int fe_id, int type,
  951. struct msm_pcm_channel_mixer *params)
  952. {
  953. int i, j = 0;
  954. channel_mixer_v2[fe_id][type].enable = params->enable;
  955. channel_mixer_v2[fe_id][type].rule = params->rule;
  956. channel_mixer_v2[fe_id][type].input_channel =
  957. params->input_channel;
  958. channel_mixer_v2[fe_id][type].output_channel =
  959. params->output_channel;
  960. channel_mixer_v2[fe_id][type].port_idx = params->port_idx;
  961. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  962. channel_mixer_v2[fe_id][type].in_ch_map[i] =
  963. params->in_ch_map[i];
  964. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  965. channel_mixer_v2[fe_id][type].out_ch_map[i] =
  966. params->out_ch_map[i];
  967. for (i = 0; i < ADM_MAX_CHANNELS; i++)
  968. for (j = 0; j < ADM_MAX_CHANNELS; j++)
  969. channel_mixer_v2[fe_id][type].channel_weight[i][j] =
  970. params->channel_weight[i][j];
  971. channel_mixer_v2[fe_id][type].override_in_ch_map =
  972. params->override_in_ch_map;
  973. channel_mixer_v2[fe_id][type].override_out_ch_map =
  974. params->override_out_ch_map;
  975. return 0;
  976. }
  977. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_cfg);
  978. int msm_pcm_routing_reg_stream_app_type_cfg(
  979. int fedai_id, int session_type, int be_id,
  980. struct msm_pcm_stream_app_type_cfg *cfg_data)
  981. {
  982. int ret = 0;
  983. if (cfg_data == NULL) {
  984. pr_err("%s: Received NULL pointer for cfg_data\n", __func__);
  985. ret = -EINVAL;
  986. goto done;
  987. }
  988. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  989. __func__, fedai_id, session_type, be_id,
  990. cfg_data->app_type, cfg_data->acdb_dev_id,
  991. cfg_data->sample_rate);
  992. if (!is_mm_lsm_fe_id(fedai_id)) {
  993. pr_err("%s: Invalid machine driver ID %d\n",
  994. __func__, fedai_id);
  995. ret = -EINVAL;
  996. goto done;
  997. }
  998. if (session_type != SESSION_TYPE_RX &&
  999. session_type != SESSION_TYPE_TX) {
  1000. pr_err("%s: Invalid session type %d\n",
  1001. __func__, session_type);
  1002. ret = -EINVAL;
  1003. goto done;
  1004. }
  1005. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1006. pr_err("%s: Received out of bounds be_id %d\n",
  1007. __func__, be_id);
  1008. ret = -EINVAL;
  1009. goto done;
  1010. }
  1011. fe_dai_app_type_cfg[fedai_id][session_type][be_id] = *cfg_data;
  1012. /*
  1013. * Store the BE ID of the configuration information set as the latest so
  1014. * the get mixer control knows what to return.
  1015. */
  1016. last_be_id_configured[fedai_id][session_type] = be_id;
  1017. done:
  1018. return ret;
  1019. }
  1020. EXPORT_SYMBOL(msm_pcm_routing_reg_stream_app_type_cfg);
  1021. /**
  1022. * msm_pcm_routing_get_stream_app_type_cfg
  1023. *
  1024. * Receives fedai_id, session_type, be_id, and populates app_type,
  1025. * acdb_dev_id, & sample rate. Returns 0 on success. On failure returns
  1026. * -EINVAL and does not alter passed values.
  1027. *
  1028. * fedai_id - Passed value, front end ID for which app type config is wanted
  1029. * session_type - Passed value, session type for which app type config
  1030. * is wanted
  1031. * be_id - Returned value, back end device id the app type config data is for
  1032. * cfg_data - Returned value, configuration data used by app type config
  1033. */
  1034. int msm_pcm_routing_get_stream_app_type_cfg(
  1035. int fedai_id, int session_type, int *bedai_id,
  1036. struct msm_pcm_stream_app_type_cfg *cfg_data)
  1037. {
  1038. int be_id;
  1039. int ret = 0;
  1040. if (bedai_id == NULL) {
  1041. pr_err("%s: Received NULL pointer for backend ID\n", __func__);
  1042. ret = -EINVAL;
  1043. goto done;
  1044. } else if (cfg_data == NULL) {
  1045. pr_err("%s: NULL pointer sent for cfg_data\n", __func__);
  1046. ret = -EINVAL;
  1047. goto done;
  1048. } else if (!is_mm_lsm_fe_id(fedai_id)) {
  1049. pr_err("%s: Invalid FE ID %d\n", __func__, fedai_id);
  1050. ret = -EINVAL;
  1051. goto done;
  1052. } else if (session_type != SESSION_TYPE_RX &&
  1053. session_type != SESSION_TYPE_TX) {
  1054. pr_err("%s: Invalid session type %d\n", __func__, session_type);
  1055. ret = -EINVAL;
  1056. goto done;
  1057. }
  1058. be_id = last_be_id_configured[fedai_id][session_type];
  1059. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1060. pr_err("%s: Invalid BE ID %d\n", __func__, be_id);
  1061. ret = -EINVAL;
  1062. goto done;
  1063. }
  1064. *bedai_id = be_id;
  1065. *cfg_data = fe_dai_app_type_cfg[fedai_id][session_type][be_id];
  1066. pr_debug("%s: fedai_id %d, session_type %d, be_id %d, app_type %d, acdb_dev_id %d, sample_rate %d\n",
  1067. __func__, fedai_id, session_type, *bedai_id,
  1068. cfg_data->app_type, cfg_data->acdb_dev_id,
  1069. cfg_data->sample_rate);
  1070. done:
  1071. return ret;
  1072. }
  1073. EXPORT_SYMBOL(msm_pcm_routing_get_stream_app_type_cfg);
  1074. static struct cal_block_data *msm_routing_find_topology_by_path(int path,
  1075. int cal_index)
  1076. {
  1077. struct list_head *ptr, *next;
  1078. struct cal_block_data *cal_block = NULL;
  1079. pr_debug("%s\n", __func__);
  1080. list_for_each_safe(ptr, next,
  1081. &cal_data[cal_index]->cal_blocks) {
  1082. cal_block = list_entry(ptr,
  1083. struct cal_block_data, list);
  1084. if (cal_utils_is_cal_stale(cal_block))
  1085. continue;
  1086. if (((struct audio_cal_info_adm_top *)cal_block
  1087. ->cal_info)->path == path) {
  1088. return cal_block;
  1089. }
  1090. }
  1091. pr_debug("%s: Can't find topology for path %d\n", __func__, path);
  1092. return NULL;
  1093. }
  1094. static struct cal_block_data *msm_routing_find_topology(int path,
  1095. int app_type,
  1096. int acdb_id,
  1097. int cal_index,
  1098. bool exact)
  1099. {
  1100. struct list_head *ptr, *next;
  1101. struct cal_block_data *cal_block = NULL;
  1102. struct audio_cal_info_adm_top *cal_info;
  1103. pr_debug("%s\n", __func__);
  1104. list_for_each_safe(ptr, next,
  1105. &cal_data[cal_index]->cal_blocks) {
  1106. cal_block = list_entry(ptr,
  1107. struct cal_block_data, list);
  1108. if (cal_utils_is_cal_stale(cal_block))
  1109. continue;
  1110. cal_info = (struct audio_cal_info_adm_top *)
  1111. cal_block->cal_info;
  1112. if ((cal_info->path == path) &&
  1113. (cal_info->app_type == app_type) &&
  1114. (cal_info->acdb_id == acdb_id)) {
  1115. return cal_block;
  1116. }
  1117. }
  1118. pr_debug("%s: Can't find topology for path %d, app %d, "
  1119. "acdb_id %d %s\n", __func__, path, app_type, acdb_id,
  1120. exact ? "fail" : "defaulting to search by path");
  1121. return exact ? NULL : msm_routing_find_topology_by_path(path,
  1122. cal_index);
  1123. }
  1124. static int msm_routing_find_topology_on_index(int session_type, int app_type,
  1125. int acdb_dev_id, int idx,
  1126. bool exact)
  1127. {
  1128. int topology = -EINVAL;
  1129. struct cal_block_data *cal_block = NULL;
  1130. mutex_lock(&cal_data[idx]->lock);
  1131. cal_block = msm_routing_find_topology(session_type, app_type,
  1132. acdb_dev_id, idx, exact);
  1133. if (cal_block != NULL) {
  1134. topology = ((struct audio_cal_info_adm_top *)
  1135. cal_block->cal_info)->topology;
  1136. }
  1137. mutex_unlock(&cal_data[idx]->lock);
  1138. return topology;
  1139. }
  1140. /*
  1141. * Retrieving cal_block will mark cal_block as stale.
  1142. * Hence it cannot be reused or resent unless the flag
  1143. * is reset.
  1144. */
  1145. static int msm_routing_get_adm_topology(int fedai_id, int session_type,
  1146. int be_id)
  1147. {
  1148. int topology = NULL_COPP_TOPOLOGY;
  1149. int app_type = 0, acdb_dev_id = 0;
  1150. pr_debug("%s: fedai_id %d, session_type %d, be_id %d\n",
  1151. __func__, fedai_id, session_type, be_id);
  1152. if (cal_data == NULL)
  1153. goto done;
  1154. app_type = fe_dai_app_type_cfg[fedai_id][session_type][be_id].app_type;
  1155. acdb_dev_id =
  1156. fe_dai_app_type_cfg[fedai_id][session_type][be_id].acdb_dev_id;
  1157. pr_debug("%s: Check for exact LSM topology\n", __func__);
  1158. topology = msm_routing_find_topology_on_index(session_type,
  1159. app_type,
  1160. acdb_dev_id,
  1161. ADM_LSM_TOPOLOGY_CAL_TYPE_IDX,
  1162. true /*exact*/);
  1163. if (topology < 0) {
  1164. pr_debug("%s: Check for compatible topology\n", __func__);
  1165. topology = msm_routing_find_topology_on_index(session_type,
  1166. app_type,
  1167. acdb_dev_id,
  1168. ADM_TOPOLOGY_CAL_TYPE_IDX,
  1169. false /*exact*/);
  1170. if (topology < 0)
  1171. topology = NULL_COPP_TOPOLOGY;
  1172. }
  1173. done:
  1174. pr_debug("%s: Using topology %d\n", __func__, topology);
  1175. return topology;
  1176. }
  1177. static uint8_t is_be_dai_extproc(int be_dai)
  1178. {
  1179. if (be_dai == MSM_BACKEND_DAI_EXTPROC_RX ||
  1180. be_dai == MSM_BACKEND_DAI_EXTPROC_TX ||
  1181. be_dai == MSM_BACKEND_DAI_EXTPROC_EC_TX)
  1182. return 1;
  1183. else
  1184. return 0;
  1185. }
  1186. static void msm_pcm_routing_build_matrix(int fedai_id, int sess_type,
  1187. int path_type, int perf_mode,
  1188. uint32_t passthr_mode)
  1189. {
  1190. int i, port_type, j, num_copps = 0;
  1191. struct route_payload payload;
  1192. port_type = ((path_type == ADM_PATH_PLAYBACK ||
  1193. path_type == ADM_PATH_COMPRESSED_RX) ?
  1194. MSM_AFE_PORT_TYPE_RX : MSM_AFE_PORT_TYPE_TX);
  1195. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1196. if (!is_be_dai_extproc(i) &&
  1197. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1198. (msm_bedais[i].active) &&
  1199. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1200. int port_id = get_port_id(msm_bedais[i].port_id);
  1201. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1202. unsigned long copp =
  1203. session_copp_map[fedai_id][sess_type][i];
  1204. if (test_bit(j, &copp)) {
  1205. payload.port_id[num_copps] = port_id;
  1206. payload.copp_idx[num_copps] = j;
  1207. payload.app_type[num_copps] =
  1208. fe_dai_app_type_cfg
  1209. [fedai_id][sess_type][i]
  1210. .app_type;
  1211. payload.acdb_dev_id[num_copps] =
  1212. fe_dai_app_type_cfg
  1213. [fedai_id][sess_type][i]
  1214. .acdb_dev_id;
  1215. payload.sample_rate[num_copps] =
  1216. fe_dai_app_type_cfg
  1217. [fedai_id][sess_type][i]
  1218. .sample_rate;
  1219. num_copps++;
  1220. }
  1221. }
  1222. }
  1223. }
  1224. if (num_copps) {
  1225. payload.num_copps = num_copps;
  1226. payload.session_id = fe_dai_map[fedai_id][sess_type].strm_id;
  1227. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1228. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1229. }
  1230. }
  1231. void msm_pcm_routing_reg_psthr_stream(int fedai_id, int dspst_id,
  1232. int stream_type)
  1233. {
  1234. int i, session_type, path_type, port_type;
  1235. u32 mode = 0;
  1236. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1237. /* bad ID assigned in machine driver */
  1238. pr_err("%s: bad MM ID\n", __func__);
  1239. return;
  1240. }
  1241. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1242. session_type = SESSION_TYPE_RX;
  1243. path_type = ADM_PATH_PLAYBACK;
  1244. port_type = MSM_AFE_PORT_TYPE_RX;
  1245. } else {
  1246. session_type = SESSION_TYPE_TX;
  1247. path_type = ADM_PATH_LIVE_REC;
  1248. port_type = MSM_AFE_PORT_TYPE_TX;
  1249. }
  1250. mutex_lock(&routing_lock);
  1251. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1252. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1253. if (!is_be_dai_extproc(i) &&
  1254. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1255. (msm_bedais[i].active) &&
  1256. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1257. mode = afe_get_port_type(msm_bedais[i].port_id);
  1258. adm_connect_afe_port(mode, dspst_id,
  1259. msm_bedais[i].port_id);
  1260. break;
  1261. }
  1262. }
  1263. mutex_unlock(&routing_lock);
  1264. }
  1265. static bool route_check_fe_id_adm_support(int fe_id)
  1266. {
  1267. bool rc = true;
  1268. if ((fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1269. (fe_id <= MSM_FRONTEND_DAI_LSM8)) {
  1270. /* fe id is listen while port is set to afe */
  1271. if (lsm_port_index != ADM_LSM_PORT_INDEX) {
  1272. pr_debug("%s: fe_id %d, lsm mux slim port %d\n",
  1273. __func__, fe_id, lsm_port_index);
  1274. rc = false;
  1275. }
  1276. }
  1277. return rc;
  1278. }
  1279. /*
  1280. * msm_pcm_routing_get_pp_ch_cnt:
  1281. * Read the processed channel count
  1282. *
  1283. * @fe_id: Front end ID
  1284. * @session_type: Inidicates RX or TX session type
  1285. */
  1286. int msm_pcm_routing_get_pp_ch_cnt(int fe_id, int session_type)
  1287. {
  1288. struct msm_pcm_stream_app_type_cfg cfg_data;
  1289. int be_id = 0, app_type_idx = 0, app_type = 0;
  1290. int ret = -EINVAL;
  1291. memset(&cfg_data, 0, sizeof(cfg_data));
  1292. if (!is_mm_lsm_fe_id(fe_id)) {
  1293. pr_err("%s: bad MM ID\n", __func__);
  1294. return -EINVAL;
  1295. }
  1296. ret = msm_pcm_routing_get_stream_app_type_cfg(fe_id, session_type,
  1297. &be_id, &cfg_data);
  1298. if (ret) {
  1299. pr_err("%s: cannot get stream app type cfg\n", __func__);
  1300. return ret;
  1301. }
  1302. app_type = cfg_data.app_type;
  1303. app_type_idx = msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1304. return lsm_app_type_cfg[app_type_idx].num_out_channels;
  1305. }
  1306. EXPORT_SYMBOL(msm_pcm_routing_get_pp_ch_cnt);
  1307. int msm_pcm_routing_reg_phy_compr_stream(int fe_id, int perf_mode,
  1308. int dspst_id, int stream_type,
  1309. uint32_t passthr_mode)
  1310. {
  1311. int i, j, session_type, path_type, port_type, topology;
  1312. int num_copps = 0;
  1313. struct route_payload payload;
  1314. u32 channels, sample_rate;
  1315. u16 bit_width = 16, be_bit_width;
  1316. bool is_lsm;
  1317. pr_debug("%s:fe_id[%d] perf_mode[%d] id[%d] stream_type[%d] passt[%d]",
  1318. __func__, fe_id, perf_mode, dspst_id,
  1319. stream_type, passthr_mode);
  1320. if (!is_mm_lsm_fe_id(fe_id)) {
  1321. /* bad ID assigned in machine driver */
  1322. pr_err("%s: bad MM ID %d\n", __func__, fe_id);
  1323. return -EINVAL;
  1324. }
  1325. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1326. session_type = SESSION_TYPE_RX;
  1327. if (passthr_mode != LEGACY_PCM)
  1328. path_type = ADM_PATH_COMPRESSED_RX;
  1329. else
  1330. path_type = ADM_PATH_PLAYBACK;
  1331. port_type = MSM_AFE_PORT_TYPE_RX;
  1332. } else if (stream_type == SNDRV_PCM_STREAM_CAPTURE) {
  1333. session_type = SESSION_TYPE_TX;
  1334. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1335. path_type = ADM_PATH_COMPRESSED_TX;
  1336. else
  1337. path_type = ADM_PATH_LIVE_REC;
  1338. port_type = MSM_AFE_PORT_TYPE_TX;
  1339. } else {
  1340. pr_err("%s: invalid stream type %d\n", __func__, stream_type);
  1341. return -EINVAL;
  1342. }
  1343. is_lsm = (fe_id >= MSM_FRONTEND_DAI_LSM1) &&
  1344. (fe_id <= MSM_FRONTEND_DAI_LSM8);
  1345. mutex_lock(&routing_lock);
  1346. fe_dai_map[fe_id][session_type].strm_id = dspst_id;
  1347. fe_dai_map[fe_id][session_type].perf_mode = perf_mode;
  1348. fe_dai_map[fe_id][session_type].passthr_mode = passthr_mode;
  1349. if (!route_check_fe_id_adm_support(fe_id)) {
  1350. /* ignore adm open if not supported for fe_id */
  1351. pr_debug("%s: No ADM support for fe id %d\n", __func__, fe_id);
  1352. mutex_unlock(&routing_lock);
  1353. return 0;
  1354. }
  1355. payload.num_copps = 0; /* only RX needs to use payload */
  1356. /* re-enable EQ if active */
  1357. msm_qti_pp_send_eq_values(fe_id);
  1358. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1359. if (!is_be_dai_extproc(i) &&
  1360. (afe_get_port_type(msm_bedais[i].port_id) ==
  1361. port_type) &&
  1362. (msm_bedais[i].active) &&
  1363. (test_bit(fe_id, &msm_bedais[i].fe_sessions[0]))) {
  1364. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1365. int port_id = get_port_id(msm_bedais[i].port_id);
  1366. /*
  1367. * check if ADM needs to be configured with different
  1368. * channel mapping than backend
  1369. */
  1370. if (!msm_bedais[i].adm_override_ch)
  1371. channels = msm_bedais[i].channel;
  1372. else
  1373. channels = msm_bedais[i].adm_override_ch;
  1374. bit_width = msm_routing_get_bit_width(
  1375. msm_bedais[i].format);
  1376. app_type =
  1377. fe_dai_app_type_cfg[fe_id][session_type][i].app_type;
  1378. if (app_type && is_lsm) {
  1379. app_type_idx =
  1380. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1381. sample_rate =
  1382. fe_dai_app_type_cfg[fe_id][session_type][i]
  1383. .sample_rate;
  1384. bit_width =
  1385. lsm_app_type_cfg[app_type_idx].bit_width;
  1386. } else if (app_type) {
  1387. app_type_idx =
  1388. msm_pcm_routing_get_app_type_idx(
  1389. app_type);
  1390. sample_rate =
  1391. fe_dai_app_type_cfg[fe_id][session_type][i].sample_rate;
  1392. bit_width =
  1393. app_type_cfg[app_type_idx].bit_width;
  1394. } else {
  1395. sample_rate = msm_bedais[i].sample_rate;
  1396. }
  1397. acdb_dev_id =
  1398. fe_dai_app_type_cfg[fe_id][session_type][i].acdb_dev_id;
  1399. topology = msm_routing_get_adm_topology(fe_id,
  1400. session_type,
  1401. i);
  1402. if ((passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  1403. || (passthr_mode ==
  1404. COMPRESSED_PASSTHROUGH_GEN)
  1405. || (passthr_mode ==
  1406. COMPRESSED_PASSTHROUGH_IEC61937))
  1407. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  1408. pr_debug("%s: Before adm open topology %d\n", __func__,
  1409. topology);
  1410. be_bit_width = msm_routing_get_bit_width(
  1411. msm_bedais[i].format);
  1412. if (hifi_filter_enabled && (msm_bedais[i].sample_rate
  1413. == 384000 || msm_bedais[i].sample_rate ==
  1414. 352800) && be_bit_width == 32)
  1415. bit_width = msm_routing_get_bit_width(
  1416. SNDRV_PCM_FORMAT_S32_LE);
  1417. copp_idx =
  1418. adm_open(port_id, path_type, sample_rate,
  1419. channels, topology, perf_mode,
  1420. bit_width, app_type, acdb_dev_id,
  1421. session_type);
  1422. if ((copp_idx < 0) ||
  1423. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1424. pr_err("%s:adm open failed coppid:%d\n",
  1425. __func__, copp_idx);
  1426. mutex_unlock(&routing_lock);
  1427. return -EINVAL;
  1428. }
  1429. pr_debug("%s: set idx bit of fe:%d, type: %d, be:%d\n",
  1430. __func__, fe_id, session_type, i);
  1431. set_bit(copp_idx,
  1432. &session_copp_map[fe_id][session_type][i]);
  1433. if (msm_is_resample_needed(
  1434. sample_rate,
  1435. msm_bedais[i].sample_rate))
  1436. adm_copp_mfc_cfg(port_id, copp_idx,
  1437. msm_bedais[i].sample_rate);
  1438. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1439. unsigned long copp =
  1440. session_copp_map[fe_id][session_type][i];
  1441. if (test_bit(j, &copp)) {
  1442. payload.port_id[num_copps] = port_id;
  1443. payload.copp_idx[num_copps] = j;
  1444. payload.app_type[num_copps] =
  1445. fe_dai_app_type_cfg
  1446. [fe_id][session_type][i]
  1447. .app_type;
  1448. payload.acdb_dev_id[num_copps] =
  1449. fe_dai_app_type_cfg
  1450. [fe_id][session_type][i]
  1451. .acdb_dev_id;
  1452. payload.sample_rate[num_copps] =
  1453. fe_dai_app_type_cfg
  1454. [fe_id][session_type][i]
  1455. .sample_rate;
  1456. num_copps++;
  1457. }
  1458. }
  1459. if (passthr_mode != COMPRESSED_PASSTHROUGH_DSD
  1460. && passthr_mode != COMPRESSED_PASSTHROUGH_GEN
  1461. && passthr_mode != COMPRESSED_PASSTHROUGH_IEC61937)
  1462. msm_routing_send_device_pp_params(port_id,
  1463. copp_idx, fe_id);
  1464. }
  1465. }
  1466. if (num_copps) {
  1467. payload.num_copps = num_copps;
  1468. payload.session_id = fe_dai_map[fe_id][session_type].strm_id;
  1469. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1470. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1471. }
  1472. mutex_unlock(&routing_lock);
  1473. return 0;
  1474. }
  1475. static u32 msm_pcm_routing_get_voc_sessionid(u16 val)
  1476. {
  1477. u32 session_id;
  1478. switch (val) {
  1479. case MSM_FRONTEND_DAI_QCHAT:
  1480. session_id = voc_get_session_id(QCHAT_SESSION_NAME);
  1481. break;
  1482. case MSM_FRONTEND_DAI_VOIP:
  1483. session_id = voc_get_session_id(VOIP_SESSION_NAME);
  1484. break;
  1485. case MSM_FRONTEND_DAI_VOICEMMODE1:
  1486. session_id = voc_get_session_id(VOICEMMODE1_NAME);
  1487. break;
  1488. case MSM_FRONTEND_DAI_VOICEMMODE2:
  1489. session_id = voc_get_session_id(VOICEMMODE2_NAME);
  1490. break;
  1491. default:
  1492. session_id = 0;
  1493. }
  1494. pr_debug("%s session_id 0x%x", __func__, session_id);
  1495. return session_id;
  1496. }
  1497. static int msm_pcm_routing_channel_mixer_v2(int fe_id, bool perf_mode,
  1498. int dspst_id, int stream_type)
  1499. {
  1500. int copp_idx = 0;
  1501. int sess_type = 0;
  1502. int j = 0, be_id = 0;
  1503. int ret = 0;
  1504. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1505. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1506. return 0;
  1507. }
  1508. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1509. sess_type = SESSION_TYPE_RX;
  1510. else
  1511. sess_type = SESSION_TYPE_TX;
  1512. if (!(channel_mixer_v2[fe_id][sess_type].enable)) {
  1513. pr_debug("%s: channel mixer not enabled for FE %d direction %d\n",
  1514. __func__, fe_id, sess_type);
  1515. return 0;
  1516. }
  1517. be_id = channel_mixer_v2[fe_id][sess_type].port_idx - 1;
  1518. channel_mixer_v2[fe_id][sess_type].input_channels[0] =
  1519. channel_mixer_v2[fe_id][sess_type].input_channel;
  1520. pr_debug("%s sess type %d,fe_id %d,override in:%d out:%d,be active %d\n",
  1521. __func__, sess_type, fe_id,
  1522. channel_mixer_v2[fe_id][sess_type].override_in_ch_map,
  1523. channel_mixer_v2[fe_id][sess_type].override_out_ch_map,
  1524. msm_bedais[be_id].active);
  1525. if ((msm_bedais[be_id].active) &&
  1526. test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0])) {
  1527. unsigned long copp =
  1528. session_copp_map[fe_id][sess_type][be_id];
  1529. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1530. if (test_bit(j, &copp)) {
  1531. copp_idx = j;
  1532. break;
  1533. }
  1534. }
  1535. ret = adm_programable_channel_mixer(
  1536. msm_bedais[be_id].port_id,
  1537. copp_idx, dspst_id, sess_type,
  1538. &channel_mixer_v2[fe_id][sess_type], 0);
  1539. }
  1540. return ret;
  1541. }
  1542. static int msm_pcm_routing_channel_mixer(int fe_id, bool perf_mode,
  1543. int dspst_id, int stream_type)
  1544. {
  1545. int copp_idx = 0;
  1546. int sess_type = 0;
  1547. int i = 0, j = 0, be_id;
  1548. int ret = 0;
  1549. ret = msm_pcm_routing_channel_mixer_v2(fe_id, perf_mode,
  1550. dspst_id, stream_type);
  1551. if (ret) {
  1552. pr_err("%s channel mixer v2 cmd set failure%d\n", __func__,
  1553. fe_id);
  1554. return ret;
  1555. }
  1556. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  1557. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  1558. return 0;
  1559. }
  1560. if (!(channel_mixer[fe_id].enable)) {
  1561. pr_debug("%s: channel mixer not enabled for FE %d\n",
  1562. __func__, fe_id);
  1563. return 0;
  1564. }
  1565. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1566. sess_type = SESSION_TYPE_RX;
  1567. else
  1568. sess_type = SESSION_TYPE_TX;
  1569. for (i = 0; i < ADM_MAX_CHANNELS && channel_input[fe_id][i] > 0;
  1570. ++i) {
  1571. be_id = channel_input[fe_id][i] - 1;
  1572. channel_mixer[fe_id].input_channels[i] =
  1573. msm_bedais[be_id].channel;
  1574. if ((msm_bedais[be_id].active) &&
  1575. test_bit(fe_id,
  1576. &msm_bedais[be_id].fe_sessions[0])) {
  1577. unsigned long copp =
  1578. session_copp_map[fe_id][sess_type][be_id];
  1579. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1580. if (test_bit(j, &copp)) {
  1581. copp_idx = j;
  1582. break;
  1583. }
  1584. }
  1585. pr_debug("%s: fe %d, be %d, channel %d, copp %d\n",
  1586. __func__,
  1587. fe_id, be_id, msm_bedais[be_id].channel,
  1588. copp_idx);
  1589. ret = adm_programable_channel_mixer(
  1590. get_port_id(msm_bedais[be_id].port_id),
  1591. copp_idx, dspst_id, sess_type,
  1592. channel_mixer + fe_id, i);
  1593. }
  1594. }
  1595. return ret;
  1596. }
  1597. /**
  1598. * msm_pcm_routing_set_channel_mixer_runtime - apply channel mixer
  1599. * setting during runtime.
  1600. *
  1601. * @be_id: backend index
  1602. * @session_id: session index
  1603. * @session_type: session type
  1604. * @params: parameters for channel mixer
  1605. *
  1606. * Retuen: 0 for success, else error
  1607. */
  1608. int msm_pcm_routing_set_channel_mixer_runtime(int be_id, int session_id,
  1609. int session_type,
  1610. struct msm_pcm_channel_mixer *params)
  1611. {
  1612. int rc = 0;
  1613. int port_id, copp_idx = 0;
  1614. be_id--;
  1615. if (be_id < 0 || be_id >= MSM_BACKEND_DAI_MAX) {
  1616. pr_err("%s: invalid backend id %d\n", __func__,
  1617. be_id);
  1618. return -EINVAL;
  1619. }
  1620. port_id = msm_bedais[be_id].port_id;
  1621. copp_idx = adm_get_default_copp_idx(port_id);
  1622. pr_debug("%s: port_id - %d, copp_idx %d session id - %d\n",
  1623. __func__, port_id, copp_idx, session_id);
  1624. if ((params->input_channel < 0) ||
  1625. (params->input_channel > ADM_MAX_CHANNELS)) {
  1626. pr_err("%s: invalid input channel %d\n", __func__,
  1627. params->input_channel);
  1628. return -EINVAL;
  1629. }
  1630. if ((params->output_channel < 0) ||
  1631. (params->output_channel > ADM_MAX_CHANNELS)) {
  1632. pr_err("%s: invalid output channel %d\n", __func__,
  1633. params->output_channel);
  1634. return -EINVAL;
  1635. }
  1636. params->input_channels[0] = params->input_channel;
  1637. pr_debug("%s sess type %d,override in:%d out:%d,be active %d\n",
  1638. __func__, session_type,
  1639. params->override_in_ch_map,
  1640. params->override_out_ch_map,
  1641. msm_bedais[be_id].active);
  1642. rc = adm_programable_channel_mixer(port_id,
  1643. copp_idx,
  1644. session_id,
  1645. session_type,
  1646. params,
  1647. 0);
  1648. if (rc) {
  1649. pr_err("%s: send params failed rc=%d\n", __func__, rc);
  1650. rc = -EINVAL;
  1651. }
  1652. return rc;
  1653. }
  1654. EXPORT_SYMBOL(msm_pcm_routing_set_channel_mixer_runtime);
  1655. int msm_pcm_routing_reg_phy_stream(int fedai_id, int perf_mode,
  1656. int dspst_id, int stream_type)
  1657. {
  1658. int i, j, session_type, path_type, port_type, topology, num_copps = 0;
  1659. struct route_payload payload;
  1660. u32 channels, sample_rate;
  1661. uint16_t bits_per_sample = 16, be_bit_width;
  1662. uint32_t passthr_mode = LEGACY_PCM;
  1663. int ret = 0;
  1664. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  1665. /* bad ID assigned in machine driver */
  1666. pr_err("%s: bad MM ID %d\n", __func__, fedai_id);
  1667. return -EINVAL;
  1668. }
  1669. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1670. session_type = SESSION_TYPE_RX;
  1671. path_type = ADM_PATH_PLAYBACK;
  1672. port_type = MSM_AFE_PORT_TYPE_RX;
  1673. } else {
  1674. session_type = SESSION_TYPE_TX;
  1675. path_type = ADM_PATH_LIVE_REC;
  1676. port_type = MSM_AFE_PORT_TYPE_TX;
  1677. }
  1678. mutex_lock(&routing_lock);
  1679. payload.num_copps = 0; /* only RX needs to use payload */
  1680. fe_dai_map[fedai_id][session_type].strm_id = dspst_id;
  1681. fe_dai_map[fedai_id][session_type].perf_mode = perf_mode;
  1682. fe_dai_map[fedai_id][session_type].passthr_mode = LEGACY_PCM;
  1683. /* re-enable EQ if active */
  1684. msm_qti_pp_send_eq_values(fedai_id);
  1685. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1686. if (!is_be_dai_extproc(i) &&
  1687. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1688. (msm_bedais[i].active) &&
  1689. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1690. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1691. int port_id = get_port_id(msm_bedais[i].port_id);
  1692. /*
  1693. * check if ADM needs to be configured with different
  1694. * channel mapping than backend
  1695. */
  1696. if (!msm_bedais[i].adm_override_ch)
  1697. channels = msm_bedais[i].channel;
  1698. else
  1699. channels = msm_bedais[i].adm_override_ch;
  1700. bits_per_sample = msm_routing_get_bit_width(
  1701. msm_bedais[i].format);
  1702. app_type =
  1703. fe_dai_app_type_cfg[fedai_id][session_type][i].app_type;
  1704. if (app_type) {
  1705. app_type_idx =
  1706. msm_pcm_routing_get_app_type_idx(app_type);
  1707. sample_rate =
  1708. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1709. .sample_rate;
  1710. bits_per_sample =
  1711. app_type_cfg[app_type_idx].bit_width;
  1712. } else
  1713. sample_rate = msm_bedais[i].sample_rate;
  1714. acdb_dev_id =
  1715. fe_dai_app_type_cfg[fedai_id][session_type][i]
  1716. .acdb_dev_id;
  1717. topology = msm_routing_get_adm_topology(fedai_id,
  1718. session_type,
  1719. i);
  1720. be_bit_width = msm_routing_get_bit_width(
  1721. msm_bedais[i].format);
  1722. if (hifi_filter_enabled && (msm_bedais[i].sample_rate ==
  1723. 384000 ||msm_bedais[i].sample_rate == 352800)
  1724. && be_bit_width == 32)
  1725. bits_per_sample = msm_routing_get_bit_width(
  1726. SNDRV_PCM_FORMAT_S32_LE);
  1727. copp_idx = adm_open(port_id, path_type,
  1728. sample_rate, channels, topology,
  1729. perf_mode, bits_per_sample,
  1730. app_type, acdb_dev_id,
  1731. session_type);
  1732. if ((copp_idx < 0) ||
  1733. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1734. pr_err("%s: adm open failed copp_idx:%d\n",
  1735. __func__, copp_idx);
  1736. mutex_unlock(&routing_lock);
  1737. return -EINVAL;
  1738. }
  1739. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1740. __func__, fedai_id, session_type, i);
  1741. set_bit(copp_idx,
  1742. &session_copp_map[fedai_id][session_type][i]);
  1743. if (msm_is_resample_needed(
  1744. sample_rate,
  1745. msm_bedais[i].sample_rate))
  1746. adm_copp_mfc_cfg(port_id, copp_idx,
  1747. msm_bedais[i].sample_rate);
  1748. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  1749. unsigned long copp =
  1750. session_copp_map[fedai_id][session_type][i];
  1751. if (test_bit(j, &copp)) {
  1752. payload.port_id[num_copps] = port_id;
  1753. payload.copp_idx[num_copps] = j;
  1754. payload.app_type[num_copps] =
  1755. fe_dai_app_type_cfg
  1756. [fedai_id][session_type]
  1757. [i].app_type;
  1758. payload.acdb_dev_id[num_copps] =
  1759. fe_dai_app_type_cfg
  1760. [fedai_id][session_type]
  1761. [i].acdb_dev_id;
  1762. payload.sample_rate[num_copps] =
  1763. fe_dai_app_type_cfg
  1764. [fedai_id][session_type]
  1765. [i].sample_rate;
  1766. num_copps++;
  1767. }
  1768. }
  1769. if (perf_mode == LEGACY_PCM_MODE)
  1770. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  1771. topology, channels);
  1772. }
  1773. }
  1774. if (num_copps) {
  1775. payload.num_copps = num_copps;
  1776. payload.session_id = fe_dai_map[fedai_id][session_type].strm_id;
  1777. adm_matrix_map(path_type, payload, perf_mode, passthr_mode);
  1778. msm_pcm_routng_cfg_matrix_map_pp(payload, path_type, perf_mode);
  1779. }
  1780. ret = msm_pcm_routing_channel_mixer(fedai_id, perf_mode,
  1781. dspst_id, stream_type);
  1782. mutex_unlock(&routing_lock);
  1783. return ret;
  1784. }
  1785. int msm_pcm_routing_reg_phy_stream_v2(int fedai_id, int perf_mode,
  1786. int dspst_id, int stream_type,
  1787. struct msm_pcm_routing_evt event_info)
  1788. {
  1789. if (msm_pcm_routing_reg_phy_stream(fedai_id, perf_mode, dspst_id,
  1790. stream_type)) {
  1791. pr_err("%s: failed to reg phy stream\n", __func__);
  1792. return -EINVAL;
  1793. }
  1794. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK)
  1795. fe_dai_map[fedai_id][SESSION_TYPE_RX].event_info = event_info;
  1796. else
  1797. fe_dai_map[fedai_id][SESSION_TYPE_TX].event_info = event_info;
  1798. return 0;
  1799. }
  1800. void msm_pcm_routing_dereg_phy_stream(int fedai_id, int stream_type)
  1801. {
  1802. int i, port_type, session_type, path_type, topology, port_id;
  1803. struct msm_pcm_routing_fdai_data *fdai;
  1804. if (!is_mm_lsm_fe_id(fedai_id)) {
  1805. /* bad ID assigned in machine driver */
  1806. pr_err("%s: bad MM ID\n", __func__);
  1807. return;
  1808. }
  1809. if (stream_type == SNDRV_PCM_STREAM_PLAYBACK) {
  1810. port_type = MSM_AFE_PORT_TYPE_RX;
  1811. session_type = SESSION_TYPE_RX;
  1812. path_type = ADM_PATH_PLAYBACK;
  1813. } else {
  1814. port_type = MSM_AFE_PORT_TYPE_TX;
  1815. session_type = SESSION_TYPE_TX;
  1816. path_type = ADM_PATH_LIVE_REC;
  1817. }
  1818. mutex_lock(&routing_lock);
  1819. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  1820. if (!is_be_dai_extproc(i) &&
  1821. (afe_get_port_type(msm_bedais[i].port_id) == port_type) &&
  1822. (msm_bedais[i].active) &&
  1823. (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))) {
  1824. int idx;
  1825. unsigned long copp =
  1826. session_copp_map[fedai_id][session_type][i];
  1827. fdai = &fe_dai_map[fedai_id][session_type];
  1828. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  1829. if (test_bit(idx, &copp))
  1830. break;
  1831. if (idx >= MAX_COPPS_PER_PORT || idx < 0) {
  1832. pr_debug("%s: copp idx is invalid, exiting\n",
  1833. __func__);
  1834. continue;
  1835. }
  1836. port_id = get_port_id(msm_bedais[i].port_id);
  1837. topology = adm_get_topology_for_port_copp_idx(
  1838. port_id, idx);
  1839. msm_routing_unload_topology(topology);
  1840. adm_close(port_id, fdai->perf_mode, idx);
  1841. pr_debug("%s:copp:%ld,idx bit fe:%d,type:%d,be:%d\n",
  1842. __func__, copp, fedai_id, session_type, i);
  1843. clear_bit(idx,
  1844. &session_copp_map[fedai_id][session_type][i]);
  1845. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  1846. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  1847. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  1848. (fdai->passthr_mode == LEGACY_PCM))
  1849. msm_pcm_routing_deinit_pp(port_id, topology);
  1850. }
  1851. }
  1852. fe_dai_map[fedai_id][session_type].strm_id = INVALID_SESSION;
  1853. fe_dai_map[fedai_id][session_type].be_srate = 0;
  1854. mutex_unlock(&routing_lock);
  1855. }
  1856. /* Check if FE/BE route is set */
  1857. static bool msm_pcm_routing_route_is_set(u16 be_id, u16 fe_id)
  1858. {
  1859. bool rc = false;
  1860. if (!is_mm_lsm_fe_id(fe_id)) {
  1861. /* recheck FE ID in the mixer control defined in this file */
  1862. pr_err("%s: bad MM ID\n", __func__);
  1863. return rc;
  1864. }
  1865. if (test_bit(fe_id, &msm_bedais[be_id].fe_sessions[0]))
  1866. rc = true;
  1867. return rc;
  1868. }
  1869. static void msm_pcm_routing_process_audio(u16 reg, u16 val, int set)
  1870. {
  1871. int session_type, path_type, topology;
  1872. u32 channels, sample_rate;
  1873. uint16_t bits_per_sample = 16, be_bit_width;
  1874. struct msm_pcm_routing_fdai_data *fdai;
  1875. uint32_t passthr_mode;
  1876. bool is_lsm;
  1877. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  1878. if (!is_mm_lsm_fe_id(val)) {
  1879. /* recheck FE ID in the mixer control defined in this file */
  1880. pr_err("%s: bad MM ID\n", __func__);
  1881. return;
  1882. }
  1883. if (!route_check_fe_id_adm_support(val)) {
  1884. /* ignore adm open if not supported for fe_id */
  1885. pr_debug("%s: No ADM support for fe id %d\n", __func__, val);
  1886. if (set)
  1887. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1888. else
  1889. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1890. return;
  1891. }
  1892. session_type =
  1893. (afe_get_port_type(msm_bedais[reg].port_id) == MSM_AFE_PORT_TYPE_RX) ?
  1894. SESSION_TYPE_RX : SESSION_TYPE_TX;
  1895. fdai = &fe_dai_map[val][session_type];
  1896. passthr_mode = fdai->passthr_mode;
  1897. if (session_type == SESSION_TYPE_RX) {
  1898. if (passthr_mode != LEGACY_PCM)
  1899. path_type = ADM_PATH_COMPRESSED_RX;
  1900. else
  1901. path_type = ADM_PATH_PLAYBACK;
  1902. } else {
  1903. if ((passthr_mode != LEGACY_PCM) && (passthr_mode != LISTEN))
  1904. path_type = ADM_PATH_COMPRESSED_TX;
  1905. else
  1906. path_type = ADM_PATH_LIVE_REC;
  1907. }
  1908. is_lsm = (val >= MSM_FRONTEND_DAI_LSM1) &&
  1909. (val <= MSM_FRONTEND_DAI_LSM8);
  1910. mutex_lock(&routing_lock);
  1911. if (set) {
  1912. if (!test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  1913. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  1914. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  1915. voc_start_playback(set, msm_bedais[reg].port_id);
  1916. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  1917. if (msm_bedais[reg].active && fdai->strm_id !=
  1918. INVALID_SESSION) {
  1919. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  1920. int port_id = get_port_id(msm_bedais[reg].port_id);
  1921. /*
  1922. * check if ADM needs to be configured with different
  1923. * channel mapping than backend
  1924. */
  1925. if (!msm_bedais[reg].adm_override_ch)
  1926. channels = msm_bedais[reg].channel;
  1927. else
  1928. channels = msm_bedais[reg].adm_override_ch;
  1929. if (session_type == SESSION_TYPE_TX &&
  1930. fdai->be_srate &&
  1931. (fdai->be_srate != msm_bedais[reg].sample_rate)) {
  1932. pr_debug("%s: flush strm %d diff BE rates\n",
  1933. __func__, fdai->strm_id);
  1934. if (fdai->event_info.event_func)
  1935. fdai->event_info.event_func(
  1936. MSM_PCM_RT_EVT_BUF_RECFG,
  1937. fdai->event_info.priv_data);
  1938. fdai->be_srate = 0; /* might not need it */
  1939. }
  1940. bits_per_sample = msm_routing_get_bit_width(
  1941. msm_bedais[reg].format);
  1942. app_type =
  1943. fe_dai_app_type_cfg[val][session_type][reg].app_type;
  1944. if (app_type && is_lsm) {
  1945. app_type_idx =
  1946. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  1947. sample_rate =
  1948. fe_dai_app_type_cfg[val][session_type][reg]
  1949. .sample_rate;
  1950. bits_per_sample =
  1951. lsm_app_type_cfg[app_type_idx].bit_width;
  1952. } else if (app_type) {
  1953. app_type_idx =
  1954. msm_pcm_routing_get_app_type_idx(app_type);
  1955. sample_rate =
  1956. fe_dai_app_type_cfg[val][session_type][reg]
  1957. .sample_rate;
  1958. bits_per_sample =
  1959. app_type_cfg[app_type_idx].bit_width;
  1960. } else
  1961. sample_rate = msm_bedais[reg].sample_rate;
  1962. topology = msm_routing_get_adm_topology(val,
  1963. session_type,
  1964. reg);
  1965. acdb_dev_id =
  1966. fe_dai_app_type_cfg[val][session_type][reg].acdb_dev_id;
  1967. be_bit_width = msm_routing_get_bit_width(
  1968. msm_bedais[reg].format);
  1969. if (hifi_filter_enabled && (msm_bedais[reg].sample_rate
  1970. == 384000 ||msm_bedais[reg].sample_rate ==
  1971. 352800) && be_bit_width == 32)
  1972. bits_per_sample = msm_routing_get_bit_width(
  1973. SNDRV_PCM_FORMAT_S32_LE);
  1974. copp_idx = adm_open(port_id, path_type,
  1975. sample_rate, channels, topology,
  1976. fdai->perf_mode, bits_per_sample,
  1977. app_type, acdb_dev_id,
  1978. session_type);
  1979. if ((copp_idx < 0) ||
  1980. (copp_idx >= MAX_COPPS_PER_PORT)) {
  1981. pr_err("%s: adm open failed\n", __func__);
  1982. mutex_unlock(&routing_lock);
  1983. return;
  1984. }
  1985. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  1986. __func__, val, session_type, reg);
  1987. set_bit(copp_idx,
  1988. &session_copp_map[val][session_type][reg]);
  1989. if (msm_is_resample_needed(
  1990. sample_rate,
  1991. msm_bedais[reg].sample_rate))
  1992. adm_copp_mfc_cfg(port_id, copp_idx,
  1993. msm_bedais[reg].sample_rate);
  1994. if (session_type == SESSION_TYPE_RX &&
  1995. fdai->event_info.event_func)
  1996. fdai->event_info.event_func(
  1997. MSM_PCM_RT_EVT_DEVSWITCH,
  1998. fdai->event_info.priv_data);
  1999. msm_pcm_routing_build_matrix(val, session_type,
  2000. path_type,
  2001. fdai->perf_mode,
  2002. passthr_mode);
  2003. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  2004. (passthr_mode == LEGACY_PCM))
  2005. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  2006. topology, channels);
  2007. }
  2008. } else {
  2009. if (test_bit(val, &msm_bedais[reg].fe_sessions[0]) &&
  2010. ((msm_bedais[reg].port_id == VOICE_PLAYBACK_TX) ||
  2011. (msm_bedais[reg].port_id == VOICE2_PLAYBACK_TX)))
  2012. voc_start_playback(set, msm_bedais[reg].port_id);
  2013. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2014. if (msm_bedais[reg].active && fdai->strm_id !=
  2015. INVALID_SESSION) {
  2016. int idx;
  2017. int port_id;
  2018. unsigned long copp =
  2019. session_copp_map[val][session_type][reg];
  2020. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  2021. if (test_bit(idx, &copp))
  2022. break;
  2023. if (idx >= MAX_COPPS_PER_PORT) {
  2024. pr_debug("%s: copp idx is invalid, exiting\n",
  2025. __func__);
  2026. mutex_unlock(&routing_lock);
  2027. return;
  2028. }
  2029. port_id = get_port_id(msm_bedais[reg].port_id);
  2030. topology = adm_get_topology_for_port_copp_idx(port_id,
  2031. idx);
  2032. msm_routing_unload_topology(topology);
  2033. adm_close(port_id, fdai->perf_mode, idx);
  2034. pr_debug("%s: copp: %ld, reset idx bit fe:%d, type: %d, be:%d topology=0x%x\n",
  2035. __func__, copp, val, session_type, reg,
  2036. topology);
  2037. clear_bit(idx,
  2038. &session_copp_map[val][session_type][reg]);
  2039. if ((topology == DOLBY_ADM_COPP_TOPOLOGY_ID ||
  2040. topology == DS2_ADM_COPP_TOPOLOGY_ID) &&
  2041. (fdai->perf_mode == LEGACY_PCM_MODE) &&
  2042. (passthr_mode == LEGACY_PCM))
  2043. msm_pcm_routing_deinit_pp(port_id, topology);
  2044. msm_pcm_routing_build_matrix(val, session_type,
  2045. path_type,
  2046. fdai->perf_mode,
  2047. passthr_mode);
  2048. }
  2049. }
  2050. if ((msm_bedais[reg].port_id == VOICE_RECORD_RX)
  2051. || (msm_bedais[reg].port_id == VOICE_RECORD_TX))
  2052. voc_start_record(msm_bedais[reg].port_id, set, voc_session_id);
  2053. mutex_unlock(&routing_lock);
  2054. }
  2055. static int msm_routing_get_audio_mixer(struct snd_kcontrol *kcontrol,
  2056. struct snd_ctl_elem_value *ucontrol)
  2057. {
  2058. struct soc_mixer_control *mc =
  2059. (struct soc_mixer_control *)kcontrol->private_value;
  2060. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2061. ucontrol->value.integer.value[0] = 1;
  2062. else
  2063. ucontrol->value.integer.value[0] = 0;
  2064. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2065. ucontrol->value.integer.value[0]);
  2066. return 0;
  2067. }
  2068. static int msm_routing_put_audio_mixer(struct snd_kcontrol *kcontrol,
  2069. struct snd_ctl_elem_value *ucontrol)
  2070. {
  2071. struct snd_soc_dapm_widget *widget =
  2072. snd_soc_dapm_kcontrol_widget(kcontrol);
  2073. struct soc_mixer_control *mc =
  2074. (struct soc_mixer_control *)kcontrol->private_value;
  2075. struct snd_soc_dapm_update *update = NULL;
  2076. if (ucontrol->value.integer.value[0] &&
  2077. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false) {
  2078. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2079. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2080. update);
  2081. } else if (!ucontrol->value.integer.value[0] &&
  2082. msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true) {
  2083. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2084. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2085. update);
  2086. }
  2087. return 1;
  2088. }
  2089. static int msm_routing_get_listen_mixer(struct snd_kcontrol *kcontrol,
  2090. struct snd_ctl_elem_value *ucontrol)
  2091. {
  2092. struct soc_mixer_control *mc =
  2093. (struct soc_mixer_control *)kcontrol->private_value;
  2094. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2095. ucontrol->value.integer.value[0] = 1;
  2096. else
  2097. ucontrol->value.integer.value[0] = 0;
  2098. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2099. ucontrol->value.integer.value[0]);
  2100. return 0;
  2101. }
  2102. static int msm_routing_put_listen_mixer(struct snd_kcontrol *kcontrol,
  2103. struct snd_ctl_elem_value *ucontrol)
  2104. {
  2105. struct snd_soc_dapm_widget *widget =
  2106. snd_soc_dapm_kcontrol_widget(kcontrol);
  2107. struct soc_mixer_control *mc =
  2108. (struct soc_mixer_control *)kcontrol->private_value;
  2109. struct snd_soc_dapm_update *update = NULL;
  2110. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2111. ucontrol->value.integer.value[0]);
  2112. if (ucontrol->value.integer.value[0]) {
  2113. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == false)
  2114. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 1);
  2115. snd_soc_dapm_mixer_update_power(widget->dapm,
  2116. kcontrol, 1, update);
  2117. } else if (!ucontrol->value.integer.value[0]) {
  2118. if (msm_pcm_routing_route_is_set(mc->shift, mc->rshift) == true)
  2119. msm_pcm_routing_process_audio(mc->shift, mc->rshift, 0);
  2120. snd_soc_dapm_mixer_update_power(widget->dapm,
  2121. kcontrol, 0, update);
  2122. }
  2123. return 1;
  2124. }
  2125. static void msm_pcm_routing_process_voice(u16 reg, u16 val, int set)
  2126. {
  2127. u32 session_id = 0;
  2128. u16 path_type;
  2129. struct media_format_info voc_be_media_format;
  2130. pr_debug("%s: reg %x val %x set %x\n", __func__, reg, val, set);
  2131. session_id = msm_pcm_routing_get_voc_sessionid(val);
  2132. pr_debug("%s: FE DAI 0x%x session_id 0x%x\n",
  2133. __func__, val, session_id);
  2134. mutex_lock(&routing_lock);
  2135. if (set)
  2136. set_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2137. else
  2138. clear_bit(val, &msm_bedais[reg].fe_sessions[0]);
  2139. if (val == MSM_FRONTEND_DAI_DTMF_RX &&
  2140. afe_get_port_type(msm_bedais[reg].port_id) ==
  2141. MSM_AFE_PORT_TYPE_RX) {
  2142. pr_debug("%s(): set=%d port id=0x%x for dtmf generation\n",
  2143. __func__, set, msm_bedais[reg].port_id);
  2144. afe_set_dtmf_gen_rx_portid(msm_bedais[reg].port_id, set);
  2145. }
  2146. if (afe_get_port_type(msm_bedais[reg].port_id) ==
  2147. MSM_AFE_PORT_TYPE_RX)
  2148. path_type = RX_PATH;
  2149. else
  2150. path_type = TX_PATH;
  2151. if (set) {
  2152. if (msm_bedais[reg].active) {
  2153. voc_set_route_flag(session_id, path_type, 1);
  2154. memset(&voc_be_media_format, 0,
  2155. sizeof(struct media_format_info));
  2156. voc_be_media_format.port_id = msm_bedais[reg].port_id;
  2157. voc_be_media_format.num_channels =
  2158. msm_bedais[reg].channel;
  2159. voc_be_media_format.sample_rate =
  2160. msm_bedais[reg].sample_rate;
  2161. voc_be_media_format.bits_per_sample =
  2162. msm_bedais[reg].format;
  2163. /* Defaulting this to 1 for voice call usecases */
  2164. voc_be_media_format.channel_mapping[0] = 1;
  2165. voc_set_device_config(session_id, path_type,
  2166. &voc_be_media_format);
  2167. if (voc_get_route_flag(session_id, TX_PATH) &&
  2168. voc_get_route_flag(session_id, RX_PATH))
  2169. voc_enable_device(session_id);
  2170. } else {
  2171. pr_debug("%s BE is not active\n", __func__);
  2172. }
  2173. } else {
  2174. voc_set_route_flag(session_id, path_type, 0);
  2175. voc_disable_device(session_id);
  2176. }
  2177. mutex_unlock(&routing_lock);
  2178. }
  2179. static int msm_routing_get_voice_mixer(struct snd_kcontrol *kcontrol,
  2180. struct snd_ctl_elem_value *ucontrol)
  2181. {
  2182. struct soc_mixer_control *mc =
  2183. (struct soc_mixer_control *)kcontrol->private_value;
  2184. mutex_lock(&routing_lock);
  2185. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2186. ucontrol->value.integer.value[0] = 1;
  2187. else
  2188. ucontrol->value.integer.value[0] = 0;
  2189. mutex_unlock(&routing_lock);
  2190. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2191. ucontrol->value.integer.value[0]);
  2192. return 0;
  2193. }
  2194. static int msm_routing_put_voice_mixer(struct snd_kcontrol *kcontrol,
  2195. struct snd_ctl_elem_value *ucontrol)
  2196. {
  2197. struct snd_soc_dapm_widget *widget =
  2198. snd_soc_dapm_kcontrol_widget(kcontrol);
  2199. struct soc_mixer_control *mc =
  2200. (struct soc_mixer_control *)kcontrol->private_value;
  2201. struct snd_soc_dapm_update *update = NULL;
  2202. if (ucontrol->value.integer.value[0]) {
  2203. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 1);
  2204. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2205. update);
  2206. } else {
  2207. msm_pcm_routing_process_voice(mc->shift, mc->rshift, 0);
  2208. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2209. update);
  2210. }
  2211. return 1;
  2212. }
  2213. static int msm_routing_get_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2214. struct snd_ctl_elem_value *ucontrol)
  2215. {
  2216. struct soc_mixer_control *mc =
  2217. (struct soc_mixer_control *)kcontrol->private_value;
  2218. mutex_lock(&routing_lock);
  2219. if (test_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]))
  2220. ucontrol->value.integer.value[0] = 1;
  2221. else
  2222. ucontrol->value.integer.value[0] = 0;
  2223. mutex_unlock(&routing_lock);
  2224. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2225. ucontrol->value.integer.value[0]);
  2226. return 0;
  2227. }
  2228. static int msm_routing_put_voice_stub_mixer(struct snd_kcontrol *kcontrol,
  2229. struct snd_ctl_elem_value *ucontrol)
  2230. {
  2231. struct snd_soc_dapm_widget *widget =
  2232. snd_soc_dapm_kcontrol_widget(kcontrol);
  2233. struct soc_mixer_control *mc =
  2234. (struct soc_mixer_control *)kcontrol->private_value;
  2235. struct snd_soc_dapm_update *update = NULL;
  2236. if (ucontrol->value.integer.value[0]) {
  2237. mutex_lock(&routing_lock);
  2238. set_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2239. mutex_unlock(&routing_lock);
  2240. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2241. update);
  2242. } else {
  2243. mutex_lock(&routing_lock);
  2244. clear_bit(mc->rshift, &msm_bedais[mc->shift].fe_sessions[0]);
  2245. mutex_unlock(&routing_lock);
  2246. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2247. update);
  2248. }
  2249. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2250. ucontrol->value.integer.value[0]);
  2251. return 1;
  2252. }
  2253. /*
  2254. * Return the mapping between port ID and backend ID to enable the AFE callback
  2255. * to determine the acdb_dev_id from the port id
  2256. */
  2257. int msm_pcm_get_be_id_from_port_id(int port_id)
  2258. {
  2259. int i;
  2260. int be_id = -EINVAL;
  2261. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  2262. if (msm_bedais[i].port_id == port_id) {
  2263. be_id = i;
  2264. break;
  2265. }
  2266. }
  2267. return be_id;
  2268. }
  2269. /*
  2270. * Return the registered dev_acdb_id given a port ID to enable identifying the
  2271. * correct AFE calibration information by comparing the header information.
  2272. */
  2273. static int msm_pcm_get_dev_acdb_id_by_port_id(int port_id)
  2274. {
  2275. int acdb_id = -EINVAL;
  2276. int i = 0;
  2277. int session;
  2278. int port_type = afe_get_port_type(port_id);
  2279. int be_id = msm_pcm_get_be_id_from_port_id(port_id);
  2280. pr_debug("%s:port_id %d be_id %d, port_type 0x%x\n",
  2281. __func__, port_id, be_id, port_type);
  2282. if (port_type == MSM_AFE_PORT_TYPE_TX) {
  2283. session = SESSION_TYPE_TX;
  2284. } else if (port_type == MSM_AFE_PORT_TYPE_RX) {
  2285. session = SESSION_TYPE_RX;
  2286. } else {
  2287. pr_err("%s: Invalid port type %d\n", __func__, port_type);
  2288. acdb_id = -EINVAL;
  2289. goto exit;
  2290. }
  2291. if (be_id < 0) {
  2292. pr_err("%s: Error getting backend id %d\n", __func__, be_id);
  2293. goto exit;
  2294. }
  2295. mutex_lock(&routing_lock);
  2296. i = find_first_bit(&msm_bedais[be_id].fe_sessions[0],
  2297. MSM_FRONTEND_DAI_MAX);
  2298. if (i < MSM_FRONTEND_DAI_MAX)
  2299. acdb_id = fe_dai_app_type_cfg[i][session][be_id].acdb_dev_id;
  2300. pr_debug("%s: FE[%d] session[%d] BE[%d] acdb_id(%d)\n",
  2301. __func__, i, session, be_id, acdb_id);
  2302. mutex_unlock(&routing_lock);
  2303. exit:
  2304. return acdb_id;
  2305. }
  2306. static int msm_routing_get_switch_mixer(struct snd_kcontrol *kcontrol,
  2307. struct snd_ctl_elem_value *ucontrol)
  2308. {
  2309. ucontrol->value.integer.value[0] = fm_switch_enable;
  2310. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2311. ucontrol->value.integer.value[0]);
  2312. return 0;
  2313. }
  2314. static int msm_routing_put_switch_mixer(struct snd_kcontrol *kcontrol,
  2315. struct snd_ctl_elem_value *ucontrol)
  2316. {
  2317. struct snd_soc_dapm_widget *widget =
  2318. snd_soc_dapm_kcontrol_widget(kcontrol);
  2319. struct snd_soc_dapm_update *update = NULL;
  2320. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2321. ucontrol->value.integer.value[0]);
  2322. if (ucontrol->value.integer.value[0])
  2323. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2324. update);
  2325. else
  2326. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2327. update);
  2328. fm_switch_enable = ucontrol->value.integer.value[0];
  2329. return 1;
  2330. }
  2331. static int msm_routing_get_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2332. struct snd_ctl_elem_value *ucontrol)
  2333. {
  2334. ucontrol->value.integer.value[0] = hfp_switch_enable;
  2335. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2336. ucontrol->value.integer.value[0]);
  2337. return 0;
  2338. }
  2339. static int msm_routing_put_hfp_switch_mixer(struct snd_kcontrol *kcontrol,
  2340. struct snd_ctl_elem_value *ucontrol)
  2341. {
  2342. struct snd_soc_dapm_widget *widget =
  2343. snd_soc_dapm_kcontrol_widget(kcontrol);
  2344. struct snd_soc_dapm_update *update = NULL;
  2345. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2346. ucontrol->value.integer.value[0]);
  2347. if (ucontrol->value.integer.value[0])
  2348. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2349. 1, update);
  2350. else
  2351. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2352. 0, update);
  2353. hfp_switch_enable = ucontrol->value.integer.value[0];
  2354. return 1;
  2355. }
  2356. static int msm_routing_a2dp_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2357. struct snd_ctl_elem_value *ucontrol)
  2358. {
  2359. ucontrol->value.integer.value[0] = a2dp_switch_enable;
  2360. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2361. ucontrol->value.integer.value[0]);
  2362. return 0;
  2363. }
  2364. static int msm_routing_a2dp_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2365. struct snd_ctl_elem_value *ucontrol)
  2366. {
  2367. struct snd_soc_dapm_widget *widget =
  2368. snd_soc_dapm_kcontrol_widget(kcontrol);
  2369. struct snd_soc_dapm_update *update = NULL;
  2370. pr_debug("%s: A2DP Switch enable %ld\n", __func__,
  2371. ucontrol->value.integer.value[0]);
  2372. a2dp_switch_enable = ucontrol->value.integer.value[0];
  2373. if (a2dp_switch_enable)
  2374. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2375. 1, update);
  2376. else
  2377. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2378. 0, update);
  2379. return 1;
  2380. }
  2381. static int msm_routing_sco_switch_mixer_get(struct snd_kcontrol *kcontrol,
  2382. struct snd_ctl_elem_value *ucontrol)
  2383. {
  2384. ucontrol->value.integer.value[0] = sco_switch_enable;
  2385. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2386. ucontrol->value.integer.value[0]);
  2387. return 0;
  2388. }
  2389. static int msm_routing_sco_switch_mixer_put(struct snd_kcontrol *kcontrol,
  2390. struct snd_ctl_elem_value *ucontrol)
  2391. {
  2392. struct snd_soc_dapm_widget *widget =
  2393. snd_soc_dapm_kcontrol_widget(kcontrol);
  2394. struct snd_soc_dapm_update *update = NULL;
  2395. pr_debug("%s: SCO Switch enable %ld\n", __func__,
  2396. ucontrol->value.integer.value[0]);
  2397. sco_switch_enable = ucontrol->value.integer.value[0];
  2398. if (sco_switch_enable)
  2399. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2400. 1, update);
  2401. else
  2402. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2403. 0, update);
  2404. return 1;
  2405. }
  2406. static int msm_routing_get_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2407. struct snd_ctl_elem_value *ucontrol)
  2408. {
  2409. ucontrol->value.integer.value[0] = int0_mi2s_switch_enable;
  2410. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2411. ucontrol->value.integer.value[0]);
  2412. return 0;
  2413. }
  2414. static int msm_routing_put_int0_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2415. struct snd_ctl_elem_value *ucontrol)
  2416. {
  2417. struct snd_soc_dapm_widget *widget =
  2418. snd_soc_dapm_kcontrol_widget(kcontrol);
  2419. struct snd_soc_dapm_update *update = NULL;
  2420. pr_debug("%s: INT0 MI2S Switch enable %ld\n", __func__,
  2421. ucontrol->value.integer.value[0]);
  2422. if (ucontrol->value.integer.value[0])
  2423. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2424. update);
  2425. else
  2426. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2427. update);
  2428. int0_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2429. return 1;
  2430. }
  2431. static int msm_routing_get_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2432. struct snd_ctl_elem_value *ucontrol)
  2433. {
  2434. ucontrol->value.integer.value[0] = int4_mi2s_switch_enable;
  2435. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2436. ucontrol->value.integer.value[0]);
  2437. return 0;
  2438. }
  2439. static int msm_routing_put_int4_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2440. struct snd_ctl_elem_value *ucontrol)
  2441. {
  2442. struct snd_soc_dapm_widget *widget =
  2443. snd_soc_dapm_kcontrol_widget(kcontrol);
  2444. struct snd_soc_dapm_update *update = NULL;
  2445. pr_debug("%s: INT4 MI2S Switch enable %ld\n", __func__,
  2446. ucontrol->value.integer.value[0]);
  2447. if (ucontrol->value.integer.value[0])
  2448. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2449. update);
  2450. else
  2451. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2452. update);
  2453. int4_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2454. return 1;
  2455. }
  2456. static int msm_routing_get_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2457. struct snd_ctl_elem_value *ucontrol)
  2458. {
  2459. ucontrol->value.integer.value[0] = usb_switch_enable;
  2460. pr_debug("%s: HFP Switch enable %ld\n", __func__,
  2461. ucontrol->value.integer.value[0]);
  2462. return 0;
  2463. }
  2464. static int msm_routing_put_usb_switch_mixer(struct snd_kcontrol *kcontrol,
  2465. struct snd_ctl_elem_value *ucontrol)
  2466. {
  2467. struct snd_soc_dapm_widget *widget =
  2468. snd_soc_dapm_kcontrol_widget(kcontrol);
  2469. struct snd_soc_dapm_update *update = NULL;
  2470. pr_debug("%s: USB Switch enable %ld\n", __func__,
  2471. ucontrol->value.integer.value[0]);
  2472. if (ucontrol->value.integer.value[0])
  2473. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2474. 1, update);
  2475. else
  2476. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol,
  2477. 0, update);
  2478. usb_switch_enable = ucontrol->value.integer.value[0];
  2479. return 1;
  2480. }
  2481. static int msm_routing_get_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2482. struct snd_ctl_elem_value *ucontrol)
  2483. {
  2484. ucontrol->value.integer.value[0] = pri_mi2s_switch_enable;
  2485. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2486. ucontrol->value.integer.value[0]);
  2487. return 0;
  2488. }
  2489. static int msm_routing_put_pri_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2490. struct snd_ctl_elem_value *ucontrol)
  2491. {
  2492. struct snd_soc_dapm_widget *widget =
  2493. snd_soc_dapm_kcontrol_widget(kcontrol);
  2494. struct snd_soc_dapm_update *update = NULL;
  2495. pr_debug("%s: PRI MI2S Switch enable %ld\n", __func__,
  2496. ucontrol->value.integer.value[0]);
  2497. if (ucontrol->value.integer.value[0])
  2498. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2499. update);
  2500. else
  2501. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2502. update);
  2503. pri_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2504. return 1;
  2505. }
  2506. static int msm_routing_get_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2507. struct snd_ctl_elem_value *ucontrol)
  2508. {
  2509. ucontrol->value.integer.value[0] = sec_mi2s_switch_enable;
  2510. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2511. ucontrol->value.integer.value[0]);
  2512. return 0;
  2513. }
  2514. static int msm_routing_put_sec_mi2s_switch_mixer(struct snd_kcontrol *kcontrol,
  2515. struct snd_ctl_elem_value *ucontrol)
  2516. {
  2517. struct snd_soc_dapm_widget *widget =
  2518. snd_soc_dapm_kcontrol_widget(kcontrol);
  2519. struct snd_soc_dapm_update *update = NULL;
  2520. pr_debug("%s: SEC MI2S Switch enable %ld\n", __func__,
  2521. ucontrol->value.integer.value[0]);
  2522. if (ucontrol->value.integer.value[0])
  2523. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2524. update);
  2525. else
  2526. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2527. update);
  2528. sec_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2529. return 1;
  2530. }
  2531. static int msm_routing_get_tert_mi2s_switch_mixer(
  2532. struct snd_kcontrol *kcontrol,
  2533. struct snd_ctl_elem_value *ucontrol)
  2534. {
  2535. ucontrol->value.integer.value[0] = tert_mi2s_switch_enable;
  2536. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2537. ucontrol->value.integer.value[0]);
  2538. return 0;
  2539. }
  2540. static int msm_routing_put_tert_mi2s_switch_mixer(
  2541. struct snd_kcontrol *kcontrol,
  2542. struct snd_ctl_elem_value *ucontrol)
  2543. {
  2544. struct snd_soc_dapm_widget *widget =
  2545. snd_soc_dapm_kcontrol_widget(kcontrol);
  2546. struct snd_soc_dapm_update *update = NULL;
  2547. pr_debug("%s: TERT MI2S Switch enable %ld\n", __func__,
  2548. ucontrol->value.integer.value[0]);
  2549. if (ucontrol->value.integer.value[0])
  2550. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2551. update);
  2552. else
  2553. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2554. update);
  2555. tert_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2556. return 1;
  2557. }
  2558. static int msm_routing_get_quat_mi2s_switch_mixer(
  2559. struct snd_kcontrol *kcontrol,
  2560. struct snd_ctl_elem_value *ucontrol)
  2561. {
  2562. ucontrol->value.integer.value[0] = quat_mi2s_switch_enable;
  2563. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2564. ucontrol->value.integer.value[0]);
  2565. return 0;
  2566. }
  2567. static int msm_routing_put_quat_mi2s_switch_mixer(
  2568. struct snd_kcontrol *kcontrol,
  2569. struct snd_ctl_elem_value *ucontrol)
  2570. {
  2571. struct snd_soc_dapm_widget *widget =
  2572. snd_soc_dapm_kcontrol_widget(kcontrol);
  2573. struct snd_soc_dapm_update *update = NULL;
  2574. pr_debug("%s: QUAT MI2S Switch enable %ld\n", __func__,
  2575. ucontrol->value.integer.value[0]);
  2576. if (ucontrol->value.integer.value[0])
  2577. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2578. update);
  2579. else
  2580. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2581. update);
  2582. quat_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2583. return 1;
  2584. }
  2585. static int msm_routing_get_quin_mi2s_switch_mixer(
  2586. struct snd_kcontrol *kcontrol,
  2587. struct snd_ctl_elem_value *ucontrol)
  2588. {
  2589. ucontrol->value.integer.value[0] = quin_mi2s_switch_enable;
  2590. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2591. ucontrol->value.integer.value[0]);
  2592. return 0;
  2593. }
  2594. static int msm_routing_put_quin_mi2s_switch_mixer(
  2595. struct snd_kcontrol *kcontrol,
  2596. struct snd_ctl_elem_value *ucontrol)
  2597. {
  2598. struct snd_soc_dapm_widget *widget =
  2599. snd_soc_dapm_kcontrol_widget(kcontrol);
  2600. struct snd_soc_dapm_update *update = NULL;
  2601. pr_debug("%s: QUIN MI2S Switch enable %ld\n", __func__,
  2602. ucontrol->value.integer.value[0]);
  2603. if (ucontrol->value.integer.value[0])
  2604. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2605. update);
  2606. else
  2607. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2608. update);
  2609. quin_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2610. return 1;
  2611. }
  2612. static int msm_routing_get_sen_mi2s_switch_mixer(
  2613. struct snd_kcontrol *kcontrol,
  2614. struct snd_ctl_elem_value *ucontrol)
  2615. {
  2616. ucontrol->value.integer.value[0] = sen_mi2s_switch_enable;
  2617. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2618. ucontrol->value.integer.value[0]);
  2619. return 0;
  2620. }
  2621. static int msm_routing_put_sen_mi2s_switch_mixer(
  2622. struct snd_kcontrol *kcontrol,
  2623. struct snd_ctl_elem_value *ucontrol)
  2624. {
  2625. struct snd_soc_dapm_widget *widget =
  2626. snd_soc_dapm_kcontrol_widget(kcontrol);
  2627. struct snd_soc_dapm_update *update = NULL;
  2628. pr_debug("%s: SEN MI2S Switch enable %ld\n", __func__,
  2629. ucontrol->value.integer.value[0]);
  2630. if (ucontrol->value.integer.value[0])
  2631. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2632. update);
  2633. else
  2634. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2635. update);
  2636. sen_mi2s_switch_enable = ucontrol->value.integer.value[0];
  2637. return 1;
  2638. }
  2639. static int msm_routing_get_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2640. struct snd_ctl_elem_value *ucontrol)
  2641. {
  2642. ucontrol->value.integer.value[0] = fm_pcmrx_switch_enable;
  2643. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2644. ucontrol->value.integer.value[0]);
  2645. return 0;
  2646. }
  2647. static int msm_routing_put_fm_pcmrx_switch_mixer(struct snd_kcontrol *kcontrol,
  2648. struct snd_ctl_elem_value *ucontrol)
  2649. {
  2650. struct snd_soc_dapm_widget *widget =
  2651. snd_soc_dapm_kcontrol_widget(kcontrol);
  2652. struct snd_soc_dapm_update *update = NULL;
  2653. pr_debug("%s: FM Switch enable %ld\n", __func__,
  2654. ucontrol->value.integer.value[0]);
  2655. if (ucontrol->value.integer.value[0])
  2656. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 1,
  2657. update);
  2658. else
  2659. snd_soc_dapm_mixer_update_power(widget->dapm, kcontrol, 0,
  2660. update);
  2661. fm_pcmrx_switch_enable = ucontrol->value.integer.value[0];
  2662. return 1;
  2663. }
  2664. static int msm_routing_lsm_port_get(struct snd_kcontrol *kcontrol,
  2665. struct snd_ctl_elem_value *ucontrol)
  2666. {
  2667. ucontrol->value.integer.value[0] = lsm_port_index;
  2668. return 0;
  2669. }
  2670. static int msm_routing_lsm_port_put(struct snd_kcontrol *kcontrol,
  2671. struct snd_ctl_elem_value *ucontrol)
  2672. {
  2673. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  2674. int mux = ucontrol->value.enumerated.item[0];
  2675. int lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2676. if (mux >= e->items) {
  2677. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  2678. return -EINVAL;
  2679. }
  2680. pr_debug("%s: LSM enable %ld\n", __func__,
  2681. ucontrol->value.integer.value[0]);
  2682. switch (ucontrol->value.integer.value[0]) {
  2683. case 1:
  2684. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_0_TX;
  2685. break;
  2686. case 2:
  2687. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_1_TX;
  2688. break;
  2689. case 3:
  2690. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_2_TX;
  2691. break;
  2692. case 4:
  2693. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_3_TX;
  2694. break;
  2695. case 5:
  2696. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_4_TX;
  2697. break;
  2698. case 6:
  2699. lsm_port = AFE_PORT_ID_SLIMBUS_MULTI_CHAN_5_TX;
  2700. break;
  2701. case 7:
  2702. lsm_port = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2703. break;
  2704. case 8:
  2705. lsm_port = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2706. break;
  2707. case 9:
  2708. lsm_port = ADM_LSM_PORT_ID;
  2709. break;
  2710. case 10:
  2711. lsm_port = AFE_PORT_ID_INT3_MI2S_TX;
  2712. break;
  2713. case 11:
  2714. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  2715. break;
  2716. case 12:
  2717. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_1;
  2718. break;
  2719. case 13:
  2720. lsm_port = AFE_PORT_ID_VA_CODEC_DMA_TX_2;
  2721. break;
  2722. case 14:
  2723. lsm_port = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2724. break;
  2725. case 15:
  2726. lsm_port = AFE_PORT_ID_QUINARY_TDM_TX;
  2727. break;
  2728. default:
  2729. pr_err("Default lsm port");
  2730. break;
  2731. }
  2732. set_lsm_port(lsm_port);
  2733. lsm_port_index = ucontrol->value.integer.value[0];
  2734. return 0;
  2735. }
  2736. static int msm_routing_lsm_func_get(struct snd_kcontrol *kcontrol,
  2737. struct snd_ctl_elem_value *ucontrol)
  2738. {
  2739. int i;
  2740. u16 port_id;
  2741. enum afe_mad_type mad_type;
  2742. pr_debug("%s: enter\n", __func__);
  2743. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2744. if (!strnstr(kcontrol->id.name, lsm_port_text[i],
  2745. strlen(lsm_port_text[i])))
  2746. break;
  2747. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2748. pr_warn("%s: Invalid id name %s\n", __func__,
  2749. kcontrol->id.name);
  2750. return -EINVAL;
  2751. }
  2752. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2753. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2754. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2755. strlen(lsm_port_text[7])))
  2756. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2757. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2758. strlen(lsm_port_text[8])))
  2759. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2760. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2761. strlen(lsm_port_text[10])))
  2762. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2763. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2764. strlen(lsm_port_text[13])))
  2765. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2766. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2767. strlen(lsm_port_text[14])))
  2768. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2769. mad_type = afe_port_get_mad_type(port_id);
  2770. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2771. mad_type);
  2772. switch (mad_type) {
  2773. case MAD_HW_NONE:
  2774. ucontrol->value.integer.value[0] = MADNONE;
  2775. break;
  2776. case MAD_HW_AUDIO:
  2777. ucontrol->value.integer.value[0] = MADAUDIO;
  2778. break;
  2779. case MAD_HW_BEACON:
  2780. ucontrol->value.integer.value[0] = MADBEACON;
  2781. break;
  2782. case MAD_HW_ULTRASOUND:
  2783. ucontrol->value.integer.value[0] = MADULTRASOUND;
  2784. break;
  2785. case MAD_SW_AUDIO:
  2786. ucontrol->value.integer.value[0] = MADSWAUDIO;
  2787. break;
  2788. default:
  2789. pr_warn("%s: Unknown\n", __func__);
  2790. return -EINVAL;
  2791. }
  2792. return 0;
  2793. }
  2794. static int msm_routing_lsm_func_put(struct snd_kcontrol *kcontrol,
  2795. struct snd_ctl_elem_value *ucontrol)
  2796. {
  2797. int i;
  2798. u16 port_id;
  2799. enum afe_mad_type mad_type;
  2800. pr_debug("%s: enter\n", __func__);
  2801. for (i = 0; i < ARRAY_SIZE(lsm_port_text); i++)
  2802. if (strnstr(kcontrol->id.name, lsm_port_text[i],
  2803. strlen(lsm_port_text[i])))
  2804. break;
  2805. if (i-- == ARRAY_SIZE(lsm_port_text)) {
  2806. pr_warn("%s: Invalid id name %s\n", __func__,
  2807. kcontrol->id.name);
  2808. return -EINVAL;
  2809. }
  2810. port_id = i * 2 + 1 + SLIMBUS_0_RX;
  2811. switch (ucontrol->value.integer.value[0]) {
  2812. case MADNONE:
  2813. mad_type = MAD_HW_NONE;
  2814. break;
  2815. case MADAUDIO:
  2816. mad_type = MAD_HW_AUDIO;
  2817. break;
  2818. case MADBEACON:
  2819. mad_type = MAD_HW_BEACON;
  2820. break;
  2821. case MADULTRASOUND:
  2822. mad_type = MAD_HW_ULTRASOUND;
  2823. break;
  2824. case MADSWAUDIO:
  2825. mad_type = MAD_SW_AUDIO;
  2826. break;
  2827. default:
  2828. pr_warn("%s: Unknown\n", __func__);
  2829. return -EINVAL;
  2830. }
  2831. /*Check for Tertiary/Quaternary/INT3 TX port*/
  2832. if (strnstr(kcontrol->id.name, lsm_port_text[7],
  2833. strlen(lsm_port_text[7])))
  2834. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  2835. if (strnstr(kcontrol->id.name, lsm_port_text[8],
  2836. strlen(lsm_port_text[8])))
  2837. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  2838. if (strnstr(kcontrol->id.name, lsm_port_text[10],
  2839. strlen(lsm_port_text[10])))
  2840. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  2841. if (strnstr(kcontrol->id.name, lsm_port_text[13],
  2842. strlen(lsm_port_text[13])))
  2843. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  2844. if (strnstr(kcontrol->id.name, lsm_port_text[14],
  2845. strlen(lsm_port_text[14])))
  2846. port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  2847. pr_debug("%s: port_id 0x%x, mad_type %d\n", __func__, port_id,
  2848. mad_type);
  2849. return afe_port_set_mad_type(port_id, mad_type);
  2850. }
  2851. static const char *const adm_override_chs_text[] = {"Zero", "One", "Two"};
  2852. static SOC_ENUM_SINGLE_EXT_DECL(adm_override_chs,
  2853. adm_override_chs_text);
  2854. static int msm_routing_adm_get_backend_idx(struct snd_kcontrol *kcontrol)
  2855. {
  2856. int backend_id;
  2857. if (strnstr(kcontrol->id.name, "SLIM7_RX", sizeof("SLIM7_RX"))) {
  2858. backend_id = MSM_BACKEND_DAI_SLIMBUS_7_RX;
  2859. } else if (strnstr(kcontrol->id.name, "SLIM9_TX", sizeof("SLIM9_TX"))) {
  2860. backend_id = MSM_BACKEND_DAI_SLIMBUS_9_TX;
  2861. } else {
  2862. pr_err("%s: unsupported backend id: %s",
  2863. __func__, kcontrol->id.name);
  2864. return -EINVAL;
  2865. }
  2866. return backend_id;
  2867. }
  2868. static int msm_routing_adm_channel_config_get(
  2869. struct snd_kcontrol *kcontrol,
  2870. struct snd_ctl_elem_value *ucontrol)
  2871. {
  2872. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2873. if (backend_id >= 0) {
  2874. mutex_lock(&routing_lock);
  2875. ucontrol->value.integer.value[0] =
  2876. msm_bedais[backend_id].adm_override_ch;
  2877. pr_debug("%s: adm channel count %ld for BE:%d\n", __func__,
  2878. ucontrol->value.integer.value[0], backend_id);
  2879. mutex_unlock(&routing_lock);
  2880. }
  2881. return 0;
  2882. }
  2883. static int msm_routing_adm_channel_config_put(
  2884. struct snd_kcontrol *kcontrol,
  2885. struct snd_ctl_elem_value *ucontrol)
  2886. {
  2887. int backend_id = msm_routing_adm_get_backend_idx(kcontrol);
  2888. if (backend_id >= 0) {
  2889. mutex_lock(&routing_lock);
  2890. msm_bedais[backend_id].adm_override_ch =
  2891. ucontrol->value.integer.value[0];
  2892. pr_debug("%s:updating BE :%d adm channels: %d\n",
  2893. __func__, backend_id,
  2894. msm_bedais[backend_id].adm_override_ch);
  2895. mutex_unlock(&routing_lock);
  2896. }
  2897. return 0;
  2898. }
  2899. static const struct snd_kcontrol_new adm_channel_config_controls[] = {
  2900. SOC_ENUM_EXT("SLIM7_RX ADM Channels", adm_override_chs,
  2901. msm_routing_adm_channel_config_get,
  2902. msm_routing_adm_channel_config_put),
  2903. SOC_ENUM_EXT("SLIM9_TX ADM Channels", adm_override_chs,
  2904. msm_routing_adm_channel_config_get,
  2905. msm_routing_adm_channel_config_put),
  2906. };
  2907. static int msm_routing_slim_0_rx_aanc_mux_get(struct snd_kcontrol *kcontrol,
  2908. struct snd_ctl_elem_value *ucontrol)
  2909. {
  2910. mutex_lock(&routing_lock);
  2911. ucontrol->value.integer.value[0] = slim0_rx_aanc_fb_port;
  2912. mutex_unlock(&routing_lock);
  2913. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2914. ucontrol->value.integer.value[0]);
  2915. return 0;
  2916. };
  2917. static int msm_routing_slim_0_rx_aanc_mux_put(struct snd_kcontrol *kcontrol,
  2918. struct snd_ctl_elem_value *ucontrol)
  2919. {
  2920. struct aanc_data aanc_info;
  2921. mutex_lock(&routing_lock);
  2922. memset(&aanc_info, 0x00, sizeof(aanc_info));
  2923. pr_debug("%s: AANC Mux Port %ld\n", __func__,
  2924. ucontrol->value.integer.value[0]);
  2925. slim0_rx_aanc_fb_port = ucontrol->value.integer.value[0];
  2926. if (ucontrol->value.integer.value[0] == 0) {
  2927. aanc_info.aanc_active = false;
  2928. aanc_info.aanc_tx_port = 0;
  2929. aanc_info.aanc_rx_port = 0;
  2930. } else {
  2931. aanc_info.aanc_active = true;
  2932. aanc_info.aanc_rx_port = SLIMBUS_0_RX;
  2933. aanc_info.aanc_tx_port =
  2934. (SLIMBUS_0_RX - 1 + (slim0_rx_aanc_fb_port * 2));
  2935. }
  2936. afe_set_aanc_info(&aanc_info);
  2937. mutex_unlock(&routing_lock);
  2938. return 0;
  2939. };
  2940. static int msm_routing_get_port_mixer(struct snd_kcontrol *kcontrol,
  2941. struct snd_ctl_elem_value *ucontrol)
  2942. {
  2943. int idx = 0, shift = 0;
  2944. struct soc_mixer_control *mc =
  2945. (struct soc_mixer_control *)kcontrol->private_value;
  2946. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2947. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2948. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2949. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2950. return -EINVAL;
  2951. }
  2952. if (test_bit(shift,
  2953. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]))
  2954. ucontrol->value.integer.value[0] = 1;
  2955. else
  2956. ucontrol->value.integer.value[0] = 0;
  2957. pr_debug("%s: shift %x rshift %x val %ld\n", __func__, mc->shift, mc->rshift,
  2958. ucontrol->value.integer.value[0]);
  2959. return 0;
  2960. }
  2961. static int msm_routing_put_port_mixer(struct snd_kcontrol *kcontrol,
  2962. struct snd_ctl_elem_value *ucontrol)
  2963. {
  2964. int idx = 0, shift = 0;
  2965. struct soc_mixer_control *mc =
  2966. (struct soc_mixer_control *)kcontrol->private_value;
  2967. idx = mc->rshift/(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2968. shift = mc->rshift%(sizeof(msm_bedais[mc->shift].port_sessions[0]) * 8);
  2969. if (idx >= BE_DAI_PORT_SESSIONS_IDX_MAX) {
  2970. pr_err("%s: Invalid idx = %d\n", __func__, idx);
  2971. return -EINVAL;
  2972. }
  2973. pr_debug("%s: shift 0x%x rshift 0x%x val %ld idx %d reminder shift %d\n",
  2974. __func__, mc->shift, mc->rshift,
  2975. ucontrol->value.integer.value[0], idx, shift);
  2976. if (ucontrol->value.integer.value[0]) {
  2977. afe_loopback(1, msm_bedais[mc->shift].port_id,
  2978. msm_bedais[mc->rshift].port_id);
  2979. set_bit(shift,
  2980. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2981. } else {
  2982. afe_loopback(0, msm_bedais[mc->shift].port_id,
  2983. msm_bedais[mc->rshift].port_id);
  2984. clear_bit(shift,
  2985. (unsigned long *)&msm_bedais[mc->shift].port_sessions[idx]);
  2986. }
  2987. return 1;
  2988. }
  2989. static int msm_pcm_get_channel_rule_index(struct snd_kcontrol *kcontrol,
  2990. struct snd_ctl_elem_value *ucontrol)
  2991. {
  2992. u16 fe_id = 0;
  2993. fe_id = ((struct soc_mixer_control *)
  2994. kcontrol->private_value)->shift;
  2995. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  2996. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  2997. return -EINVAL;
  2998. }
  2999. ucontrol->value.integer.value[0] = channel_mixer[fe_id].rule;
  3000. return 0;
  3001. }
  3002. static int msm_pcm_put_channel_rule_index(struct snd_kcontrol *kcontrol,
  3003. struct snd_ctl_elem_value *ucontrol)
  3004. {
  3005. u16 fe_id = 0;
  3006. fe_id = ((struct soc_mixer_control *)
  3007. kcontrol->private_value)->shift;
  3008. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3009. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3010. return -EINVAL;
  3011. }
  3012. channel_mixer[fe_id].rule = ucontrol->value.integer.value[0];
  3013. return 1;
  3014. }
  3015. static int msm_pcm_get_out_chs(struct snd_kcontrol *kcontrol,
  3016. struct snd_ctl_elem_value *ucontrol)
  3017. {
  3018. u16 fe_id = 0;
  3019. fe_id = ((struct soc_multi_mixer_control *)
  3020. kcontrol->private_value)->shift;
  3021. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3022. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3023. return -EINVAL;
  3024. }
  3025. ucontrol->value.integer.value[0] =
  3026. channel_mixer[fe_id].output_channel;
  3027. return 0;
  3028. }
  3029. static int msm_pcm_put_out_chs(struct snd_kcontrol *kcontrol,
  3030. struct snd_ctl_elem_value *ucontrol)
  3031. {
  3032. u16 fe_id = 0;
  3033. fe_id = ((struct soc_multi_mixer_control *)
  3034. kcontrol->private_value)->shift;
  3035. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3036. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3037. return -EINVAL;
  3038. }
  3039. pr_debug("%s: fe_id is %d, output channels = %d\n", __func__,
  3040. fe_id,
  3041. (unsigned int)(ucontrol->value.integer.value[0]));
  3042. channel_mixer[fe_id].output_channel =
  3043. (unsigned int)(ucontrol->value.integer.value[0]);
  3044. return 1;
  3045. }
  3046. static const char *const ch_mixer[] = {"Disable", "Enable"};
  3047. /* If new backend is added, need update this array */
  3048. static const char *const be_name[] = {
  3049. "ZERO", "PRI_I2S_RX", "PRI_I2S_TX", "SLIM_0_RX",
  3050. "SLIM_0_TX", "HDMI_RX", "INT_BT_SCO_RX", "INT_BT_SCO_TX",
  3051. "INT_FM_RX", "INT_FM_TX", "AFE_PCM_RX", "AFE_PCM_TX",
  3052. "AUXPCM_RX", "AUXPCM_TX", "VOICE_PLAYBACK_TX", "VOICE2_PLAYBACK_TX",
  3053. "INCALL_RECORD_RX", "INCALL_RECORD_TX", "MI2S_RX", "MI2S_TX",
  3054. "SEC_I2S_RX", "SLIM_1_RX", "SLIM_1_TX", "SLIM_2_RX",
  3055. "SLIM_2_TX", "SLIM_3_RX", "SLIM_3_TX", "SLIM_4_RX",
  3056. "SLIM_4_TX", "SLIM_5_RX", "SLIM_5_TX", "SLIM_6_RX",
  3057. "SLIM_6_TX", "SLIM_7_RX", "SLIM_7_TX", "SLIM_8_RX",
  3058. "SLIM_8_TX", "EXTPROC_RX", "EXTPROC_TX", "EXPROC_EC_TX",
  3059. "QUAT_MI2S_RX", "QUAT_MI2S_TX", "SECOND_MI2S_RX", "SECOND_MI2S_TX",
  3060. "PRI_MI2S_RX", "PRI_MI2S_TX", "TERT_MI2S_RX", "TERT_MI2S_TX",
  3061. "AUDIO_I2S_RX", "SEC_AUXPCM_RX", "SEC_AUXPCM_TX", "PRI_SPDIF_RX",
  3062. "SECOND_MI2S_RX_SD1", "QUIN_MI2S_RX", "QUIN_MI2S_TX", "SENARY_MI2S_TX",
  3063. "PRI_TDM_RX_0", "PRI_TDM_TX_0", "PRI_TDM_RX_1", "PRI_TDM_TX_1",
  3064. "PRI_TDM_RX_2", "PRI_TDM_TX_2", "PRI_TDM_RX_3", "PRI_TDM_TX_3",
  3065. "PRI_TDM_RX_4", "PRI_TDM_TX_4", "PRI_TDM_RX_5", "PRI_TDM_TX_5",
  3066. "PRI_TDM_RX_6", "PRI_TDM_TX_6", "PRI_TDM_RX_7", "PRI_TDM_TX_7",
  3067. "SEC_TDM_RX_0", "SEC_TDM_TX_0", "SEC_TDM_RX_1", "SEC_TDM_TX_1",
  3068. "SEC_TDM_RX_2", "SEC_TDM_TX_2", "SEC_TDM_RX_3", "SEC_TDM_TX_3",
  3069. "SEC_TDM_RX_4", "SEC_TDM_TX_4", "SEC_TDM_RX_5", "SEC_TDM_TX_5",
  3070. "SEC_TDM_RX_6", "SEC_TDM_TX_6", "SEC_TDM_RX_7", "SEC_TDM_TX_7",
  3071. "TERT_TDM_RX_0", "TERT_TDM_TX_0", "TERT_TDM_RX_1", "TERT_TDM_TX_1",
  3072. "TERT_TDM_RX_2", "TERT_TDM_TX_2", "TERT_TDM_RX_3", "TERT_TDM_TX_3",
  3073. "TERT_TDM_RX_4", "TERT_TDM_TX_4", "TERT_TDM_RX_5", "TERT_TDM_TX_5",
  3074. "TERT_TDM_RX_6", "TERT_TDM_TX_6", "TERT_TDM_RX_7", "TERT_TDM_TX_7",
  3075. "QUAT_TDM_RX_0", "QUAT_TDM_TX_0", "QUAT_TDM_RX_1", "QUAT_TDM_TX_1",
  3076. "QUAT_TDM_RX_2", "QUAT_TDM_TX_2", "QUAT_TDM_RX_3", "QUAT_TDM_TX_3",
  3077. "QUAT_TDM_RX_4", "QUAT_TDM_TX_4", "QUAT_TDM_RX_5", "QUAT_TDM_TX_5",
  3078. "QUAT_TDM_RX_6", "QUAT_TDM_TX_6", "QUAT_TDM_RX_7", "QUAT_TDM_TX_7",
  3079. "QUIN_TDM_RX_0", "QUIN_TDM_TX_0", "QUIN_TDM_RX_1", "QUIN_TDM_TX_1",
  3080. "QUIN_TDM_RX_2", "QUIN_TDM_TX_2", "QUIN_TDM_RX_3", "QUIN_TDM_TX_3",
  3081. "QUIN_TDM_RX_4", "QUIN_TDM_TX_4", "QUIN_TDM_RX_5", "QUIN_TDM_TX_5",
  3082. "QUIN_TDM_RX_6", "QUIN_TDM_TX_6", "QUIN_TDM_RX_7", "QUIN_TDM_TX_7",
  3083. "SEN_TDM_RX_0", "SEN_TDM_TX_0", "SEN_TDM_RX_1", "SEN_TDM_TX_1",
  3084. "SEN_TDM_RX_2", "SEN_TDM_TX_2", "SEN_TDM_RX_3", "SEN_TDM_TX_3",
  3085. "SEN_TDM_RX_4", "SEN_TDM_TX_4", "SEN_TDM_RX_5", "SEN_TDM_TX_5",
  3086. "SEN_TDM_RX_6", "SEN_TDM_TX_6", "SEN_TDM_RX_7", "SEN_TDM_TX_7",
  3087. "INT_BT_A2DP_RX", "USB_RX", "USB_TX", "DISPLAY_PORT_RX",
  3088. "DISPLAY_PORT_RX1", "TERT_AUXPCM_RX", "TERT_AUXPCM_TX", "QUAT_AUXPCM_RX",
  3089. "QUAT_AUXPCM_TX", "QUIN_AUXPCM_RX", "QUIN_AUXPCM_TX", "INT0_MI2S_RX",
  3090. "INT0_MI2S_TX", "INT1_MI2S_RX", "INT1_MI2S_TX", "INT2_MI2S_RX",
  3091. "INT2_MI2S_TX", "INT3_MI2S_RX", "INT3_MI2S_TX", "INT4_MI2S_RX",
  3092. "INT4_MI2S_TX", "INT5_MI2S_RX", "INT5_MI2S_TX", "INT6_MI2S_RX",
  3093. "INT6_MI2S_TX", "SEN_AUXPCM_RX", "SEN_AUXPCM_TX", "SENARY_MI2S_RX",
  3094. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_RX_1","WSA_CDC_DMA_TX_1",
  3095. "WSA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_2",
  3096. "RX_CDC_DMA_RX_0", "TX_CDC_DMA_TX_0", "RX_CDC_DMA_RX_1", "TX_CDC_DMA_TX_1",
  3097. "RX_CDC_DMA_RX_2", "TX_CDC_DMA_TX_2", "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_3",
  3098. "RX_CDC_DMA_RX_4", "TX_CDC_DMA_TX_4", "RX_CDC_DMA_RX_5", "TX_CDC_DMA_TX_5",
  3099. "RX_CDC_DMA_RX_6", "RX_CDC_DMA_RX_7",
  3100. "PRI_SPDIF_TX", "SEC_SPDIF_RX", "SEC_SPDIF_TX",
  3101. "SLIM_9_RX", "SLIM_9_TX", "AFE_LOOPBACK_TX", "PRI_META_MI2S_RX",
  3102. "SEC_META_MI2S_RX"
  3103. };
  3104. static SOC_ENUM_SINGLE_DECL(mm1_channel_mux,
  3105. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, ch_mixer);
  3106. static SOC_ENUM_SINGLE_DECL(mm2_channel_mux,
  3107. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA2, ch_mixer);
  3108. static SOC_ENUM_SINGLE_DECL(mm3_channel_mux,
  3109. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA3, ch_mixer);
  3110. static SOC_ENUM_SINGLE_DECL(mm4_channel_mux,
  3111. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA4, ch_mixer);
  3112. static SOC_ENUM_SINGLE_DECL(mm18_channel_mux,
  3113. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, ch_mixer);
  3114. static SOC_ENUM_SINGLE_DECL(mm19_channel_mux,
  3115. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, ch_mixer);
  3116. static SOC_ENUM_SINGLE_DECL(mm28_channel_mux,
  3117. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, ch_mixer);
  3118. static SOC_ENUM_SINGLE_DECL(mm29_channel_mux,
  3119. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, ch_mixer);
  3120. static SOC_ENUM_SINGLE_DECL(mm30_channel_mux,
  3121. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, ch_mixer);
  3122. static SOC_ENUM_DOUBLE_DECL(mm1_ch1_enum,
  3123. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 0, be_name);
  3124. static SOC_ENUM_DOUBLE_DECL(mm1_ch2_enum,
  3125. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 1, be_name);
  3126. static SOC_ENUM_DOUBLE_DECL(mm1_ch3_enum,
  3127. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 2, be_name);
  3128. static SOC_ENUM_DOUBLE_DECL(mm1_ch4_enum,
  3129. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 3, be_name);
  3130. static SOC_ENUM_DOUBLE_DECL(mm1_ch5_enum,
  3131. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 4, be_name);
  3132. static SOC_ENUM_DOUBLE_DECL(mm1_ch6_enum,
  3133. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 5, be_name);
  3134. static SOC_ENUM_DOUBLE_DECL(mm1_ch7_enum,
  3135. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 6, be_name);
  3136. static SOC_ENUM_DOUBLE_DECL(mm1_ch8_enum,
  3137. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA1, 7, be_name);
  3138. static SOC_ENUM_DOUBLE_DECL(mm18_ch1_enum,
  3139. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 0, be_name);
  3140. static SOC_ENUM_DOUBLE_DECL(mm18_ch2_enum,
  3141. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA18, 1, be_name);
  3142. static SOC_ENUM_DOUBLE_DECL(mm19_ch1_enum,
  3143. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 0, be_name);
  3144. static SOC_ENUM_DOUBLE_DECL(mm19_ch2_enum,
  3145. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA19, 1, be_name);
  3146. static SOC_ENUM_DOUBLE_DECL(mm28_ch1_enum,
  3147. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 0, be_name);
  3148. static SOC_ENUM_DOUBLE_DECL(mm28_ch2_enum,
  3149. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA28, 1, be_name);
  3150. static SOC_ENUM_DOUBLE_DECL(mm29_ch1_enum,
  3151. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 0, be_name);
  3152. static SOC_ENUM_DOUBLE_DECL(mm29_ch2_enum,
  3153. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA29, 1, be_name);
  3154. static SOC_ENUM_DOUBLE_DECL(mm30_ch1_enum,
  3155. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 0, be_name);
  3156. static SOC_ENUM_DOUBLE_DECL(mm30_ch2_enum,
  3157. SND_SOC_NOPM, MSM_FRONTEND_DAI_MULTIMEDIA30, 1, be_name);
  3158. static int msm_pcm_get_ctl_enum_info(struct snd_ctl_elem_info *uinfo,
  3159. unsigned int channels,
  3160. unsigned int items, const char *const names[])
  3161. {
  3162. if (uinfo->value.enumerated.item >= items)
  3163. uinfo->value.enumerated.item = items - 1;
  3164. WARN(strlen(names[uinfo->value.enumerated.item]) >=
  3165. sizeof(uinfo->value.enumerated.name),
  3166. "ALSA: too long item name '%s'\n",
  3167. names[uinfo->value.enumerated.item]);
  3168. strlcpy(uinfo->value.enumerated.name,
  3169. names[uinfo->value.enumerated.item],
  3170. sizeof(uinfo->value.enumerated.name));
  3171. return 0;
  3172. }
  3173. static int msm_pcm_channel_mixer_info(struct snd_kcontrol *kcontrol,
  3174. struct snd_ctl_elem_info *uinfo)
  3175. {
  3176. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3177. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3178. uinfo->count = 1;
  3179. uinfo->value.enumerated.items = ARRAY_SIZE(ch_mixer);
  3180. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3181. return 0;
  3182. }
  3183. static int msm_pcm_channel_mixer_get(struct snd_kcontrol *kcontrol,
  3184. struct snd_ctl_elem_value *ucontrol)
  3185. {
  3186. u16 fe_id = 0;
  3187. fe_id = ((struct soc_enum *)
  3188. kcontrol->private_value)->shift_l;
  3189. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3190. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3191. return -EINVAL;
  3192. }
  3193. pr_debug("%s: FE %d %s\n", __func__,
  3194. fe_id,
  3195. channel_mixer[fe_id].enable ? "Enabled" : "Disabled");
  3196. ucontrol->value.enumerated.item[0] = channel_mixer[fe_id].enable;
  3197. return 0;
  3198. }
  3199. static int msm_pcm_channel_mixer_put(struct snd_kcontrol *kcontrol,
  3200. struct snd_ctl_elem_value *ucontrol)
  3201. {
  3202. u16 fe_id = 0;
  3203. fe_id = ((struct soc_enum *)
  3204. kcontrol->private_value)->shift_l;
  3205. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3206. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3207. return -EINVAL;
  3208. }
  3209. channel_mixer[fe_id].enable = ucontrol->value.enumerated.item[0];
  3210. pr_debug("%s: %s FE %d\n", __func__,
  3211. channel_mixer[fe_id].enable ? "Enable" : "Disable",
  3212. fe_id);
  3213. return 0;
  3214. }
  3215. static int msm_pcm_channel_input_be_info(struct snd_kcontrol *kcontrol,
  3216. struct snd_ctl_elem_info *uinfo)
  3217. {
  3218. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3219. uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
  3220. uinfo->count = 1;
  3221. uinfo->value.enumerated.items = ARRAY_SIZE(be_name);
  3222. msm_pcm_get_ctl_enum_info(uinfo, 1, e->items, e->texts);
  3223. return 0;
  3224. }
  3225. static int msm_pcm_channel_input_be_put(struct snd_kcontrol *kcontrol,
  3226. struct snd_ctl_elem_value *ucontrol)
  3227. {
  3228. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3229. u16 fe_id = 0, in_ch = 0;
  3230. fe_id = e->shift_l;
  3231. in_ch = e->shift_r;
  3232. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3233. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3234. return -EINVAL;
  3235. }
  3236. if (in_ch >= ADM_MAX_CHANNELS) {
  3237. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3238. return -EINVAL;
  3239. }
  3240. channel_input[fe_id][in_ch] = ucontrol->value.enumerated.item[0];
  3241. return 1;
  3242. }
  3243. static int msm_pcm_channel_input_be_get(struct snd_kcontrol *kcontrol,
  3244. struct snd_ctl_elem_value *ucontrol)
  3245. {
  3246. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  3247. u16 fe_id = 0, in_ch = 0;
  3248. fe_id = e->shift_l;
  3249. in_ch = e->shift_r;
  3250. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3251. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3252. return -EINVAL;
  3253. }
  3254. if (in_ch >= ADM_MAX_CHANNELS) {
  3255. pr_err("%s: invalid input channel %d\n", __func__, in_ch);
  3256. return -EINVAL;
  3257. }
  3258. ucontrol->value.enumerated.item[0] = channel_input[fe_id][in_ch];
  3259. return 1;
  3260. }
  3261. static int msm_pcm_channel_weight_info(struct snd_kcontrol *kcontrol,
  3262. struct snd_ctl_elem_info *uinfo)
  3263. {
  3264. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3265. uinfo->count = ADM_MAX_CHANNELS;
  3266. uinfo->value.integer.min = 0;
  3267. uinfo->value.integer.max = WEIGHT_0_DB;
  3268. return 0;
  3269. }
  3270. static int msm_pcm_channel_weight_put(struct snd_kcontrol *kcontrol,
  3271. struct snd_ctl_elem_value *ucontrol)
  3272. {
  3273. u16 fe_id = 0, out_ch = 0;
  3274. int i, weight;
  3275. fe_id = ((struct soc_multi_mixer_control *)
  3276. kcontrol->private_value)->shift;
  3277. out_ch = ((struct soc_multi_mixer_control *)
  3278. kcontrol->private_value)->rshift;
  3279. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3280. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3281. return -EINVAL;
  3282. }
  3283. if (out_ch >= ADM_MAX_CHANNELS) {
  3284. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3285. return -EINVAL;
  3286. }
  3287. pr_debug("%s: FE_ID: %d, channel weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld\n",
  3288. __func__, fe_id,
  3289. ucontrol->value.integer.value[0],
  3290. ucontrol->value.integer.value[1],
  3291. ucontrol->value.integer.value[2],
  3292. ucontrol->value.integer.value[3],
  3293. ucontrol->value.integer.value[4],
  3294. ucontrol->value.integer.value[5],
  3295. ucontrol->value.integer.value[6],
  3296. ucontrol->value.integer.value[7]);
  3297. for (i = 0; i < ADM_MAX_CHANNELS; ++i) {
  3298. weight = ucontrol->value.integer.value[i];
  3299. channel_mixer[fe_id].channel_weight[out_ch][i] = weight;
  3300. pr_debug("%s: FE_ID %d, output %d input %d weight %d\n",
  3301. __func__, fe_id, out_ch, i,
  3302. channel_mixer[fe_id].channel_weight[out_ch][i]);
  3303. }
  3304. return 0;
  3305. }
  3306. static int msm_pcm_channel_weight_get(struct snd_kcontrol *kcontrol,
  3307. struct snd_ctl_elem_value *ucontrol)
  3308. {
  3309. u16 fe_id = 0, out_ch = 0;
  3310. int i;
  3311. fe_id = ((struct soc_multi_mixer_control *)
  3312. kcontrol->private_value)->shift;
  3313. out_ch = ((struct soc_multi_mixer_control *)
  3314. kcontrol->private_value)->rshift;
  3315. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3316. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3317. return -EINVAL;
  3318. }
  3319. if (out_ch >= ADM_MAX_CHANNELS) {
  3320. pr_err("%s: invalid input channel %d\n", __func__, out_ch);
  3321. return -EINVAL;
  3322. }
  3323. for (i = 0; i < ADM_MAX_CHANNELS; ++i)
  3324. ucontrol->value.integer.value[i] =
  3325. channel_mixer[fe_id].channel_weight[out_ch][i];
  3326. pr_debug("%s: FE_ID: %d, weight %ld, %ld, %ld, %ld, %ld, %ld, %ld, %ld",
  3327. __func__, fe_id,
  3328. ucontrol->value.integer.value[0],
  3329. ucontrol->value.integer.value[1],
  3330. ucontrol->value.integer.value[2],
  3331. ucontrol->value.integer.value[3],
  3332. ucontrol->value.integer.value[4],
  3333. ucontrol->value.integer.value[5],
  3334. ucontrol->value.integer.value[6],
  3335. ucontrol->value.integer.value[7]);
  3336. return 0;
  3337. }
  3338. static int msm_pcm_channel_output_map_info(struct snd_kcontrol *kcontrol,
  3339. struct snd_ctl_elem_info *uinfo)
  3340. {
  3341. uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
  3342. uinfo->count = PCM_FORMAT_MAX_NUM_CHANNEL_V8;
  3343. /* Valid channel map value ranges from 1 to 64 */
  3344. uinfo->value.integer.min = 0;
  3345. uinfo->value.integer.max = 64;
  3346. return 0;
  3347. }
  3348. static int msm_pcm_channel_output_map_put(struct snd_kcontrol *kcontrol,
  3349. struct snd_ctl_elem_value *ucontrol)
  3350. {
  3351. u16 fe_id = 0;
  3352. int i, ch_map;
  3353. fe_id = ((struct soc_multi_mixer_control *)
  3354. kcontrol->private_value)->shift;
  3355. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3356. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3357. return -EINVAL;
  3358. }
  3359. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i) {
  3360. ch_map = ucontrol->value.integer.value[i];
  3361. channel_mixer[fe_id].out_ch_map[i] = ch_map;
  3362. pr_debug("%s: FE_ID %d, channel %d channel map %d\n",
  3363. __func__, fe_id, i, channel_mixer[fe_id].out_ch_map[i]);
  3364. }
  3365. /* Make override_out_ch_map false if ch map is reset */
  3366. if (channel_mixer[fe_id].out_ch_map[0] == 0)
  3367. channel_mixer[fe_id].override_out_ch_map = false;
  3368. else
  3369. channel_mixer[fe_id].override_out_ch_map = true;
  3370. return 0;
  3371. }
  3372. static int msm_pcm_channel_output_map_get(struct snd_kcontrol *kcontrol,
  3373. struct snd_ctl_elem_value *ucontrol)
  3374. {
  3375. u16 fe_id = 0;
  3376. int i;
  3377. fe_id = ((struct soc_multi_mixer_control *)
  3378. kcontrol->private_value)->shift;
  3379. if (fe_id >= MSM_FRONTEND_DAI_MM_SIZE) {
  3380. pr_err("%s: invalid FE %d\n", __func__, fe_id);
  3381. return -EINVAL;
  3382. }
  3383. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; ++i)
  3384. ucontrol->value.integer.value[i] =
  3385. channel_mixer[fe_id].out_ch_map[i];
  3386. return 0;
  3387. }
  3388. static const struct snd_kcontrol_new channel_mixer_controls[] = {
  3389. SOC_SINGLE_EXT("MultiMedia1 Channel Rule", SND_SOC_NOPM,
  3390. MSM_FRONTEND_DAI_MULTIMEDIA1, 8, 0,
  3391. msm_pcm_get_channel_rule_index,
  3392. msm_pcm_put_channel_rule_index),
  3393. SOC_SINGLE_EXT("MultiMedia2 Channel Rule", SND_SOC_NOPM,
  3394. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3395. msm_pcm_get_channel_rule_index,
  3396. msm_pcm_put_channel_rule_index),
  3397. SOC_SINGLE_EXT("MultiMedia3 Channel Rule", SND_SOC_NOPM,
  3398. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3399. msm_pcm_get_channel_rule_index,
  3400. msm_pcm_put_channel_rule_index),
  3401. SOC_SINGLE_EXT("MultiMedia4 Channel Rule", SND_SOC_NOPM,
  3402. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3403. msm_pcm_get_channel_rule_index,
  3404. msm_pcm_put_channel_rule_index),
  3405. SOC_SINGLE_EXT("MultiMedia5 Channel Rule", SND_SOC_NOPM,
  3406. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3407. msm_pcm_get_channel_rule_index,
  3408. msm_pcm_put_channel_rule_index),
  3409. SOC_SINGLE_EXT("MultiMedia6 Channel Rule", SND_SOC_NOPM,
  3410. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3411. msm_pcm_get_channel_rule_index,
  3412. msm_pcm_put_channel_rule_index),
  3413. SOC_SINGLE_EXT("MultiMedia18 Channel Rule", SND_SOC_NOPM,
  3414. MSM_FRONTEND_DAI_MULTIMEDIA18, 8, 0,
  3415. msm_pcm_get_channel_rule_index,
  3416. msm_pcm_put_channel_rule_index),
  3417. SOC_SINGLE_EXT("MultiMedia19 Channel Rule", SND_SOC_NOPM,
  3418. MSM_FRONTEND_DAI_MULTIMEDIA19, 8, 0,
  3419. msm_pcm_get_channel_rule_index,
  3420. msm_pcm_put_channel_rule_index),
  3421. SOC_SINGLE_EXT("MultiMedia28 Channel Rule", SND_SOC_NOPM,
  3422. MSM_FRONTEND_DAI_MULTIMEDIA28, 8, 0,
  3423. msm_pcm_get_channel_rule_index,
  3424. msm_pcm_put_channel_rule_index),
  3425. SOC_SINGLE_EXT("MultiMedia29 Channel Rule", SND_SOC_NOPM,
  3426. MSM_FRONTEND_DAI_MULTIMEDIA29, 8, 0,
  3427. msm_pcm_get_channel_rule_index,
  3428. msm_pcm_put_channel_rule_index),
  3429. SOC_SINGLE_EXT("MultiMedia30 Channel Rule", SND_SOC_NOPM,
  3430. MSM_FRONTEND_DAI_MULTIMEDIA30, 8, 0,
  3431. msm_pcm_get_channel_rule_index,
  3432. msm_pcm_put_channel_rule_index),
  3433. SOC_SINGLE_EXT("MultiMedia1 Channels", SND_SOC_NOPM,
  3434. MSM_FRONTEND_DAI_MULTIMEDIA1, 14, 0,
  3435. msm_pcm_get_out_chs,
  3436. msm_pcm_put_out_chs),
  3437. SOC_SINGLE_EXT("MultiMedia2 Channels", SND_SOC_NOPM,
  3438. MSM_FRONTEND_DAI_MULTIMEDIA2, 8, 0,
  3439. msm_pcm_get_out_chs,
  3440. msm_pcm_put_out_chs),
  3441. SOC_SINGLE_EXT("MultiMedia3 Channels", SND_SOC_NOPM,
  3442. MSM_FRONTEND_DAI_MULTIMEDIA3, 8, 0,
  3443. msm_pcm_get_out_chs,
  3444. msm_pcm_put_out_chs),
  3445. SOC_SINGLE_EXT("MultiMedia4 Channels", SND_SOC_NOPM,
  3446. MSM_FRONTEND_DAI_MULTIMEDIA4, 8, 0,
  3447. msm_pcm_get_out_chs,
  3448. msm_pcm_put_out_chs),
  3449. SOC_SINGLE_EXT("MultiMedia5 Channels", SND_SOC_NOPM,
  3450. MSM_FRONTEND_DAI_MULTIMEDIA5, 8, 0,
  3451. msm_pcm_get_out_chs,
  3452. msm_pcm_put_out_chs),
  3453. SOC_SINGLE_EXT("MultiMedia6 Channels", SND_SOC_NOPM,
  3454. MSM_FRONTEND_DAI_MULTIMEDIA6, 8, 0,
  3455. msm_pcm_get_out_chs,
  3456. msm_pcm_put_out_chs),
  3457. SOC_SINGLE_EXT("MultiMedia18 Channels", SND_SOC_NOPM,
  3458. MSM_FRONTEND_DAI_MULTIMEDIA18, 14, 0,
  3459. msm_pcm_get_out_chs,
  3460. msm_pcm_put_out_chs),
  3461. SOC_SINGLE_EXT("MultiMedia19 Channels", SND_SOC_NOPM,
  3462. MSM_FRONTEND_DAI_MULTIMEDIA19, 14, 0,
  3463. msm_pcm_get_out_chs,
  3464. msm_pcm_put_out_chs),
  3465. SOC_SINGLE_EXT("MultiMedia28 Channels", SND_SOC_NOPM,
  3466. MSM_FRONTEND_DAI_MULTIMEDIA28, 14, 0,
  3467. msm_pcm_get_out_chs,
  3468. msm_pcm_put_out_chs),
  3469. SOC_SINGLE_EXT("MultiMedia29 Channels", SND_SOC_NOPM,
  3470. MSM_FRONTEND_DAI_MULTIMEDIA29, 14, 0,
  3471. msm_pcm_get_out_chs,
  3472. msm_pcm_put_out_chs),
  3473. SOC_SINGLE_EXT("MultiMedia30 Channels", SND_SOC_NOPM,
  3474. MSM_FRONTEND_DAI_MULTIMEDIA30, 14, 0,
  3475. msm_pcm_get_out_chs,
  3476. msm_pcm_put_out_chs),
  3477. {
  3478. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3479. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3480. .name = "MultiMedia1 Channel Mixer",
  3481. .info = msm_pcm_channel_mixer_info,
  3482. .get = msm_pcm_channel_mixer_get,
  3483. .put = msm_pcm_channel_mixer_put,
  3484. .private_value = (unsigned long)&(mm1_channel_mux)
  3485. },
  3486. {
  3487. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3488. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3489. .name = "MultiMedia2 Channel Mixer",
  3490. .info = msm_pcm_channel_mixer_info,
  3491. .get = msm_pcm_channel_mixer_get,
  3492. .put = msm_pcm_channel_mixer_put,
  3493. .private_value = (unsigned long)&(mm2_channel_mux)
  3494. },
  3495. {
  3496. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3497. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3498. .name = "MultiMedia3 Channel Mixer",
  3499. .info = msm_pcm_channel_mixer_info,
  3500. .get = msm_pcm_channel_mixer_get,
  3501. .put = msm_pcm_channel_mixer_put,
  3502. .private_value = (unsigned long)&(mm3_channel_mux)
  3503. },
  3504. {
  3505. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3506. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3507. .name = "MultiMedia4 Channel Mixer",
  3508. .info = msm_pcm_channel_mixer_info,
  3509. .get = msm_pcm_channel_mixer_get,
  3510. .put = msm_pcm_channel_mixer_put,
  3511. .private_value = (unsigned long)&(mm4_channel_mux)
  3512. },
  3513. {
  3514. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3515. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3516. .name = "MultiMedia18 Channel Mixer",
  3517. .info = msm_pcm_channel_mixer_info,
  3518. .get = msm_pcm_channel_mixer_get,
  3519. .put = msm_pcm_channel_mixer_put,
  3520. .private_value = (unsigned long)&(mm18_channel_mux)
  3521. },
  3522. {
  3523. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3524. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3525. .name = "MultiMedia19 Channel Mixer",
  3526. .info = msm_pcm_channel_mixer_info,
  3527. .get = msm_pcm_channel_mixer_get,
  3528. .put = msm_pcm_channel_mixer_put,
  3529. .private_value = (unsigned long)&(mm19_channel_mux)
  3530. },
  3531. {
  3532. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3533. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3534. .name = "MultiMedia28 Channel Mixer",
  3535. .info = msm_pcm_channel_mixer_info,
  3536. .get = msm_pcm_channel_mixer_get,
  3537. .put = msm_pcm_channel_mixer_put,
  3538. .private_value = (unsigned long)&(mm28_channel_mux)
  3539. },
  3540. {
  3541. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3542. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3543. .name = "MultiMedia29 Channel Mixer",
  3544. .info = msm_pcm_channel_mixer_info,
  3545. .get = msm_pcm_channel_mixer_get,
  3546. .put = msm_pcm_channel_mixer_put,
  3547. .private_value = (unsigned long)&(mm29_channel_mux)
  3548. },
  3549. {
  3550. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3551. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3552. .name = "MultiMedia30 Channel Mixer",
  3553. .info = msm_pcm_channel_mixer_info,
  3554. .get = msm_pcm_channel_mixer_get,
  3555. .put = msm_pcm_channel_mixer_put,
  3556. .private_value = (unsigned long)&(mm30_channel_mux)
  3557. },
  3558. {
  3559. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3560. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3561. .name = "MultiMedia1 Output Channel1",
  3562. .info = msm_pcm_channel_weight_info,
  3563. .get = msm_pcm_channel_weight_get,
  3564. .put = msm_pcm_channel_weight_put,
  3565. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3566. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 0,}
  3567. },
  3568. {
  3569. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3570. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3571. .name = "MultiMedia1 Output Channel2",
  3572. .info = msm_pcm_channel_weight_info,
  3573. .get = msm_pcm_channel_weight_get,
  3574. .put = msm_pcm_channel_weight_put,
  3575. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3576. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 1, }
  3577. },
  3578. {
  3579. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3580. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3581. .name = "MultiMedia1 Output Channel3",
  3582. .info = msm_pcm_channel_weight_info,
  3583. .get = msm_pcm_channel_weight_get,
  3584. .put = msm_pcm_channel_weight_put,
  3585. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3586. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 2,}
  3587. },
  3588. {
  3589. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3590. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3591. .name = "MultiMedia1 Output Channel4",
  3592. .info = msm_pcm_channel_weight_info,
  3593. .get = msm_pcm_channel_weight_get,
  3594. .put = msm_pcm_channel_weight_put,
  3595. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3596. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 3,}
  3597. },
  3598. {
  3599. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3600. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3601. .name = "MultiMedia1 Output Channel5",
  3602. .info = msm_pcm_channel_weight_info,
  3603. .get = msm_pcm_channel_weight_get,
  3604. .put = msm_pcm_channel_weight_put,
  3605. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3606. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 4,}
  3607. },
  3608. {
  3609. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3610. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3611. .name = "MultiMedia1 Output Channel6",
  3612. .info = msm_pcm_channel_weight_info,
  3613. .get = msm_pcm_channel_weight_get,
  3614. .put = msm_pcm_channel_weight_put,
  3615. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3616. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 5,}
  3617. },
  3618. {
  3619. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3620. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3621. .name = "MultiMedia1 Output Channel7",
  3622. .info = msm_pcm_channel_weight_info,
  3623. .get = msm_pcm_channel_weight_get,
  3624. .put = msm_pcm_channel_weight_put,
  3625. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3626. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 6,}
  3627. },
  3628. {
  3629. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3630. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3631. .name = "MultiMedia1 Output Channel8",
  3632. .info = msm_pcm_channel_weight_info,
  3633. .get = msm_pcm_channel_weight_get,
  3634. .put = msm_pcm_channel_weight_put,
  3635. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3636. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 7,}
  3637. },
  3638. {
  3639. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3640. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3641. .name = "MultiMedia1 Output Channel9",
  3642. .info = msm_pcm_channel_weight_info,
  3643. .get = msm_pcm_channel_weight_get,
  3644. .put = msm_pcm_channel_weight_put,
  3645. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3646. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 8,}
  3647. },
  3648. {
  3649. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3650. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3651. .name = "MultiMedia1 Output Channel10",
  3652. .info = msm_pcm_channel_weight_info,
  3653. .get = msm_pcm_channel_weight_get,
  3654. .put = msm_pcm_channel_weight_put,
  3655. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3656. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 9,}
  3657. },
  3658. {
  3659. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3660. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3661. .name = "MultiMedia1 Output Channel11",
  3662. .info = msm_pcm_channel_weight_info,
  3663. .get = msm_pcm_channel_weight_get,
  3664. .put = msm_pcm_channel_weight_put,
  3665. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3666. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 10,}
  3667. },
  3668. {
  3669. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3670. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3671. .name = "MultiMedia1 Output Channel12",
  3672. .info = msm_pcm_channel_weight_info,
  3673. .get = msm_pcm_channel_weight_get,
  3674. .put = msm_pcm_channel_weight_put,
  3675. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3676. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 11,}
  3677. },
  3678. {
  3679. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3680. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3681. .name = "MultiMedia1 Output Channel13",
  3682. .info = msm_pcm_channel_weight_info,
  3683. .get = msm_pcm_channel_weight_get,
  3684. .put = msm_pcm_channel_weight_put,
  3685. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3686. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 12,}
  3687. },
  3688. {
  3689. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3690. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3691. .name = "MultiMedia1 Output Channel14",
  3692. .info = msm_pcm_channel_weight_info,
  3693. .get = msm_pcm_channel_weight_get,
  3694. .put = msm_pcm_channel_weight_put,
  3695. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3696. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1, .rshift = 13,}
  3697. },
  3698. {
  3699. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3700. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3701. .name = "MultiMedia2 Output Channel1",
  3702. .info = msm_pcm_channel_weight_info,
  3703. .get = msm_pcm_channel_weight_get,
  3704. .put = msm_pcm_channel_weight_put,
  3705. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3706. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 0,}
  3707. },
  3708. {
  3709. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3710. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3711. .name = "MultiMedia2 Output Channel2",
  3712. .info = msm_pcm_channel_weight_info,
  3713. .get = msm_pcm_channel_weight_get,
  3714. .put = msm_pcm_channel_weight_put,
  3715. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3716. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 1,}
  3717. },
  3718. {
  3719. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3720. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3721. .name = "MultiMedia2 Output Channel3",
  3722. .info = msm_pcm_channel_weight_info,
  3723. .get = msm_pcm_channel_weight_get,
  3724. .put = msm_pcm_channel_weight_put,
  3725. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3726. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA2, .rshift = 2,}
  3727. },
  3728. {
  3729. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3730. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3731. .name = "MultiMedia3 Output Channel1",
  3732. .info = msm_pcm_channel_weight_info,
  3733. .get = msm_pcm_channel_weight_get,
  3734. .put = msm_pcm_channel_weight_put,
  3735. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3736. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 0,}
  3737. },
  3738. {
  3739. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3740. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3741. .name = "MultiMedia3 Output Channel2",
  3742. .info = msm_pcm_channel_weight_info,
  3743. .get = msm_pcm_channel_weight_get,
  3744. .put = msm_pcm_channel_weight_put,
  3745. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3746. {.shift = MSM_FRONTEND_DAI_MULTIMEDIA3, .rshift = 1,}
  3747. },
  3748. {
  3749. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3750. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3751. .name = "MultiMedia18 Output Channel1",
  3752. .info = msm_pcm_channel_weight_info,
  3753. .get = msm_pcm_channel_weight_get,
  3754. .put = msm_pcm_channel_weight_put,
  3755. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3756. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 0,}
  3757. },
  3758. {
  3759. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3760. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3761. .name = "MultiMedia18 Output Channel2",
  3762. .info = msm_pcm_channel_weight_info,
  3763. .get = msm_pcm_channel_weight_get,
  3764. .put = msm_pcm_channel_weight_put,
  3765. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3766. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 1, }
  3767. },
  3768. {
  3769. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3770. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3771. .name = "MultiMedia18 Output Channel3",
  3772. .info = msm_pcm_channel_weight_info,
  3773. .get = msm_pcm_channel_weight_get,
  3774. .put = msm_pcm_channel_weight_put,
  3775. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3776. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 2,}
  3777. },
  3778. {
  3779. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3780. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3781. .name = "MultiMedia18 Output Channel4",
  3782. .info = msm_pcm_channel_weight_info,
  3783. .get = msm_pcm_channel_weight_get,
  3784. .put = msm_pcm_channel_weight_put,
  3785. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3786. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 3,}
  3787. },
  3788. {
  3789. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3790. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3791. .name = "MultiMedia18 Output Channel5",
  3792. .info = msm_pcm_channel_weight_info,
  3793. .get = msm_pcm_channel_weight_get,
  3794. .put = msm_pcm_channel_weight_put,
  3795. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3796. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 4,}
  3797. },
  3798. {
  3799. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3800. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3801. .name = "MultiMedia18 Output Channel6",
  3802. .info = msm_pcm_channel_weight_info,
  3803. .get = msm_pcm_channel_weight_get,
  3804. .put = msm_pcm_channel_weight_put,
  3805. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3806. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 5,}
  3807. },
  3808. {
  3809. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3810. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3811. .name = "MultiMedia18 Output Channel7",
  3812. .info = msm_pcm_channel_weight_info,
  3813. .get = msm_pcm_channel_weight_get,
  3814. .put = msm_pcm_channel_weight_put,
  3815. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3816. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 6,}
  3817. },
  3818. {
  3819. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3820. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3821. .name = "MultiMedia18 Output Channel8",
  3822. .info = msm_pcm_channel_weight_info,
  3823. .get = msm_pcm_channel_weight_get,
  3824. .put = msm_pcm_channel_weight_put,
  3825. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3826. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 7,}
  3827. },
  3828. {
  3829. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3830. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3831. .name = "MultiMedia18 Output Channel9",
  3832. .info = msm_pcm_channel_weight_info,
  3833. .get = msm_pcm_channel_weight_get,
  3834. .put = msm_pcm_channel_weight_put,
  3835. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3836. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 8,}
  3837. },
  3838. {
  3839. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3840. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3841. .name = "MultiMedia18 Output Channel10",
  3842. .info = msm_pcm_channel_weight_info,
  3843. .get = msm_pcm_channel_weight_get,
  3844. .put = msm_pcm_channel_weight_put,
  3845. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3846. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 9,}
  3847. },
  3848. {
  3849. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3850. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3851. .name = "MultiMedia18 Output Channel11",
  3852. .info = msm_pcm_channel_weight_info,
  3853. .get = msm_pcm_channel_weight_get,
  3854. .put = msm_pcm_channel_weight_put,
  3855. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3856. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 10,}
  3857. },
  3858. {
  3859. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3860. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3861. .name = "MultiMedia18 Output Channel12",
  3862. .info = msm_pcm_channel_weight_info,
  3863. .get = msm_pcm_channel_weight_get,
  3864. .put = msm_pcm_channel_weight_put,
  3865. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3866. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 11,}
  3867. },
  3868. {
  3869. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3870. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3871. .name = "MultiMedia18 Output Channel13",
  3872. .info = msm_pcm_channel_weight_info,
  3873. .get = msm_pcm_channel_weight_get,
  3874. .put = msm_pcm_channel_weight_put,
  3875. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3876. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 12,}
  3877. },
  3878. {
  3879. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3880. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3881. .name = "MultiMedia18 Output Channel14",
  3882. .info = msm_pcm_channel_weight_info,
  3883. .get = msm_pcm_channel_weight_get,
  3884. .put = msm_pcm_channel_weight_put,
  3885. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3886. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18, .rshift = 13,}
  3887. },
  3888. {
  3889. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3890. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3891. .name = "MultiMedia19 Output Channel1",
  3892. .info = msm_pcm_channel_weight_info,
  3893. .get = msm_pcm_channel_weight_get,
  3894. .put = msm_pcm_channel_weight_put,
  3895. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3896. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 0,}
  3897. },
  3898. {
  3899. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3900. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3901. .name = "MultiMedia19 Output Channel2",
  3902. .info = msm_pcm_channel_weight_info,
  3903. .get = msm_pcm_channel_weight_get,
  3904. .put = msm_pcm_channel_weight_put,
  3905. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3906. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 1, }
  3907. },
  3908. {
  3909. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3910. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3911. .name = "MultiMedia19 Output Channel3",
  3912. .info = msm_pcm_channel_weight_info,
  3913. .get = msm_pcm_channel_weight_get,
  3914. .put = msm_pcm_channel_weight_put,
  3915. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3916. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 2,}
  3917. },
  3918. {
  3919. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3920. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3921. .name = "MultiMedia19 Output Channel4",
  3922. .info = msm_pcm_channel_weight_info,
  3923. .get = msm_pcm_channel_weight_get,
  3924. .put = msm_pcm_channel_weight_put,
  3925. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3926. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 3,}
  3927. },
  3928. {
  3929. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3930. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3931. .name = "MultiMedia19 Output Channel5",
  3932. .info = msm_pcm_channel_weight_info,
  3933. .get = msm_pcm_channel_weight_get,
  3934. .put = msm_pcm_channel_weight_put,
  3935. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3936. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 4,}
  3937. },
  3938. {
  3939. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3940. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3941. .name = "MultiMedia19 Output Channel6",
  3942. .info = msm_pcm_channel_weight_info,
  3943. .get = msm_pcm_channel_weight_get,
  3944. .put = msm_pcm_channel_weight_put,
  3945. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3946. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 5,}
  3947. },
  3948. {
  3949. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3950. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3951. .name = "MultiMedia19 Output Channel7",
  3952. .info = msm_pcm_channel_weight_info,
  3953. .get = msm_pcm_channel_weight_get,
  3954. .put = msm_pcm_channel_weight_put,
  3955. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3956. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 6,}
  3957. },
  3958. {
  3959. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3960. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3961. .name = "MultiMedia19 Output Channel8",
  3962. .info = msm_pcm_channel_weight_info,
  3963. .get = msm_pcm_channel_weight_get,
  3964. .put = msm_pcm_channel_weight_put,
  3965. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3966. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 7,}
  3967. },
  3968. {
  3969. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3970. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3971. .name = "MultiMedia19 Output Channel9",
  3972. .info = msm_pcm_channel_weight_info,
  3973. .get = msm_pcm_channel_weight_get,
  3974. .put = msm_pcm_channel_weight_put,
  3975. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3976. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 8,}
  3977. },
  3978. {
  3979. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3980. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3981. .name = "MultiMedia19 Output Channel10",
  3982. .info = msm_pcm_channel_weight_info,
  3983. .get = msm_pcm_channel_weight_get,
  3984. .put = msm_pcm_channel_weight_put,
  3985. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3986. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 9,}
  3987. },
  3988. {
  3989. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  3990. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  3991. .name = "MultiMedia19 Output Channel11",
  3992. .info = msm_pcm_channel_weight_info,
  3993. .get = msm_pcm_channel_weight_get,
  3994. .put = msm_pcm_channel_weight_put,
  3995. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  3996. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 10,}
  3997. },
  3998. {
  3999. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4000. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4001. .name = "MultiMedia19 Output Channel12",
  4002. .info = msm_pcm_channel_weight_info,
  4003. .get = msm_pcm_channel_weight_get,
  4004. .put = msm_pcm_channel_weight_put,
  4005. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4006. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 11,}
  4007. },
  4008. {
  4009. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4010. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4011. .name = "MultiMedia19 Output Channel13",
  4012. .info = msm_pcm_channel_weight_info,
  4013. .get = msm_pcm_channel_weight_get,
  4014. .put = msm_pcm_channel_weight_put,
  4015. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4016. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 12,}
  4017. },
  4018. {
  4019. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4020. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4021. .name = "MultiMedia19 Output Channel14",
  4022. .info = msm_pcm_channel_weight_info,
  4023. .get = msm_pcm_channel_weight_get,
  4024. .put = msm_pcm_channel_weight_put,
  4025. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4026. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19, .rshift = 13,}
  4027. },
  4028. {
  4029. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4030. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4031. .name = "MultiMedia28 Output Channel1",
  4032. .info = msm_pcm_channel_weight_info,
  4033. .get = msm_pcm_channel_weight_get,
  4034. .put = msm_pcm_channel_weight_put,
  4035. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4036. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 0,}
  4037. },
  4038. {
  4039. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4040. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4041. .name = "MultiMedia28 Output Channel2",
  4042. .info = msm_pcm_channel_weight_info,
  4043. .get = msm_pcm_channel_weight_get,
  4044. .put = msm_pcm_channel_weight_put,
  4045. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4046. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 1, }
  4047. },
  4048. {
  4049. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4050. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4051. .name = "MultiMedia28 Output Channel3",
  4052. .info = msm_pcm_channel_weight_info,
  4053. .get = msm_pcm_channel_weight_get,
  4054. .put = msm_pcm_channel_weight_put,
  4055. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4056. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 2,}
  4057. },
  4058. {
  4059. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4060. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4061. .name = "MultiMedia28 Output Channel4",
  4062. .info = msm_pcm_channel_weight_info,
  4063. .get = msm_pcm_channel_weight_get,
  4064. .put = msm_pcm_channel_weight_put,
  4065. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4066. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 3,}
  4067. },
  4068. {
  4069. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4070. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4071. .name = "MultiMedia28 Output Channel5",
  4072. .info = msm_pcm_channel_weight_info,
  4073. .get = msm_pcm_channel_weight_get,
  4074. .put = msm_pcm_channel_weight_put,
  4075. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4076. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 4,}
  4077. },
  4078. {
  4079. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4080. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4081. .name = "MultiMedia28 Output Channel6",
  4082. .info = msm_pcm_channel_weight_info,
  4083. .get = msm_pcm_channel_weight_get,
  4084. .put = msm_pcm_channel_weight_put,
  4085. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4086. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 5,}
  4087. },
  4088. {
  4089. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4090. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4091. .name = "MultiMedia28 Output Channel7",
  4092. .info = msm_pcm_channel_weight_info,
  4093. .get = msm_pcm_channel_weight_get,
  4094. .put = msm_pcm_channel_weight_put,
  4095. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4096. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 6,}
  4097. },
  4098. {
  4099. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4100. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4101. .name = "MultiMedia28 Output Channel8",
  4102. .info = msm_pcm_channel_weight_info,
  4103. .get = msm_pcm_channel_weight_get,
  4104. .put = msm_pcm_channel_weight_put,
  4105. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4106. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 7,}
  4107. },
  4108. {
  4109. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4110. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4111. .name = "MultiMedia28 Output Channel9",
  4112. .info = msm_pcm_channel_weight_info,
  4113. .get = msm_pcm_channel_weight_get,
  4114. .put = msm_pcm_channel_weight_put,
  4115. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4116. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 8,}
  4117. },
  4118. {
  4119. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4120. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4121. .name = "MultiMedia28 Output Channel10",
  4122. .info = msm_pcm_channel_weight_info,
  4123. .get = msm_pcm_channel_weight_get,
  4124. .put = msm_pcm_channel_weight_put,
  4125. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4126. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 9,}
  4127. },
  4128. {
  4129. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4130. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4131. .name = "MultiMedia28 Output Channel11",
  4132. .info = msm_pcm_channel_weight_info,
  4133. .get = msm_pcm_channel_weight_get,
  4134. .put = msm_pcm_channel_weight_put,
  4135. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4136. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 10,}
  4137. },
  4138. {
  4139. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4140. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4141. .name = "MultiMedia28 Output Channel12",
  4142. .info = msm_pcm_channel_weight_info,
  4143. .get = msm_pcm_channel_weight_get,
  4144. .put = msm_pcm_channel_weight_put,
  4145. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4146. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 11,}
  4147. },
  4148. {
  4149. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4150. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4151. .name = "MultiMedia28 Output Channel13",
  4152. .info = msm_pcm_channel_weight_info,
  4153. .get = msm_pcm_channel_weight_get,
  4154. .put = msm_pcm_channel_weight_put,
  4155. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4156. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 12,}
  4157. },
  4158. {
  4159. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4160. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4161. .name = "MultiMedia28 Output Channel14",
  4162. .info = msm_pcm_channel_weight_info,
  4163. .get = msm_pcm_channel_weight_get,
  4164. .put = msm_pcm_channel_weight_put,
  4165. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4166. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28, .rshift = 13,}
  4167. },
  4168. {
  4169. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4170. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4171. .name = "MultiMedia29 Output Channel1",
  4172. .info = msm_pcm_channel_weight_info,
  4173. .get = msm_pcm_channel_weight_get,
  4174. .put = msm_pcm_channel_weight_put,
  4175. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4176. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 0,}
  4177. },
  4178. {
  4179. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4180. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4181. .name = "MultiMedia29 Output Channel2",
  4182. .info = msm_pcm_channel_weight_info,
  4183. .get = msm_pcm_channel_weight_get,
  4184. .put = msm_pcm_channel_weight_put,
  4185. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4186. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 1, }
  4187. },
  4188. {
  4189. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4190. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4191. .name = "MultiMedia29 Output Channel3",
  4192. .info = msm_pcm_channel_weight_info,
  4193. .get = msm_pcm_channel_weight_get,
  4194. .put = msm_pcm_channel_weight_put,
  4195. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4196. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 2,}
  4197. },
  4198. {
  4199. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4200. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4201. .name = "MultiMedia29 Output Channel4",
  4202. .info = msm_pcm_channel_weight_info,
  4203. .get = msm_pcm_channel_weight_get,
  4204. .put = msm_pcm_channel_weight_put,
  4205. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4206. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 3,}
  4207. },
  4208. {
  4209. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4210. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4211. .name = "MultiMedia29 Output Channel5",
  4212. .info = msm_pcm_channel_weight_info,
  4213. .get = msm_pcm_channel_weight_get,
  4214. .put = msm_pcm_channel_weight_put,
  4215. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4216. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 4,}
  4217. },
  4218. {
  4219. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4220. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4221. .name = "MultiMedia29 Output Channel6",
  4222. .info = msm_pcm_channel_weight_info,
  4223. .get = msm_pcm_channel_weight_get,
  4224. .put = msm_pcm_channel_weight_put,
  4225. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4226. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 5,}
  4227. },
  4228. {
  4229. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4230. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4231. .name = "MultiMedia29 Output Channel7",
  4232. .info = msm_pcm_channel_weight_info,
  4233. .get = msm_pcm_channel_weight_get,
  4234. .put = msm_pcm_channel_weight_put,
  4235. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4236. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 6,}
  4237. },
  4238. {
  4239. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4240. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4241. .name = "MultiMedia29 Output Channel8",
  4242. .info = msm_pcm_channel_weight_info,
  4243. .get = msm_pcm_channel_weight_get,
  4244. .put = msm_pcm_channel_weight_put,
  4245. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4246. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 7,}
  4247. },
  4248. {
  4249. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4250. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4251. .name = "MultiMedia29 Output Channel9",
  4252. .info = msm_pcm_channel_weight_info,
  4253. .get = msm_pcm_channel_weight_get,
  4254. .put = msm_pcm_channel_weight_put,
  4255. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4256. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 8,}
  4257. },
  4258. {
  4259. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4260. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4261. .name = "MultiMedia29 Output Channel10",
  4262. .info = msm_pcm_channel_weight_info,
  4263. .get = msm_pcm_channel_weight_get,
  4264. .put = msm_pcm_channel_weight_put,
  4265. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4266. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 9,}
  4267. },
  4268. {
  4269. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4270. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4271. .name = "MultiMedia29 Output Channel11",
  4272. .info = msm_pcm_channel_weight_info,
  4273. .get = msm_pcm_channel_weight_get,
  4274. .put = msm_pcm_channel_weight_put,
  4275. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4276. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 10,}
  4277. },
  4278. {
  4279. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4280. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4281. .name = "MultiMedia29 Output Channel12",
  4282. .info = msm_pcm_channel_weight_info,
  4283. .get = msm_pcm_channel_weight_get,
  4284. .put = msm_pcm_channel_weight_put,
  4285. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4286. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 11,}
  4287. },
  4288. {
  4289. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4290. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4291. .name = "MultiMedia29 Output Channel13",
  4292. .info = msm_pcm_channel_weight_info,
  4293. .get = msm_pcm_channel_weight_get,
  4294. .put = msm_pcm_channel_weight_put,
  4295. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4296. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 12,}
  4297. },
  4298. {
  4299. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4300. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4301. .name = "MultiMedia29 Output Channel14",
  4302. .info = msm_pcm_channel_weight_info,
  4303. .get = msm_pcm_channel_weight_get,
  4304. .put = msm_pcm_channel_weight_put,
  4305. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4306. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29, .rshift = 13,}
  4307. },
  4308. {
  4309. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4310. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4311. .name = "MultiMedia30 Output Channel1",
  4312. .info = msm_pcm_channel_weight_info,
  4313. .get = msm_pcm_channel_weight_get,
  4314. .put = msm_pcm_channel_weight_put,
  4315. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4316. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 0,}
  4317. },
  4318. {
  4319. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4320. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4321. .name = "MultiMedia30 Output Channel2",
  4322. .info = msm_pcm_channel_weight_info,
  4323. .get = msm_pcm_channel_weight_get,
  4324. .put = msm_pcm_channel_weight_put,
  4325. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4326. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 1, }
  4327. },
  4328. {
  4329. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4330. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4331. .name = "MultiMedia30 Output Channel3",
  4332. .info = msm_pcm_channel_weight_info,
  4333. .get = msm_pcm_channel_weight_get,
  4334. .put = msm_pcm_channel_weight_put,
  4335. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4336. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 2,}
  4337. },
  4338. {
  4339. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4340. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4341. .name = "MultiMedia30 Output Channel4",
  4342. .info = msm_pcm_channel_weight_info,
  4343. .get = msm_pcm_channel_weight_get,
  4344. .put = msm_pcm_channel_weight_put,
  4345. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4346. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 3,}
  4347. },
  4348. {
  4349. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4350. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4351. .name = "MultiMedia30 Output Channel5",
  4352. .info = msm_pcm_channel_weight_info,
  4353. .get = msm_pcm_channel_weight_get,
  4354. .put = msm_pcm_channel_weight_put,
  4355. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4356. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 4,}
  4357. },
  4358. {
  4359. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4360. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4361. .name = "MultiMedia30 Output Channel6",
  4362. .info = msm_pcm_channel_weight_info,
  4363. .get = msm_pcm_channel_weight_get,
  4364. .put = msm_pcm_channel_weight_put,
  4365. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4366. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 5,}
  4367. },
  4368. {
  4369. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4370. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4371. .name = "MultiMedia30 Output Channel7",
  4372. .info = msm_pcm_channel_weight_info,
  4373. .get = msm_pcm_channel_weight_get,
  4374. .put = msm_pcm_channel_weight_put,
  4375. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4376. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 6,}
  4377. },
  4378. {
  4379. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4380. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4381. .name = "MultiMedia30 Output Channel8",
  4382. .info = msm_pcm_channel_weight_info,
  4383. .get = msm_pcm_channel_weight_get,
  4384. .put = msm_pcm_channel_weight_put,
  4385. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4386. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 7,}
  4387. },
  4388. {
  4389. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4390. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4391. .name = "MultiMedia30 Output Channel9",
  4392. .info = msm_pcm_channel_weight_info,
  4393. .get = msm_pcm_channel_weight_get,
  4394. .put = msm_pcm_channel_weight_put,
  4395. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4396. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 8,}
  4397. },
  4398. {
  4399. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4400. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4401. .name = "MultiMedia30 Output Channel10",
  4402. .info = msm_pcm_channel_weight_info,
  4403. .get = msm_pcm_channel_weight_get,
  4404. .put = msm_pcm_channel_weight_put,
  4405. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4406. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 9,}
  4407. },
  4408. {
  4409. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4410. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4411. .name = "MultiMedia30 Output Channel11",
  4412. .info = msm_pcm_channel_weight_info,
  4413. .get = msm_pcm_channel_weight_get,
  4414. .put = msm_pcm_channel_weight_put,
  4415. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4416. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 10,}
  4417. },
  4418. {
  4419. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4420. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4421. .name = "MultiMedia30 Output Channel12",
  4422. .info = msm_pcm_channel_weight_info,
  4423. .get = msm_pcm_channel_weight_get,
  4424. .put = msm_pcm_channel_weight_put,
  4425. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4426. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 11,}
  4427. },
  4428. {
  4429. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4430. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4431. .name = "MultiMedia30 Output Channel13",
  4432. .info = msm_pcm_channel_weight_info,
  4433. .get = msm_pcm_channel_weight_get,
  4434. .put = msm_pcm_channel_weight_put,
  4435. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4436. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 12,}
  4437. },
  4438. {
  4439. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4440. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4441. .name = "MultiMedia30 Output Channel14",
  4442. .info = msm_pcm_channel_weight_info,
  4443. .get = msm_pcm_channel_weight_get,
  4444. .put = msm_pcm_channel_weight_put,
  4445. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4446. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30, .rshift = 13,}
  4447. },
  4448. {
  4449. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4450. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4451. .name = "MultiMedia1 Channel1",
  4452. .info = msm_pcm_channel_input_be_info,
  4453. .get = msm_pcm_channel_input_be_get,
  4454. .put = msm_pcm_channel_input_be_put,
  4455. .private_value = (unsigned long)&(mm1_ch1_enum)
  4456. },
  4457. {
  4458. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4459. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4460. .name = "MultiMedia1 Channel2",
  4461. .info = msm_pcm_channel_input_be_info,
  4462. .get = msm_pcm_channel_input_be_get,
  4463. .put = msm_pcm_channel_input_be_put,
  4464. .private_value = (unsigned long)&(mm1_ch2_enum)
  4465. },
  4466. {
  4467. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4468. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4469. .name = "MultiMedia1 Channel3",
  4470. .info = msm_pcm_channel_input_be_info,
  4471. .get = msm_pcm_channel_input_be_get,
  4472. .put = msm_pcm_channel_input_be_put,
  4473. .private_value = (unsigned long)&(mm1_ch3_enum)
  4474. },
  4475. {
  4476. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4477. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4478. .name = "MultiMedia1 Channel4",
  4479. .info = msm_pcm_channel_input_be_info,
  4480. .get = msm_pcm_channel_input_be_get,
  4481. .put = msm_pcm_channel_input_be_put,
  4482. .private_value = (unsigned long)&(mm1_ch4_enum)
  4483. },
  4484. {
  4485. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4486. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4487. .name = "MultiMedia1 Channel5",
  4488. .info = msm_pcm_channel_input_be_info,
  4489. .get = msm_pcm_channel_input_be_get,
  4490. .put = msm_pcm_channel_input_be_put,
  4491. .private_value = (unsigned long)&(mm1_ch5_enum)
  4492. },
  4493. {
  4494. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4495. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4496. .name = "MultiMedia1 Channel6",
  4497. .info = msm_pcm_channel_input_be_info,
  4498. .get = msm_pcm_channel_input_be_get,
  4499. .put = msm_pcm_channel_input_be_put,
  4500. .private_value = (unsigned long)&(mm1_ch6_enum)
  4501. },
  4502. {
  4503. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4504. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4505. .name = "MultiMedia1 Channel7",
  4506. .info = msm_pcm_channel_input_be_info,
  4507. .get = msm_pcm_channel_input_be_get,
  4508. .put = msm_pcm_channel_input_be_put,
  4509. .private_value = (unsigned long)&(mm1_ch7_enum)
  4510. },
  4511. {
  4512. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4513. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4514. .name = "MultiMedia1 Channel8",
  4515. .info = msm_pcm_channel_input_be_info,
  4516. .get = msm_pcm_channel_input_be_get,
  4517. .put = msm_pcm_channel_input_be_put,
  4518. .private_value = (unsigned long)&(mm1_ch8_enum)
  4519. },
  4520. {
  4521. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4522. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4523. .name = "MultiMedia18 Channel1",
  4524. .info = msm_pcm_channel_input_be_info,
  4525. .get = msm_pcm_channel_input_be_get,
  4526. .put = msm_pcm_channel_input_be_put,
  4527. .private_value = (unsigned long)&(mm18_ch1_enum)
  4528. },
  4529. {
  4530. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4531. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4532. .name = "MultiMedia18 Channel2",
  4533. .info = msm_pcm_channel_input_be_info,
  4534. .get = msm_pcm_channel_input_be_get,
  4535. .put = msm_pcm_channel_input_be_put,
  4536. .private_value = (unsigned long)&(mm18_ch2_enum)
  4537. },
  4538. {
  4539. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4540. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4541. .name = "MultiMedia19 Channel1",
  4542. .info = msm_pcm_channel_input_be_info,
  4543. .get = msm_pcm_channel_input_be_get,
  4544. .put = msm_pcm_channel_input_be_put,
  4545. .private_value = (unsigned long)&(mm19_ch1_enum)
  4546. },
  4547. {
  4548. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4549. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4550. .name = "MultiMedia19 Channel2",
  4551. .info = msm_pcm_channel_input_be_info,
  4552. .get = msm_pcm_channel_input_be_get,
  4553. .put = msm_pcm_channel_input_be_put,
  4554. .private_value = (unsigned long)&(mm19_ch2_enum)
  4555. },
  4556. {
  4557. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4558. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4559. .name = "MultiMedia28 Channel1",
  4560. .info = msm_pcm_channel_input_be_info,
  4561. .get = msm_pcm_channel_input_be_get,
  4562. .put = msm_pcm_channel_input_be_put,
  4563. .private_value = (unsigned long)&(mm28_ch1_enum)
  4564. },
  4565. {
  4566. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4567. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4568. .name = "MultiMedia28 Channel2",
  4569. .info = msm_pcm_channel_input_be_info,
  4570. .get = msm_pcm_channel_input_be_get,
  4571. .put = msm_pcm_channel_input_be_put,
  4572. .private_value = (unsigned long)&(mm28_ch2_enum)
  4573. },
  4574. {
  4575. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4576. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4577. .name = "MultiMedia29 Channel1",
  4578. .info = msm_pcm_channel_input_be_info,
  4579. .get = msm_pcm_channel_input_be_get,
  4580. .put = msm_pcm_channel_input_be_put,
  4581. .private_value = (unsigned long)&(mm29_ch1_enum)
  4582. },
  4583. {
  4584. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4585. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4586. .name = "MultiMedia29 Channel2",
  4587. .info = msm_pcm_channel_input_be_info,
  4588. .get = msm_pcm_channel_input_be_get,
  4589. .put = msm_pcm_channel_input_be_put,
  4590. .private_value = (unsigned long)&(mm29_ch2_enum)
  4591. },
  4592. {
  4593. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4594. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4595. .name = "MultiMedia30 Channel1",
  4596. .info = msm_pcm_channel_input_be_info,
  4597. .get = msm_pcm_channel_input_be_get,
  4598. .put = msm_pcm_channel_input_be_put,
  4599. .private_value = (unsigned long)&(mm30_ch1_enum)
  4600. },
  4601. {
  4602. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4603. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4604. .name = "MultiMedia30 Channel2",
  4605. .info = msm_pcm_channel_input_be_info,
  4606. .get = msm_pcm_channel_input_be_get,
  4607. .put = msm_pcm_channel_input_be_put,
  4608. .private_value = (unsigned long)&(mm30_ch2_enum)
  4609. },
  4610. {
  4611. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4612. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4613. .name = "MultiMedia1 Output Channel Map",
  4614. .info = msm_pcm_channel_output_map_info,
  4615. .get = msm_pcm_channel_output_map_get,
  4616. .put = msm_pcm_channel_output_map_put,
  4617. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4618. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA1,}
  4619. },
  4620. {
  4621. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4622. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4623. .name = "MultiMedia2 Output Channel Map",
  4624. .info = msm_pcm_channel_output_map_info,
  4625. .get = msm_pcm_channel_output_map_get,
  4626. .put = msm_pcm_channel_output_map_put,
  4627. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4628. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA2,}
  4629. },
  4630. {
  4631. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4632. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4633. .name = "MultiMedia3 Output Channel Map",
  4634. .info = msm_pcm_channel_output_map_info,
  4635. .get = msm_pcm_channel_output_map_get,
  4636. .put = msm_pcm_channel_output_map_put,
  4637. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4638. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA3,}
  4639. },
  4640. {
  4641. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4642. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4643. .name = "MultiMedia4 Output Channel Map",
  4644. .info = msm_pcm_channel_output_map_info,
  4645. .get = msm_pcm_channel_output_map_get,
  4646. .put = msm_pcm_channel_output_map_put,
  4647. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4648. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA4,}
  4649. },
  4650. {
  4651. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4652. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4653. .name = "MultiMedia5 Output Channel Map",
  4654. .info = msm_pcm_channel_output_map_info,
  4655. .get = msm_pcm_channel_output_map_get,
  4656. .put = msm_pcm_channel_output_map_put,
  4657. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4658. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA5,}
  4659. },
  4660. {
  4661. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4662. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4663. .name = "MultiMedia6 Output Channel Map",
  4664. .info = msm_pcm_channel_output_map_info,
  4665. .get = msm_pcm_channel_output_map_get,
  4666. .put = msm_pcm_channel_output_map_put,
  4667. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4668. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA6,}
  4669. },
  4670. {
  4671. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4672. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4673. .name = "MultiMedia18 Output Channel Map",
  4674. .info = msm_pcm_channel_output_map_info,
  4675. .get = msm_pcm_channel_output_map_get,
  4676. .put = msm_pcm_channel_output_map_put,
  4677. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4678. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA18,}
  4679. },
  4680. {
  4681. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4682. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4683. .name = "MultiMedia19 Output Channel Map",
  4684. .info = msm_pcm_channel_output_map_info,
  4685. .get = msm_pcm_channel_output_map_get,
  4686. .put = msm_pcm_channel_output_map_put,
  4687. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4688. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA19,}
  4689. },
  4690. {
  4691. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4692. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4693. .name = "MultiMedia28 Output Channel Map",
  4694. .info = msm_pcm_channel_output_map_info,
  4695. .get = msm_pcm_channel_output_map_get,
  4696. .put = msm_pcm_channel_output_map_put,
  4697. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4698. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA28,}
  4699. },
  4700. {
  4701. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4702. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4703. .name = "MultiMedia29 Output Channel Map",
  4704. .info = msm_pcm_channel_output_map_info,
  4705. .get = msm_pcm_channel_output_map_get,
  4706. .put = msm_pcm_channel_output_map_put,
  4707. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4708. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA29,}
  4709. },
  4710. {
  4711. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  4712. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  4713. .name = "MultiMedia30 Output Channel Map",
  4714. .info = msm_pcm_channel_output_map_info,
  4715. .get = msm_pcm_channel_output_map_get,
  4716. .put = msm_pcm_channel_output_map_put,
  4717. .private_value = (unsigned long)&(struct soc_multi_mixer_control)
  4718. { .shift = MSM_FRONTEND_DAI_MULTIMEDIA30,}
  4719. },
  4720. };
  4721. static int msm_ec_ref_ch_get(struct snd_kcontrol *kcontrol,
  4722. struct snd_ctl_elem_value *ucontrol)
  4723. {
  4724. ucontrol->value.integer.value[0] = msm_ec_ref_ch;
  4725. pr_debug("%s: msm_ec_ref_ch = %ld\n", __func__,
  4726. ucontrol->value.integer.value[0]);
  4727. return 0;
  4728. }
  4729. static int msm_ec_ref_ch_put(struct snd_kcontrol *kcontrol,
  4730. struct snd_ctl_elem_value *ucontrol)
  4731. {
  4732. msm_ec_ref_ch = ucontrol->value.integer.value[0];
  4733. pr_debug("%s: msm_ec_ref_ch = %d\n", __func__, msm_ec_ref_ch);
  4734. adm_num_ec_ref_rx_chans(msm_ec_ref_ch);
  4735. return 0;
  4736. }
  4737. static int msm_ec_ref_ch_downmixed_get(struct snd_kcontrol *kcontrol,
  4738. struct snd_ctl_elem_value *ucontrol)
  4739. {
  4740. ucontrol->value.integer.value[0] = msm_ec_ref_ch_downmixed;
  4741. pr_debug("%s: msm_ec_ref_downmixed_ch = %ld\n", __func__,
  4742. ucontrol->value.integer.value[0]);
  4743. return 0;
  4744. }
  4745. static int msm_ec_ref_ch_downmixed_put(struct snd_kcontrol *kcontrol,
  4746. struct snd_ctl_elem_value *ucontrol)
  4747. {
  4748. msm_ec_ref_ch_downmixed = ucontrol->value.integer.value[0];
  4749. pr_debug("%s: msm_ec_ref_downmixed_ch = %d\n",
  4750. __func__, msm_ec_ref_ch_downmixed);
  4751. adm_num_ec_ref_rx_chans_downmixed(msm_ec_ref_ch_downmixed);
  4752. return 0;
  4753. }
  4754. static int msm_ec_ref_chmixer_weights_put(struct snd_kcontrol *kcontrol,
  4755. struct snd_ctl_elem_value *ucontrol)
  4756. {
  4757. int i = 0, ret = 0;
  4758. uint16_t weights[PCM_FORMAT_MAX_NUM_CHANNEL_V8] = {0};
  4759. int out_channel_idx = ((struct soc_multi_mixer_control *)
  4760. kcontrol->private_value)->shift;
  4761. for (; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++)
  4762. weights[i] = ucontrol->value.integer.value[i];
  4763. ret = adm_ec_ref_chmixer_weights(out_channel_idx,
  4764. weights, PCM_FORMAT_MAX_NUM_CHANNEL_V8);
  4765. pr_debug("%s: ch_index = %d, ret = %d\n", __func__, out_channel_idx, ret);
  4766. return ret;
  4767. }
  4768. static const char *const ec_ref_ch_text[] = {"Zero", "One", "Two", "Three",
  4769. "Four", "Five", "Six", "Seven", "Eight", "Nine", "Ten", "Eleven",
  4770. "Twelve", "Thirteen", "Fourteen", "Fifteen", "Sixteen"};
  4771. static int msm_ec_ref_bit_format_get(struct snd_kcontrol *kcontrol,
  4772. struct snd_ctl_elem_value *ucontrol)
  4773. {
  4774. switch (msm_ec_ref_bit_format) {
  4775. case SNDRV_PCM_FORMAT_S24_LE:
  4776. ucontrol->value.integer.value[0] = 2;
  4777. break;
  4778. case SNDRV_PCM_FORMAT_S16_LE:
  4779. ucontrol->value.integer.value[0] = 1;
  4780. break;
  4781. default:
  4782. ucontrol->value.integer.value[0] = 0;
  4783. break;
  4784. }
  4785. pr_debug("%s: msm_ec_ref_bit_format = %ld\n",
  4786. __func__, ucontrol->value.integer.value[0]);
  4787. return 0;
  4788. }
  4789. static int msm_ec_ref_bit_format_put(struct snd_kcontrol *kcontrol,
  4790. struct snd_ctl_elem_value *ucontrol)
  4791. {
  4792. u16 bit_width = 0;
  4793. switch (ucontrol->value.integer.value[0]) {
  4794. case 2:
  4795. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S24_LE;
  4796. break;
  4797. case 1:
  4798. msm_ec_ref_bit_format = SNDRV_PCM_FORMAT_S16_LE;
  4799. break;
  4800. default:
  4801. msm_ec_ref_bit_format = 0;
  4802. break;
  4803. }
  4804. if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S16_LE)
  4805. bit_width = 16;
  4806. else if (msm_ec_ref_bit_format == SNDRV_PCM_FORMAT_S24_LE)
  4807. bit_width = 24;
  4808. pr_debug("%s: msm_ec_ref_bit_format = %d\n",
  4809. __func__, msm_ec_ref_bit_format);
  4810. adm_ec_ref_rx_bit_width(bit_width);
  4811. return 0;
  4812. }
  4813. static char const *ec_ref_bit_format_text[] = {"0", "S16_LE", "S24_LE"};
  4814. static int msm_ec_ref_rate_get(struct snd_kcontrol *kcontrol,
  4815. struct snd_ctl_elem_value *ucontrol)
  4816. {
  4817. ucontrol->value.integer.value[0] = msm_ec_ref_sampling_rate;
  4818. pr_debug("%s: msm_ec_ref_sampling_rate = %ld\n",
  4819. __func__, ucontrol->value.integer.value[0]);
  4820. return 0;
  4821. }
  4822. static int msm_ec_ref_rate_put(struct snd_kcontrol *kcontrol,
  4823. struct snd_ctl_elem_value *ucontrol)
  4824. {
  4825. switch (ucontrol->value.integer.value[0]) {
  4826. case 0:
  4827. msm_ec_ref_sampling_rate = 0;
  4828. break;
  4829. case 1:
  4830. msm_ec_ref_sampling_rate = 8000;
  4831. break;
  4832. case 2:
  4833. msm_ec_ref_sampling_rate = 16000;
  4834. break;
  4835. case 3:
  4836. msm_ec_ref_sampling_rate = 32000;
  4837. break;
  4838. case 4:
  4839. msm_ec_ref_sampling_rate = 44100;
  4840. break;
  4841. case 5:
  4842. msm_ec_ref_sampling_rate = 48000;
  4843. break;
  4844. case 6:
  4845. msm_ec_ref_sampling_rate = 96000;
  4846. break;
  4847. case 7:
  4848. msm_ec_ref_sampling_rate = 192000;
  4849. break;
  4850. case 8:
  4851. msm_ec_ref_sampling_rate = 384000;
  4852. break;
  4853. default:
  4854. msm_ec_ref_sampling_rate = 48000;
  4855. break;
  4856. }
  4857. pr_debug("%s: msm_ec_ref_sampling_rate = %d\n",
  4858. __func__, msm_ec_ref_sampling_rate);
  4859. adm_ec_ref_rx_sampling_rate(msm_ec_ref_sampling_rate);
  4860. return 0;
  4861. }
  4862. static int get_ec_ref_port_id(int value, int *index)
  4863. {
  4864. int port_id;
  4865. switch (value) {
  4866. case 0:
  4867. *index = 0;
  4868. port_id = AFE_PORT_INVALID;
  4869. break;
  4870. case 1:
  4871. *index = 1;
  4872. port_id = SLIMBUS_0_RX;
  4873. break;
  4874. case 2:
  4875. *index = 2;
  4876. port_id = AFE_PORT_ID_PRIMARY_MI2S_RX;
  4877. break;
  4878. case 3:
  4879. *index = 3;
  4880. port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  4881. break;
  4882. case 4:
  4883. *index = 4;
  4884. port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  4885. break;
  4886. case 5:
  4887. *index = 5;
  4888. port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  4889. break;
  4890. case 6:
  4891. *index = 6;
  4892. port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  4893. break;
  4894. case 7:
  4895. *index = 7;
  4896. port_id = AFE_PORT_ID_SECONDARY_MI2S_RX;
  4897. break;
  4898. case 9:
  4899. *index = 9;
  4900. port_id = SLIMBUS_5_RX;
  4901. break;
  4902. case 10:
  4903. *index = 10;
  4904. port_id = SLIMBUS_1_TX;
  4905. break;
  4906. case 11:
  4907. *index = 11;
  4908. port_id = AFE_PORT_ID_QUATERNARY_TDM_TX_1;
  4909. break;
  4910. case 12:
  4911. *index = 12;
  4912. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX;
  4913. break;
  4914. case 13:
  4915. *index = 13;
  4916. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_1;
  4917. break;
  4918. case 14:
  4919. *index = 14;
  4920. port_id = AFE_PORT_ID_QUATERNARY_TDM_RX_2;
  4921. break;
  4922. case 15:
  4923. *index = 15;
  4924. port_id = SLIMBUS_6_RX;
  4925. break;
  4926. case 16:
  4927. *index = 16;
  4928. port_id = AFE_PORT_ID_TERTIARY_MI2S_RX;
  4929. break;
  4930. case 17:
  4931. *index = 17;
  4932. port_id = AFE_PORT_ID_QUATERNARY_MI2S_RX;
  4933. break;
  4934. case 18:
  4935. *index = 18;
  4936. port_id = AFE_PORT_ID_TERTIARY_TDM_TX;
  4937. break;
  4938. case 19:
  4939. *index = 19;
  4940. port_id = AFE_PORT_ID_USB_RX;
  4941. break;
  4942. case 20:
  4943. *index = 20;
  4944. port_id = AFE_PORT_ID_INT0_MI2S_RX;
  4945. break;
  4946. case 21:
  4947. *index = 21;
  4948. port_id = AFE_PORT_ID_INT4_MI2S_RX;
  4949. break;
  4950. case 22:
  4951. *index = 22;
  4952. port_id = AFE_PORT_ID_INT3_MI2S_TX;
  4953. break;
  4954. case 23:
  4955. *index = 23;
  4956. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  4957. break;
  4958. case 24:
  4959. *index = 24;
  4960. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_0;
  4961. break;
  4962. case 25:
  4963. *index = 25;
  4964. port_id = AFE_PORT_ID_WSA_CODEC_DMA_RX_1;
  4965. break;
  4966. case 26:
  4967. *index = 26;
  4968. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_0;
  4969. break;
  4970. case 27:
  4971. *index = 27;
  4972. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_1;
  4973. break;
  4974. case 28:
  4975. *index = 28;
  4976. port_id = AFE_PORT_ID_WSA_CODEC_DMA_TX_2;
  4977. break;
  4978. case 29:
  4979. *index = 29;
  4980. port_id = SLIMBUS_7_RX;
  4981. break;
  4982. case 30:
  4983. *index = 30;
  4984. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_0;
  4985. break;
  4986. case 31:
  4987. *index = 31;
  4988. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_1;
  4989. break;
  4990. case 32:
  4991. *index = 32;
  4992. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_2;
  4993. break;
  4994. case 33:
  4995. *index = 33;
  4996. port_id = AFE_PORT_ID_RX_CODEC_DMA_RX_3;
  4997. break;
  4998. case 34:
  4999. *index = 34;
  5000. port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_0;
  5001. break;
  5002. case 35:
  5003. *index = 35;
  5004. port_id = AFE_PORT_ID_TERTIARY_TDM_RX_2;
  5005. break;
  5006. case 36:
  5007. *index = 36;
  5008. port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5009. break;
  5010. case 37:
  5011. *index = 37;
  5012. port_id = AFE_PORT_ID_HDMI_OVER_DP_RX;
  5013. break;
  5014. default:
  5015. *index = 0; /* NONE */
  5016. pr_err("%s: Invalid value %d\n", __func__, value);
  5017. port_id = AFE_PORT_INVALID;
  5018. break;
  5019. }
  5020. return port_id;
  5021. }
  5022. static int msm_routing_afe_lb_tx_port_get(struct snd_kcontrol *kcontrol,
  5023. struct snd_ctl_elem_value *ucontrol)
  5024. {
  5025. pr_debug("%s: port index = %d", __func__, afe_loopback_tx_port_index);
  5026. mutex_lock(&routing_lock);
  5027. ucontrol->value.integer.value[0] = afe_loopback_tx_port_index;
  5028. mutex_unlock(&routing_lock);
  5029. return 0;
  5030. }
  5031. static int msm_routing_afe_lb_tx_port_put(struct snd_kcontrol *kcontrol,
  5032. struct snd_ctl_elem_value *ucontrol)
  5033. {
  5034. int value = ucontrol->value.integer.value[0];
  5035. mutex_lock(&routing_lock);
  5036. afe_loopback_tx_port_id = get_ec_ref_port_id(value,
  5037. &afe_loopback_tx_port_index);
  5038. pr_debug("%s: afe_loopback_tx_port_index = %d\n",
  5039. __func__, afe_loopback_tx_port_index);
  5040. mutex_unlock(&routing_lock);
  5041. return 0;
  5042. }
  5043. static const char *const ec_ref_rate_text[] = {"0", "8000", "16000",
  5044. "32000", "44100", "48000", "96000", "192000", "384000"};
  5045. static const struct soc_enum msm_route_ec_ref_params_enum[] = {
  5046. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_ch_text), ec_ref_ch_text),
  5047. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_bit_format_text),
  5048. ec_ref_bit_format_text),
  5049. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rate_text), ec_ref_rate_text),
  5050. };
  5051. static const char *const ec_ref_rx[] = { "None", "SLIM_RX", "I2S_RX",
  5052. "PRI_MI2S_TX", "SEC_MI2S_TX",
  5053. "TERT_MI2S_TX", "QUAT_MI2S_TX", "SEC_I2S_RX", "PROXY_RX",
  5054. "SLIM_5_RX", "SLIM_1_TX", "QUAT_TDM_TX_1",
  5055. "QUAT_TDM_RX_0", "QUAT_TDM_RX_1", "QUAT_TDM_RX_2", "SLIM_6_RX",
  5056. "TERT_MI2S_RX", "QUAT_MI2S_RX", "TERT_TDM_TX_0", "USB_AUDIO_RX",
  5057. "INT0_MI2S_RX", "INT4_MI2S_RX", "INT3_MI2S_TX", "DISPLAY_PORT",
  5058. "WSA_CDC_DMA_RX_0", "WSA_CDC_DMA_RX_1",
  5059. "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_2",
  5060. "SLIM_7_RX", "RX_CDC_DMA_RX_0", "RX_CDC_DMA_RX_1", "RX_CDC_DMA_RX_2",
  5061. "RX_CDC_DMA_RX_3", "TX_CDC_DMA_TX_0", "TERT_TDM_RX_2", "SEC_TDM_TX_0",
  5062. "DISPLAY_PORT1",
  5063. };
  5064. static const struct soc_enum msm_route_ec_ref_rx_enum[] = {
  5065. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ec_ref_rx), ec_ref_rx),
  5066. };
  5067. static const struct snd_kcontrol_new ec_ref_param_controls[] = {
  5068. SOC_ENUM_EXT("EC Reference Channels", msm_route_ec_ref_params_enum[0],
  5069. msm_ec_ref_ch_get, msm_ec_ref_ch_put),
  5070. SOC_ENUM_EXT("EC Reference Bit Format", msm_route_ec_ref_params_enum[1],
  5071. msm_ec_ref_bit_format_get, msm_ec_ref_bit_format_put),
  5072. SOC_ENUM_EXT("EC Reference SampleRate", msm_route_ec_ref_params_enum[2],
  5073. msm_ec_ref_rate_get, msm_ec_ref_rate_put),
  5074. SOC_ENUM_EXT("EC Reference Downmixed Channels",
  5075. msm_route_ec_ref_params_enum[0],
  5076. msm_ec_ref_ch_downmixed_get, msm_ec_ref_ch_downmixed_put),
  5077. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch1", SND_SOC_NOPM,
  5078. 0, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5079. msm_ec_ref_chmixer_weights_put),
  5080. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch2", SND_SOC_NOPM,
  5081. 1, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5082. msm_ec_ref_chmixer_weights_put),
  5083. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch3", SND_SOC_NOPM,
  5084. 2, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5085. msm_ec_ref_chmixer_weights_put),
  5086. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch4", SND_SOC_NOPM,
  5087. 3, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5088. msm_ec_ref_chmixer_weights_put),
  5089. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch5", SND_SOC_NOPM,
  5090. 4, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5091. msm_ec_ref_chmixer_weights_put),
  5092. SOC_SINGLE_MULTI_EXT("EC Reference ChMixer Weights Ch6", SND_SOC_NOPM,
  5093. 5, 16384, 0, PCM_FORMAT_MAX_NUM_CHANNEL_V8, NULL,
  5094. msm_ec_ref_chmixer_weights_put),
  5095. SOC_ENUM_EXT("AFE_LOOPBACK_TX Port", msm_route_ec_ref_rx_enum[0],
  5096. msm_routing_afe_lb_tx_port_get, msm_routing_afe_lb_tx_port_put),
  5097. };
  5098. static int msm_routing_ec_ref_rx_get(struct snd_kcontrol *kcontrol,
  5099. struct snd_ctl_elem_value *ucontrol)
  5100. {
  5101. pr_debug("%s: ec_ref_rx = %d", __func__, msm_route_ec_ref_rx);
  5102. mutex_lock(&routing_lock);
  5103. ucontrol->value.integer.value[0] = msm_route_ec_ref_rx;
  5104. mutex_unlock(&routing_lock);
  5105. return 0;
  5106. }
  5107. static int msm_routing_ec_ref_rx_put(struct snd_kcontrol *kcontrol,
  5108. struct snd_ctl_elem_value *ucontrol)
  5109. {
  5110. int value = ucontrol->value.integer.value[0];
  5111. struct snd_soc_dapm_widget *widget =
  5112. snd_soc_dapm_kcontrol_widget(kcontrol);
  5113. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5114. struct snd_soc_dapm_update *update = NULL;
  5115. mutex_lock(&routing_lock);
  5116. msm_ec_ref_port_id = get_ec_ref_port_id(value, &msm_route_ec_ref_rx);
  5117. adm_ec_ref_rx_id(msm_ec_ref_port_id);
  5118. pr_debug("%s: msm_route_ec_ref_rx = %d\n",
  5119. __func__, msm_route_ec_ref_rx);
  5120. mutex_unlock(&routing_lock);
  5121. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol,
  5122. msm_route_ec_ref_rx, e, update);
  5123. return 0;
  5124. }
  5125. static const struct snd_kcontrol_new ext_ec_ref_mux_ul1 =
  5126. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL1 MUX Mux",
  5127. msm_route_ec_ref_rx_enum[0],
  5128. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5129. static const struct snd_kcontrol_new ext_ec_ref_mux_ul2 =
  5130. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL2 MUX Mux",
  5131. msm_route_ec_ref_rx_enum[0],
  5132. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5133. static const struct snd_kcontrol_new ext_ec_ref_mux_ul3 =
  5134. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL3 MUX Mux",
  5135. msm_route_ec_ref_rx_enum[0],
  5136. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5137. static const struct snd_kcontrol_new ext_ec_ref_mux_ul4 =
  5138. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL4 MUX Mux",
  5139. msm_route_ec_ref_rx_enum[0],
  5140. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5141. static const struct snd_kcontrol_new ext_ec_ref_mux_ul5 =
  5142. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL5 MUX Mux",
  5143. msm_route_ec_ref_rx_enum[0],
  5144. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5145. static const struct snd_kcontrol_new ext_ec_ref_mux_ul6 =
  5146. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL6 MUX Mux",
  5147. msm_route_ec_ref_rx_enum[0],
  5148. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5149. static const struct snd_kcontrol_new ext_ec_ref_mux_ul8 =
  5150. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL8 MUX Mux",
  5151. msm_route_ec_ref_rx_enum[0],
  5152. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5153. static const struct snd_kcontrol_new ext_ec_ref_mux_ul9 =
  5154. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL9 MUX Mux",
  5155. msm_route_ec_ref_rx_enum[0],
  5156. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5157. static const struct snd_kcontrol_new ext_ec_ref_mux_ul16 =
  5158. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL16 MUX Mux",
  5159. msm_route_ec_ref_rx_enum[0],
  5160. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5161. static const struct snd_kcontrol_new ext_ec_ref_mux_ul10 =
  5162. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL10 MUX Mux",
  5163. msm_route_ec_ref_rx_enum[0],
  5164. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5165. static const struct snd_kcontrol_new ext_ec_ref_mux_ul17 =
  5166. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL17 MUX Mux",
  5167. msm_route_ec_ref_rx_enum[0],
  5168. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5169. static const struct snd_kcontrol_new ext_ec_ref_mux_ul18 =
  5170. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL18 MUX Mux",
  5171. msm_route_ec_ref_rx_enum[0],
  5172. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5173. static const struct snd_kcontrol_new ext_ec_ref_mux_ul19 =
  5174. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL19 MUX Mux",
  5175. msm_route_ec_ref_rx_enum[0],
  5176. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5177. static const struct snd_kcontrol_new ext_ec_ref_mux_ul28 =
  5178. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL28 MUX Mux",
  5179. msm_route_ec_ref_rx_enum[0],
  5180. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5181. static const struct snd_kcontrol_new ext_ec_ref_mux_ul29 =
  5182. SOC_DAPM_ENUM_EXT("AUDIO_REF_EC_UL29 MUX Mux",
  5183. msm_route_ec_ref_rx_enum[0],
  5184. msm_routing_ec_ref_rx_get, msm_routing_ec_ref_rx_put);
  5185. static int msm_routing_ext_ec_get(struct snd_kcontrol *kcontrol,
  5186. struct snd_ctl_elem_value *ucontrol)
  5187. {
  5188. pr_debug("%s: ext_ec_ref_rx = %x\n", __func__, msm_route_ext_ec_ref);
  5189. mutex_lock(&routing_lock);
  5190. ucontrol->value.integer.value[0] = msm_route_ext_ec_ref;
  5191. mutex_unlock(&routing_lock);
  5192. return 0;
  5193. }
  5194. static int msm_routing_ext_ec_put(struct snd_kcontrol *kcontrol,
  5195. struct snd_ctl_elem_value *ucontrol)
  5196. {
  5197. struct snd_soc_dapm_widget *widget =
  5198. snd_soc_dapm_kcontrol_widget(kcontrol);
  5199. int mux = ucontrol->value.enumerated.item[0];
  5200. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  5201. int ret = 1;
  5202. bool state = true;
  5203. uint16_t ext_ec_ref_port_id;
  5204. struct snd_soc_dapm_update *update = NULL;
  5205. if (mux >= e->items) {
  5206. pr_err("%s: Invalid mux value %d\n", __func__, mux);
  5207. return -EINVAL;
  5208. }
  5209. mutex_lock(&routing_lock);
  5210. msm_route_ext_ec_ref = ucontrol->value.integer.value[0];
  5211. switch (msm_route_ext_ec_ref) {
  5212. case EXT_EC_REF_PRI_MI2S_TX:
  5213. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_MI2S_TX;
  5214. break;
  5215. case EXT_EC_REF_SEC_MI2S_TX:
  5216. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_MI2S_TX;
  5217. break;
  5218. case EXT_EC_REF_TERT_MI2S_TX:
  5219. ext_ec_ref_port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  5220. break;
  5221. case EXT_EC_REF_QUAT_MI2S_TX:
  5222. ext_ec_ref_port_id = AFE_PORT_ID_QUATERNARY_MI2S_TX;
  5223. break;
  5224. case EXT_EC_REF_QUIN_MI2S_TX:
  5225. ext_ec_ref_port_id = AFE_PORT_ID_QUINARY_MI2S_TX;
  5226. break;
  5227. case EXT_EC_REF_SLIM_1_TX:
  5228. ext_ec_ref_port_id = SLIMBUS_1_TX;
  5229. break;
  5230. case EXT_EC_REF_PRI_TDM_TX:
  5231. ext_ec_ref_port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  5232. break;
  5233. case EXT_EC_REF_SEC_TDM_TX:
  5234. ext_ec_ref_port_id = AFE_PORT_ID_SECONDARY_TDM_TX;
  5235. break;
  5236. case EXT_EC_REF_NONE:
  5237. default:
  5238. ext_ec_ref_port_id = AFE_PORT_INVALID;
  5239. state = false;
  5240. break;
  5241. }
  5242. pr_debug("%s: val = %d ext_ec_ref_port_id = 0x%0x state = %d\n",
  5243. __func__, msm_route_ext_ec_ref, ext_ec_ref_port_id, state);
  5244. if (!voc_set_ext_ec_ref_port_id(ext_ec_ref_port_id, state)) {
  5245. mutex_unlock(&routing_lock);
  5246. snd_soc_dapm_mux_update_power(widget->dapm, kcontrol, mux, e,
  5247. update);
  5248. } else {
  5249. ret = -EINVAL;
  5250. mutex_unlock(&routing_lock);
  5251. }
  5252. return ret;
  5253. }
  5254. static const char * const ext_ec_ref_rx[] = {"NONE", "PRI_MI2S_TX",
  5255. "SEC_MI2S_TX", "TERT_MI2S_TX",
  5256. "QUAT_MI2S_TX", "QUIN_MI2S_TX",
  5257. "SLIM_1_TX", "PRI_TDM_TX",
  5258. "SEC_TDM_TX"};
  5259. static const struct soc_enum msm_route_ext_ec_ref_rx_enum[] = {
  5260. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(ext_ec_ref_rx), ext_ec_ref_rx),
  5261. };
  5262. static const struct snd_kcontrol_new voc_ext_ec_mux =
  5263. SOC_DAPM_ENUM_EXT("VOC_EXT_EC MUX Mux", msm_route_ext_ec_ref_rx_enum[0],
  5264. msm_routing_ext_ec_get, msm_routing_ext_ec_put);
  5265. static const struct snd_kcontrol_new pri_i2s_rx_mixer_controls[] = {
  5266. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5267. MSM_BACKEND_DAI_PRI_I2S_RX,
  5268. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5269. msm_routing_put_audio_mixer),
  5270. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5271. MSM_BACKEND_DAI_PRI_I2S_RX,
  5272. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5273. msm_routing_put_audio_mixer),
  5274. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5275. MSM_BACKEND_DAI_PRI_I2S_RX,
  5276. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5277. msm_routing_put_audio_mixer),
  5278. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5279. MSM_BACKEND_DAI_PRI_I2S_RX,
  5280. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5281. msm_routing_put_audio_mixer),
  5282. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5283. MSM_BACKEND_DAI_PRI_I2S_RX,
  5284. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5285. msm_routing_put_audio_mixer),
  5286. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5287. MSM_BACKEND_DAI_PRI_I2S_RX,
  5288. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5289. msm_routing_put_audio_mixer),
  5290. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5291. MSM_BACKEND_DAI_PRI_I2S_RX,
  5292. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5293. msm_routing_put_audio_mixer),
  5294. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5295. MSM_BACKEND_DAI_PRI_I2S_RX,
  5296. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5297. msm_routing_put_audio_mixer),
  5298. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5299. MSM_BACKEND_DAI_PRI_I2S_RX,
  5300. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5301. msm_routing_put_audio_mixer),
  5302. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5303. MSM_BACKEND_DAI_PRI_I2S_RX,
  5304. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5305. msm_routing_put_audio_mixer),
  5306. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5307. MSM_BACKEND_DAI_PRI_I2S_RX,
  5308. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5309. msm_routing_put_audio_mixer),
  5310. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5311. MSM_BACKEND_DAI_PRI_I2S_RX,
  5312. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5313. msm_routing_put_audio_mixer),
  5314. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5315. MSM_BACKEND_DAI_PRI_I2S_RX,
  5316. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5317. msm_routing_put_audio_mixer),
  5318. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5319. MSM_BACKEND_DAI_PRI_I2S_RX,
  5320. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5321. msm_routing_put_audio_mixer),
  5322. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5323. MSM_BACKEND_DAI_PRI_I2S_RX,
  5324. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5325. msm_routing_put_audio_mixer),
  5326. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5327. MSM_BACKEND_DAI_PRI_I2S_RX,
  5328. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5329. msm_routing_put_audio_mixer),
  5330. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5331. MSM_BACKEND_DAI_PRI_I2S_RX,
  5332. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5333. msm_routing_put_audio_mixer),
  5334. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5335. MSM_BACKEND_DAI_PRI_I2S_RX,
  5336. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5337. msm_routing_put_audio_mixer),
  5338. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5339. MSM_BACKEND_DAI_PRI_I2S_RX,
  5340. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5341. msm_routing_put_audio_mixer),
  5342. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5343. MSM_BACKEND_DAI_PRI_I2S_RX,
  5344. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5345. msm_routing_put_audio_mixer),
  5346. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5347. MSM_BACKEND_DAI_PRI_I2S_RX,
  5348. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5349. msm_routing_put_audio_mixer),
  5350. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5351. MSM_BACKEND_DAI_PRI_I2S_RX,
  5352. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5353. msm_routing_put_audio_mixer),
  5354. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5355. MSM_BACKEND_DAI_PRI_I2S_RX,
  5356. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5357. msm_routing_put_audio_mixer),
  5358. };
  5359. static const struct snd_kcontrol_new sec_i2s_rx_mixer_controls[] = {
  5360. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5361. MSM_BACKEND_DAI_SEC_I2S_RX,
  5362. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5363. msm_routing_put_audio_mixer),
  5364. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5365. MSM_BACKEND_DAI_SEC_I2S_RX,
  5366. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5367. msm_routing_put_audio_mixer),
  5368. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5369. MSM_BACKEND_DAI_SEC_I2S_RX,
  5370. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5371. msm_routing_put_audio_mixer),
  5372. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5373. MSM_BACKEND_DAI_SEC_I2S_RX,
  5374. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5375. msm_routing_put_audio_mixer),
  5376. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5377. MSM_BACKEND_DAI_SEC_I2S_RX,
  5378. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5379. msm_routing_put_audio_mixer),
  5380. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5381. MSM_BACKEND_DAI_SEC_I2S_RX,
  5382. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5383. msm_routing_put_audio_mixer),
  5384. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5385. MSM_BACKEND_DAI_SEC_I2S_RX,
  5386. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5387. msm_routing_put_audio_mixer),
  5388. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5389. MSM_BACKEND_DAI_SEC_I2S_RX,
  5390. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5391. msm_routing_put_audio_mixer),
  5392. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5393. MSM_BACKEND_DAI_SEC_I2S_RX,
  5394. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5395. msm_routing_put_audio_mixer),
  5396. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5397. MSM_BACKEND_DAI_SEC_I2S_RX,
  5398. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5399. msm_routing_put_audio_mixer),
  5400. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5401. MSM_BACKEND_DAI_SEC_I2S_RX,
  5402. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5403. msm_routing_put_audio_mixer),
  5404. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5405. MSM_BACKEND_DAI_SEC_I2S_RX,
  5406. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5407. msm_routing_put_audio_mixer),
  5408. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5409. MSM_BACKEND_DAI_SEC_I2S_RX,
  5410. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5411. msm_routing_put_audio_mixer),
  5412. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5413. MSM_BACKEND_DAI_SEC_I2S_RX,
  5414. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5415. msm_routing_put_audio_mixer),
  5416. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5417. MSM_BACKEND_DAI_SEC_I2S_RX,
  5418. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5419. msm_routing_put_audio_mixer),
  5420. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5421. MSM_BACKEND_DAI_SEC_I2S_RX,
  5422. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5423. msm_routing_put_audio_mixer),
  5424. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5425. MSM_BACKEND_DAI_SEC_I2S_RX,
  5426. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5427. msm_routing_put_audio_mixer),
  5428. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5429. MSM_BACKEND_DAI_SEC_I2S_RX,
  5430. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5431. msm_routing_put_audio_mixer),
  5432. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5433. MSM_BACKEND_DAI_SEC_I2S_RX,
  5434. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5435. msm_routing_put_audio_mixer),
  5436. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5437. MSM_BACKEND_DAI_SEC_I2S_RX,
  5438. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5439. msm_routing_put_audio_mixer),
  5440. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5441. MSM_BACKEND_DAI_SEC_I2S_RX,
  5442. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5443. msm_routing_put_audio_mixer),
  5444. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5445. MSM_BACKEND_DAI_SEC_I2S_RX,
  5446. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5447. msm_routing_put_audio_mixer),
  5448. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5449. MSM_BACKEND_DAI_SEC_I2S_RX,
  5450. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5451. msm_routing_put_audio_mixer),
  5452. };
  5453. static const struct snd_kcontrol_new pri_spdif_rx_mixer_controls[] = {
  5454. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5455. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5456. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5457. msm_routing_put_audio_mixer),
  5458. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5459. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5460. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5461. msm_routing_put_audio_mixer),
  5462. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5463. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5464. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5465. msm_routing_put_audio_mixer),
  5466. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5467. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5468. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5469. msm_routing_put_audio_mixer),
  5470. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5471. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5472. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5473. msm_routing_put_audio_mixer),
  5474. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5475. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5476. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5477. msm_routing_put_audio_mixer),
  5478. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5479. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5480. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5481. msm_routing_put_audio_mixer),
  5482. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5483. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5484. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5485. msm_routing_put_audio_mixer),
  5486. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5487. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5488. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5489. msm_routing_put_audio_mixer),
  5490. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5491. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5492. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5493. msm_routing_put_audio_mixer),
  5494. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5495. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5496. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5497. msm_routing_put_audio_mixer),
  5498. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5499. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5500. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5501. msm_routing_put_audio_mixer),
  5502. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5503. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5504. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5505. msm_routing_put_audio_mixer),
  5506. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5507. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5508. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5509. msm_routing_put_audio_mixer),
  5510. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5511. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5512. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5513. msm_routing_put_audio_mixer),
  5514. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5515. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5516. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5517. msm_routing_put_audio_mixer),
  5518. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5519. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5520. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5521. msm_routing_put_audio_mixer),
  5522. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5523. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5524. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5525. msm_routing_put_audio_mixer),
  5526. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5527. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5528. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5529. msm_routing_put_audio_mixer),
  5530. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5531. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5532. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5533. msm_routing_put_audio_mixer),
  5534. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5535. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5537. msm_routing_put_audio_mixer),
  5538. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5539. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5540. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5541. msm_routing_put_audio_mixer),
  5542. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5543. MSM_BACKEND_DAI_PRI_SPDIF_RX,
  5544. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5545. msm_routing_put_audio_mixer),
  5546. };
  5547. static const struct snd_kcontrol_new sec_spdif_rx_mixer_controls[] = {
  5548. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5549. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5550. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5551. msm_routing_put_audio_mixer),
  5552. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5553. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5554. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5555. msm_routing_put_audio_mixer),
  5556. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5557. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5558. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5559. msm_routing_put_audio_mixer),
  5560. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5561. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5562. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5563. msm_routing_put_audio_mixer),
  5564. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5565. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5566. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5567. msm_routing_put_audio_mixer),
  5568. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5569. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5570. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5571. msm_routing_put_audio_mixer),
  5572. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5573. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5574. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5575. msm_routing_put_audio_mixer),
  5576. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5577. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5578. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5579. msm_routing_put_audio_mixer),
  5580. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5581. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5582. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5583. msm_routing_put_audio_mixer),
  5584. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5585. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5586. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5587. msm_routing_put_audio_mixer),
  5588. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5589. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5590. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5591. msm_routing_put_audio_mixer),
  5592. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5593. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5594. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5595. msm_routing_put_audio_mixer),
  5596. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5597. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5598. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5599. msm_routing_put_audio_mixer),
  5600. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5601. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5602. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5603. msm_routing_put_audio_mixer),
  5604. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5605. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5606. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5607. msm_routing_put_audio_mixer),
  5608. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5609. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5610. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5611. msm_routing_put_audio_mixer),
  5612. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5613. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5614. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5615. msm_routing_put_audio_mixer),
  5616. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5617. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5618. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5619. msm_routing_put_audio_mixer),
  5620. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5621. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5622. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5623. msm_routing_put_audio_mixer),
  5624. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5625. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5626. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5627. msm_routing_put_audio_mixer),
  5628. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5629. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5630. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5631. msm_routing_put_audio_mixer),
  5632. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5633. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5634. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5635. msm_routing_put_audio_mixer),
  5636. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5637. MSM_BACKEND_DAI_SEC_SPDIF_RX,
  5638. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5639. msm_routing_put_audio_mixer),
  5640. };
  5641. static const struct snd_kcontrol_new slimbus_2_rx_mixer_controls[] = {
  5642. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5643. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5644. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5645. msm_routing_put_audio_mixer),
  5646. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5647. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5648. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5649. msm_routing_put_audio_mixer),
  5650. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5651. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5652. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5653. msm_routing_put_audio_mixer),
  5654. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5655. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5656. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5657. msm_routing_put_audio_mixer),
  5658. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5659. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5660. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5661. msm_routing_put_audio_mixer),
  5662. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5663. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5664. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5665. msm_routing_put_audio_mixer),
  5666. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5667. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5668. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5669. msm_routing_put_audio_mixer),
  5670. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5671. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5672. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5673. msm_routing_put_audio_mixer),
  5674. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5675. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5676. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5677. msm_routing_put_audio_mixer),
  5678. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5679. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5680. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5681. msm_routing_put_audio_mixer),
  5682. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5683. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5684. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5685. msm_routing_put_audio_mixer),
  5686. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5687. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5688. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5689. msm_routing_put_audio_mixer),
  5690. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5691. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5692. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5693. msm_routing_put_audio_mixer),
  5694. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5695. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5696. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5697. msm_routing_put_audio_mixer),
  5698. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5699. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5700. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5701. msm_routing_put_audio_mixer),
  5702. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5703. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5704. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5705. msm_routing_put_audio_mixer),
  5706. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5707. MSM_BACKEND_DAI_SLIMBUS_2_RX,
  5708. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5709. msm_routing_put_audio_mixer),
  5710. };
  5711. static const struct snd_kcontrol_new slimbus_5_rx_mixer_controls[] = {
  5712. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5713. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5714. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5715. msm_routing_put_audio_mixer),
  5716. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5717. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5718. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5719. msm_routing_put_audio_mixer),
  5720. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5721. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5722. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5723. msm_routing_put_audio_mixer),
  5724. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5725. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5726. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5727. msm_routing_put_audio_mixer),
  5728. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5729. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5730. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5731. msm_routing_put_audio_mixer),
  5732. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5733. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5734. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5735. msm_routing_put_audio_mixer),
  5736. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5737. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5738. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5739. msm_routing_put_audio_mixer),
  5740. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5741. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5742. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5743. msm_routing_put_audio_mixer),
  5744. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5745. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5746. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5747. msm_routing_put_audio_mixer),
  5748. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5749. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5750. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5751. msm_routing_put_audio_mixer),
  5752. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5753. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5754. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5755. msm_routing_put_audio_mixer),
  5756. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5757. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5758. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5759. msm_routing_put_audio_mixer),
  5760. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5761. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5762. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5763. msm_routing_put_audio_mixer),
  5764. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5765. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5766. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5767. msm_routing_put_audio_mixer),
  5768. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5769. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5770. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5771. msm_routing_put_audio_mixer),
  5772. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5773. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5774. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5775. msm_routing_put_audio_mixer),
  5776. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5777. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5778. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5779. msm_routing_put_audio_mixer),
  5780. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5781. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5782. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5783. msm_routing_put_audio_mixer),
  5784. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5785. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5786. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5787. msm_routing_put_audio_mixer),
  5788. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5789. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5790. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5791. msm_routing_put_audio_mixer),
  5792. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5793. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5794. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5795. msm_routing_put_audio_mixer),
  5796. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5797. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5798. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5799. msm_routing_put_audio_mixer),
  5800. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5801. MSM_BACKEND_DAI_SLIMBUS_5_RX,
  5802. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5803. msm_routing_put_audio_mixer),
  5804. };
  5805. static const struct snd_kcontrol_new slimbus_rx_mixer_controls[] = {
  5806. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5807. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5808. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5809. msm_routing_put_audio_mixer),
  5810. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5811. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5812. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5813. msm_routing_put_audio_mixer),
  5814. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5815. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5816. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5817. msm_routing_put_audio_mixer),
  5818. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5819. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5820. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5821. msm_routing_put_audio_mixer),
  5822. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5823. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5824. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5825. msm_routing_put_audio_mixer),
  5826. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5827. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5828. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5829. msm_routing_put_audio_mixer),
  5830. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5831. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5832. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5833. msm_routing_put_audio_mixer),
  5834. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5835. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5836. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5837. msm_routing_put_audio_mixer),
  5838. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5839. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5840. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5841. msm_routing_put_audio_mixer),
  5842. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5843. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5844. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5845. msm_routing_put_audio_mixer),
  5846. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5847. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5848. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5849. msm_routing_put_audio_mixer),
  5850. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5851. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5852. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5853. msm_routing_put_audio_mixer),
  5854. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5855. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5856. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5857. msm_routing_put_audio_mixer),
  5858. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5859. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5860. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5861. msm_routing_put_audio_mixer),
  5862. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5863. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5864. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5865. msm_routing_put_audio_mixer),
  5866. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5867. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5868. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5869. msm_routing_put_audio_mixer),
  5870. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5871. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5872. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5873. msm_routing_put_audio_mixer),
  5874. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5875. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5876. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5877. msm_routing_put_audio_mixer),
  5878. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5879. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5880. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5881. msm_routing_put_audio_mixer),
  5882. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5883. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5884. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5885. msm_routing_put_audio_mixer),
  5886. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5887. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5888. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5889. msm_routing_put_audio_mixer),
  5890. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5891. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5892. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5893. msm_routing_put_audio_mixer),
  5894. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5895. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  5896. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5897. msm_routing_put_audio_mixer),
  5898. };
  5899. static const struct snd_kcontrol_new mi2s_rx_mixer_controls[] = {
  5900. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5901. MSM_BACKEND_DAI_MI2S_RX,
  5902. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5903. msm_routing_put_audio_mixer),
  5904. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5905. MSM_BACKEND_DAI_MI2S_RX,
  5906. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  5907. msm_routing_put_audio_mixer),
  5908. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  5909. MSM_BACKEND_DAI_MI2S_RX,
  5910. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  5911. msm_routing_put_audio_mixer),
  5912. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  5913. MSM_BACKEND_DAI_MI2S_RX,
  5914. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  5915. msm_routing_put_audio_mixer),
  5916. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  5917. MSM_BACKEND_DAI_MI2S_RX,
  5918. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  5919. msm_routing_put_audio_mixer),
  5920. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  5921. MSM_BACKEND_DAI_MI2S_RX,
  5922. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  5923. msm_routing_put_audio_mixer),
  5924. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  5925. MSM_BACKEND_DAI_MI2S_RX,
  5926. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  5927. msm_routing_put_audio_mixer),
  5928. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  5929. MSM_BACKEND_DAI_MI2S_RX,
  5930. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  5931. msm_routing_put_audio_mixer),
  5932. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  5933. MSM_BACKEND_DAI_MI2S_RX,
  5934. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  5935. msm_routing_put_audio_mixer),
  5936. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  5937. MSM_BACKEND_DAI_MI2S_RX,
  5938. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  5939. msm_routing_put_audio_mixer),
  5940. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  5941. MSM_BACKEND_DAI_MI2S_RX,
  5942. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  5943. msm_routing_put_audio_mixer),
  5944. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  5945. MSM_BACKEND_DAI_MI2S_RX,
  5946. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  5947. msm_routing_put_audio_mixer),
  5948. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  5949. MSM_BACKEND_DAI_MI2S_RX,
  5950. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  5951. msm_routing_put_audio_mixer),
  5952. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  5953. MSM_BACKEND_DAI_MI2S_RX,
  5954. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  5955. msm_routing_put_audio_mixer),
  5956. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  5957. MSM_BACKEND_DAI_MI2S_RX,
  5958. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  5959. msm_routing_put_audio_mixer),
  5960. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  5961. MSM_BACKEND_DAI_MI2S_RX,
  5962. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  5963. msm_routing_put_audio_mixer),
  5964. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  5965. MSM_BACKEND_DAI_MI2S_RX,
  5966. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  5967. msm_routing_put_audio_mixer),
  5968. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  5969. MSM_BACKEND_DAI_MI2S_RX,
  5970. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  5971. msm_routing_put_audio_mixer),
  5972. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  5973. MSM_BACKEND_DAI_MI2S_RX,
  5974. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  5975. msm_routing_put_audio_mixer),
  5976. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  5977. MSM_BACKEND_DAI_MI2S_RX,
  5978. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  5979. msm_routing_put_audio_mixer),
  5980. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  5981. MSM_BACKEND_DAI_MI2S_RX,
  5982. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  5983. msm_routing_put_audio_mixer),
  5984. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  5985. MSM_BACKEND_DAI_MI2S_RX,
  5986. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  5987. msm_routing_put_audio_mixer),
  5988. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  5989. MSM_BACKEND_DAI_MI2S_RX,
  5990. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  5991. msm_routing_put_audio_mixer),
  5992. };
  5993. static const struct snd_kcontrol_new quaternary_mi2s_rx_mixer_controls[] = {
  5994. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  5995. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  5996. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  5997. msm_routing_put_audio_mixer),
  5998. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  5999. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6000. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6001. msm_routing_put_audio_mixer),
  6002. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6003. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6004. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6005. msm_routing_put_audio_mixer),
  6006. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6007. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6008. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6009. msm_routing_put_audio_mixer),
  6010. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6011. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6012. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6013. msm_routing_put_audio_mixer),
  6014. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6015. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6016. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6017. msm_routing_put_audio_mixer),
  6018. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6019. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6020. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6021. msm_routing_put_audio_mixer),
  6022. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6023. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6024. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6025. msm_routing_put_audio_mixer),
  6026. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6027. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6028. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6029. msm_routing_put_audio_mixer),
  6030. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6031. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6032. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6033. msm_routing_put_audio_mixer),
  6034. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6035. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6036. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6037. msm_routing_put_audio_mixer),
  6038. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6039. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6040. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6041. msm_routing_put_audio_mixer),
  6042. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6043. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6044. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6045. msm_routing_put_audio_mixer),
  6046. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6047. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6048. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6049. msm_routing_put_audio_mixer),
  6050. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6051. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6052. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6053. msm_routing_put_audio_mixer),
  6054. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6055. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6056. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6057. msm_routing_put_audio_mixer),
  6058. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6059. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6060. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6061. msm_routing_put_audio_mixer),
  6062. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6063. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6064. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6065. msm_routing_put_audio_mixer),
  6066. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6067. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6068. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6069. msm_routing_put_audio_mixer),
  6070. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6071. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6072. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6073. msm_routing_put_audio_mixer),
  6074. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6075. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6076. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6077. msm_routing_put_audio_mixer),
  6078. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6079. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6080. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6081. msm_routing_put_audio_mixer),
  6082. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6083. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  6084. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6085. msm_routing_put_audio_mixer),
  6086. };
  6087. static const struct snd_kcontrol_new quinary_mi2s_rx_mixer_controls[] = {
  6088. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6089. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6090. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6091. msm_routing_put_audio_mixer),
  6092. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6093. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6094. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6095. msm_routing_put_audio_mixer),
  6096. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6097. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6098. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6099. msm_routing_put_audio_mixer),
  6100. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6101. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6102. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6103. msm_routing_put_audio_mixer),
  6104. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6105. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6106. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6107. msm_routing_put_audio_mixer),
  6108. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6109. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6110. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6111. msm_routing_put_audio_mixer),
  6112. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6113. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6114. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6115. msm_routing_put_audio_mixer),
  6116. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6117. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6118. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6119. msm_routing_put_audio_mixer),
  6120. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6121. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6122. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6123. msm_routing_put_audio_mixer),
  6124. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6125. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6126. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6127. msm_routing_put_audio_mixer),
  6128. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6129. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6130. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6131. msm_routing_put_audio_mixer),
  6132. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6133. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6134. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6135. msm_routing_put_audio_mixer),
  6136. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6137. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6138. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6139. msm_routing_put_audio_mixer),
  6140. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6141. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6142. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6143. msm_routing_put_audio_mixer),
  6144. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6145. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6146. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6147. msm_routing_put_audio_mixer),
  6148. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6149. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6150. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6151. msm_routing_put_audio_mixer),
  6152. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6153. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6154. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6155. msm_routing_put_audio_mixer),
  6156. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6157. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6158. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6159. msm_routing_put_audio_mixer),
  6160. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6161. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6162. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6163. msm_routing_put_audio_mixer),
  6164. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6165. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6166. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6167. msm_routing_put_audio_mixer),
  6168. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6169. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6170. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6171. msm_routing_put_audio_mixer),
  6172. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6173. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6174. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6175. msm_routing_put_audio_mixer),
  6176. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6177. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  6178. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6179. msm_routing_put_audio_mixer),
  6180. };
  6181. static const struct snd_kcontrol_new senary_mi2s_rx_mixer_controls[] = {
  6182. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6183. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6184. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6185. msm_routing_put_audio_mixer),
  6186. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6187. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6188. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6189. msm_routing_put_audio_mixer),
  6190. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6191. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6192. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6193. msm_routing_put_audio_mixer),
  6194. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6195. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6196. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6197. msm_routing_put_audio_mixer),
  6198. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6199. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6200. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6201. msm_routing_put_audio_mixer),
  6202. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6203. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6204. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6205. msm_routing_put_audio_mixer),
  6206. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6207. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6208. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6209. msm_routing_put_audio_mixer),
  6210. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6211. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6212. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6213. msm_routing_put_audio_mixer),
  6214. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6215. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6216. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6217. msm_routing_put_audio_mixer),
  6218. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6219. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6220. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6221. msm_routing_put_audio_mixer),
  6222. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6223. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6224. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6225. msm_routing_put_audio_mixer),
  6226. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6227. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6228. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6229. msm_routing_put_audio_mixer),
  6230. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6231. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6232. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6233. msm_routing_put_audio_mixer),
  6234. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6235. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6236. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6237. msm_routing_put_audio_mixer),
  6238. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6239. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6240. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6241. msm_routing_put_audio_mixer),
  6242. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6243. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6244. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6245. msm_routing_put_audio_mixer),
  6246. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6247. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6248. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6249. msm_routing_put_audio_mixer),
  6250. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6251. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6252. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6253. msm_routing_put_audio_mixer),
  6254. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6255. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6256. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6257. msm_routing_put_audio_mixer),
  6258. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6259. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6260. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6261. msm_routing_put_audio_mixer),
  6262. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6263. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6264. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6265. msm_routing_put_audio_mixer),
  6266. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6267. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  6268. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6269. msm_routing_put_audio_mixer),
  6270. };
  6271. static const struct snd_kcontrol_new tertiary_mi2s_rx_mixer_controls[] = {
  6272. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6273. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6274. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6275. msm_routing_put_audio_mixer),
  6276. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6277. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6278. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6279. msm_routing_put_audio_mixer),
  6280. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6281. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6282. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6283. msm_routing_put_audio_mixer),
  6284. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6285. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6286. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6287. msm_routing_put_audio_mixer),
  6288. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6289. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6290. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6291. msm_routing_put_audio_mixer),
  6292. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6293. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6294. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6295. msm_routing_put_audio_mixer),
  6296. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6297. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6298. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6299. msm_routing_put_audio_mixer),
  6300. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6301. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6302. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6303. msm_routing_put_audio_mixer),
  6304. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6305. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6306. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6307. msm_routing_put_audio_mixer),
  6308. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6309. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6310. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6311. msm_routing_put_audio_mixer),
  6312. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6313. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6314. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6315. msm_routing_put_audio_mixer),
  6316. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6317. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6318. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6319. msm_routing_put_audio_mixer),
  6320. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6321. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6322. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6323. msm_routing_put_audio_mixer),
  6324. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6325. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6326. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6327. msm_routing_put_audio_mixer),
  6328. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6329. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6330. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6331. msm_routing_put_audio_mixer),
  6332. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6333. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6334. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6335. msm_routing_put_audio_mixer),
  6336. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6337. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6338. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6339. msm_routing_put_audio_mixer),
  6340. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6341. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6342. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6343. msm_routing_put_audio_mixer),
  6344. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6345. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6346. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6347. msm_routing_put_audio_mixer),
  6348. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6349. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6350. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6351. msm_routing_put_audio_mixer),
  6352. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6353. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  6354. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6355. msm_routing_put_audio_mixer),
  6356. };
  6357. static const struct snd_kcontrol_new secondary_mi2s_rx2_mixer_controls[] = {
  6358. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6359. MSM_BACKEND_DAI_SECONDARY_MI2S_RX_SD1,
  6360. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6361. msm_routing_put_audio_mixer),
  6362. };
  6363. static const struct snd_kcontrol_new secondary_mi2s_rx_mixer_controls[] = {
  6364. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6365. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6366. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6367. msm_routing_put_audio_mixer),
  6368. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6369. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6370. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6371. msm_routing_put_audio_mixer),
  6372. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6373. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6374. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6375. msm_routing_put_audio_mixer),
  6376. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6377. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6378. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6379. msm_routing_put_audio_mixer),
  6380. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6381. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6382. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6383. msm_routing_put_audio_mixer),
  6384. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6385. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6386. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6387. msm_routing_put_audio_mixer),
  6388. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6389. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6390. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6391. msm_routing_put_audio_mixer),
  6392. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6393. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6394. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6395. msm_routing_put_audio_mixer),
  6396. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6397. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6398. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6399. msm_routing_put_audio_mixer),
  6400. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6401. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6402. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6403. msm_routing_put_audio_mixer),
  6404. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6405. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6406. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6407. msm_routing_put_audio_mixer),
  6408. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6409. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6410. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6411. msm_routing_put_audio_mixer),
  6412. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6413. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6414. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6415. msm_routing_put_audio_mixer),
  6416. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6417. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6418. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6419. msm_routing_put_audio_mixer),
  6420. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6421. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6422. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6423. msm_routing_put_audio_mixer),
  6424. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6425. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6426. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6427. msm_routing_put_audio_mixer),
  6428. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6429. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6430. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6431. msm_routing_put_audio_mixer),
  6432. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6433. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6434. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6435. msm_routing_put_audio_mixer),
  6436. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6437. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6438. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6439. msm_routing_put_audio_mixer),
  6440. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6441. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6442. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6443. msm_routing_put_audio_mixer),
  6444. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6445. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6446. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6447. msm_routing_put_audio_mixer),
  6448. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6449. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6450. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6451. msm_routing_put_audio_mixer),
  6452. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6453. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  6454. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6455. msm_routing_put_audio_mixer),
  6456. };
  6457. static const struct snd_kcontrol_new primary_mi2s_rx_mixer_controls[] = {
  6458. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6459. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6460. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6461. msm_routing_put_audio_mixer),
  6462. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6463. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6464. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6465. msm_routing_put_audio_mixer),
  6466. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6467. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6468. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6469. msm_routing_put_audio_mixer),
  6470. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6471. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6472. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6473. msm_routing_put_audio_mixer),
  6474. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6475. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6476. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6477. msm_routing_put_audio_mixer),
  6478. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6479. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6480. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6481. msm_routing_put_audio_mixer),
  6482. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6483. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6484. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6485. msm_routing_put_audio_mixer),
  6486. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6487. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6488. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6489. msm_routing_put_audio_mixer),
  6490. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6491. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6492. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6493. msm_routing_put_audio_mixer),
  6494. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6495. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6496. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6497. msm_routing_put_audio_mixer),
  6498. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6499. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6500. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6501. msm_routing_put_audio_mixer),
  6502. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6503. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6504. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6505. msm_routing_put_audio_mixer),
  6506. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6507. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6508. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6509. msm_routing_put_audio_mixer),
  6510. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6511. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6512. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6513. msm_routing_put_audio_mixer),
  6514. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6515. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6516. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6517. msm_routing_put_audio_mixer),
  6518. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6519. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6520. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6521. msm_routing_put_audio_mixer),
  6522. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6523. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6524. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6525. msm_routing_put_audio_mixer),
  6526. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6527. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6528. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6529. msm_routing_put_audio_mixer),
  6530. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6531. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6532. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6533. msm_routing_put_audio_mixer),
  6534. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6535. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6536. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6537. msm_routing_put_audio_mixer),
  6538. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6539. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6540. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6541. msm_routing_put_audio_mixer),
  6542. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6543. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6544. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6545. msm_routing_put_audio_mixer),
  6546. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6547. MSM_BACKEND_DAI_PRI_MI2S_RX,
  6548. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6549. msm_routing_put_audio_mixer),
  6550. };
  6551. static const struct snd_kcontrol_new int0_mi2s_rx_mixer_controls[] = {
  6552. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6553. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6554. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6555. msm_routing_put_audio_mixer),
  6556. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6557. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6558. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6559. msm_routing_put_audio_mixer),
  6560. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6561. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6562. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6563. msm_routing_put_audio_mixer),
  6564. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6565. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6566. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6567. msm_routing_put_audio_mixer),
  6568. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6569. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6570. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6571. msm_routing_put_audio_mixer),
  6572. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6573. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6574. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6575. msm_routing_put_audio_mixer),
  6576. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6577. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6578. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6579. msm_routing_put_audio_mixer),
  6580. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6581. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6582. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6583. msm_routing_put_audio_mixer),
  6584. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6585. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6586. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6587. msm_routing_put_audio_mixer),
  6588. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6589. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6590. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6591. msm_routing_put_audio_mixer),
  6592. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6593. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6594. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6595. msm_routing_put_audio_mixer),
  6596. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6597. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6598. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6599. msm_routing_put_audio_mixer),
  6600. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6601. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6602. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6603. msm_routing_put_audio_mixer),
  6604. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6605. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6606. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6607. msm_routing_put_audio_mixer),
  6608. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6609. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6610. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6611. msm_routing_put_audio_mixer),
  6612. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6613. MSM_BACKEND_DAI_INT0_MI2S_RX,
  6614. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6615. msm_routing_put_audio_mixer),
  6616. };
  6617. static const struct snd_kcontrol_new int4_mi2s_rx_mixer_controls[] = {
  6618. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6619. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6620. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6621. msm_routing_put_audio_mixer),
  6622. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6623. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6624. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6625. msm_routing_put_audio_mixer),
  6626. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6627. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6628. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6629. msm_routing_put_audio_mixer),
  6630. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6631. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6632. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6633. msm_routing_put_audio_mixer),
  6634. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6635. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6636. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6637. msm_routing_put_audio_mixer),
  6638. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6639. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6640. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6641. msm_routing_put_audio_mixer),
  6642. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6643. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6644. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6645. msm_routing_put_audio_mixer),
  6646. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6647. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6648. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6649. msm_routing_put_audio_mixer),
  6650. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6651. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6652. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6653. msm_routing_put_audio_mixer),
  6654. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6655. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6656. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6657. msm_routing_put_audio_mixer),
  6658. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6659. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6660. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6661. msm_routing_put_audio_mixer),
  6662. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6663. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6664. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6665. msm_routing_put_audio_mixer),
  6666. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6667. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6668. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6669. msm_routing_put_audio_mixer),
  6670. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6671. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6672. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6673. msm_routing_put_audio_mixer),
  6674. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6675. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6676. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6677. msm_routing_put_audio_mixer),
  6678. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6679. MSM_BACKEND_DAI_INT4_MI2S_RX,
  6680. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6681. msm_routing_put_audio_mixer),
  6682. };
  6683. static const struct snd_kcontrol_new pri_meta_mi2s_rx_mixer_controls[] = {
  6684. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6685. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6686. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6687. msm_routing_put_audio_mixer),
  6688. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6689. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6690. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6691. msm_routing_put_audio_mixer),
  6692. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6693. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6694. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6695. msm_routing_put_audio_mixer),
  6696. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6697. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6698. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6699. msm_routing_put_audio_mixer),
  6700. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6701. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6702. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6703. msm_routing_put_audio_mixer),
  6704. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6705. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6706. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6707. msm_routing_put_audio_mixer),
  6708. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6709. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6710. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6711. msm_routing_put_audio_mixer),
  6712. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6713. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6714. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6715. msm_routing_put_audio_mixer),
  6716. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6717. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6718. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6719. msm_routing_put_audio_mixer),
  6720. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6721. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6722. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6723. msm_routing_put_audio_mixer),
  6724. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6725. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6726. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6727. msm_routing_put_audio_mixer),
  6728. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6729. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6730. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6731. msm_routing_put_audio_mixer),
  6732. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6733. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6734. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6735. msm_routing_put_audio_mixer),
  6736. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6737. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6738. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6739. msm_routing_put_audio_mixer),
  6740. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6741. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6742. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6743. msm_routing_put_audio_mixer),
  6744. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6745. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6746. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6747. msm_routing_put_audio_mixer),
  6748. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6749. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6750. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6751. msm_routing_put_audio_mixer),
  6752. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6753. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6754. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6755. msm_routing_put_audio_mixer),
  6756. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6757. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6758. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6759. msm_routing_put_audio_mixer),
  6760. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6761. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6762. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6763. msm_routing_put_audio_mixer),
  6764. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6765. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6766. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6767. msm_routing_put_audio_mixer),
  6768. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6769. MSM_BACKEND_DAI_PRI_META_MI2S_RX,
  6770. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6771. msm_routing_put_audio_mixer),
  6772. };
  6773. static const struct snd_kcontrol_new sec_meta_mi2s_rx_mixer_controls[] = {
  6774. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6775. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6776. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6777. msm_routing_put_audio_mixer),
  6778. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6779. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6780. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6781. msm_routing_put_audio_mixer),
  6782. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6783. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6784. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6785. msm_routing_put_audio_mixer),
  6786. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6787. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6788. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6789. msm_routing_put_audio_mixer),
  6790. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6791. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6792. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6793. msm_routing_put_audio_mixer),
  6794. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6795. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6796. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6797. msm_routing_put_audio_mixer),
  6798. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6799. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6800. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6801. msm_routing_put_audio_mixer),
  6802. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6803. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6804. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6805. msm_routing_put_audio_mixer),
  6806. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6807. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6808. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6809. msm_routing_put_audio_mixer),
  6810. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6811. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6812. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6813. msm_routing_put_audio_mixer),
  6814. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6815. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6816. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6817. msm_routing_put_audio_mixer),
  6818. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6819. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6820. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6821. msm_routing_put_audio_mixer),
  6822. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6823. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6824. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6825. msm_routing_put_audio_mixer),
  6826. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6827. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6828. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6829. msm_routing_put_audio_mixer),
  6830. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6831. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6832. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6833. msm_routing_put_audio_mixer),
  6834. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6835. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6836. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6837. msm_routing_put_audio_mixer),
  6838. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6839. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6840. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6841. msm_routing_put_audio_mixer),
  6842. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6843. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6844. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6845. msm_routing_put_audio_mixer),
  6846. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6847. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6848. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6849. msm_routing_put_audio_mixer),
  6850. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6851. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6852. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6853. msm_routing_put_audio_mixer),
  6854. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6855. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6856. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6857. msm_routing_put_audio_mixer),
  6858. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6859. MSM_BACKEND_DAI_SEC_META_MI2S_RX,
  6860. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6861. msm_routing_put_audio_mixer),
  6862. };
  6863. static const struct snd_kcontrol_new hdmi_mixer_controls[] = {
  6864. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6865. MSM_BACKEND_DAI_HDMI_RX,
  6866. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6867. msm_routing_put_audio_mixer),
  6868. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6869. MSM_BACKEND_DAI_HDMI_RX,
  6870. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6871. msm_routing_put_audio_mixer),
  6872. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6873. MSM_BACKEND_DAI_HDMI_RX,
  6874. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6875. msm_routing_put_audio_mixer),
  6876. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6877. MSM_BACKEND_DAI_HDMI_RX,
  6878. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6879. msm_routing_put_audio_mixer),
  6880. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6881. MSM_BACKEND_DAI_HDMI_RX,
  6882. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6883. msm_routing_put_audio_mixer),
  6884. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6885. MSM_BACKEND_DAI_HDMI_RX,
  6886. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6887. msm_routing_put_audio_mixer),
  6888. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6889. MSM_BACKEND_DAI_HDMI_RX,
  6890. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6891. msm_routing_put_audio_mixer),
  6892. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6893. MSM_BACKEND_DAI_HDMI_RX,
  6894. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6895. msm_routing_put_audio_mixer),
  6896. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6897. MSM_BACKEND_DAI_HDMI_RX,
  6898. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6899. msm_routing_put_audio_mixer),
  6900. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6901. MSM_BACKEND_DAI_HDMI_RX,
  6902. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6903. msm_routing_put_audio_mixer),
  6904. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6905. MSM_BACKEND_DAI_HDMI_RX,
  6906. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  6907. msm_routing_put_audio_mixer),
  6908. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  6909. MSM_BACKEND_DAI_HDMI_RX,
  6910. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  6911. msm_routing_put_audio_mixer),
  6912. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  6913. MSM_BACKEND_DAI_HDMI_RX,
  6914. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  6915. msm_routing_put_audio_mixer),
  6916. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  6917. MSM_BACKEND_DAI_HDMI_RX,
  6918. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  6919. msm_routing_put_audio_mixer),
  6920. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  6921. MSM_BACKEND_DAI_HDMI_RX,
  6922. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  6923. msm_routing_put_audio_mixer),
  6924. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  6925. MSM_BACKEND_DAI_HDMI_RX,
  6926. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  6927. msm_routing_put_audio_mixer),
  6928. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  6929. MSM_BACKEND_DAI_HDMI_RX,
  6930. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  6931. msm_routing_put_audio_mixer),
  6932. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  6933. MSM_BACKEND_DAI_HDMI_RX,
  6934. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  6935. msm_routing_put_audio_mixer),
  6936. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  6937. MSM_BACKEND_DAI_HDMI_RX,
  6938. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  6939. msm_routing_put_audio_mixer),
  6940. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  6941. MSM_BACKEND_DAI_HDMI_RX,
  6942. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  6943. msm_routing_put_audio_mixer),
  6944. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  6945. MSM_BACKEND_DAI_HDMI_RX,
  6946. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  6947. msm_routing_put_audio_mixer),
  6948. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  6949. MSM_BACKEND_DAI_HDMI_RX,
  6950. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  6951. msm_routing_put_audio_mixer),
  6952. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  6953. MSM_BACKEND_DAI_HDMI_RX,
  6954. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  6955. msm_routing_put_audio_mixer),
  6956. };
  6957. static const struct snd_kcontrol_new display_port_mixer_controls[] = {
  6958. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  6959. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6960. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  6961. msm_routing_put_audio_mixer),
  6962. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  6963. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6964. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  6965. msm_routing_put_audio_mixer),
  6966. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  6967. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6968. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  6969. msm_routing_put_audio_mixer),
  6970. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  6971. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6972. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  6973. msm_routing_put_audio_mixer),
  6974. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  6975. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6976. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  6977. msm_routing_put_audio_mixer),
  6978. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  6979. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6980. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  6981. msm_routing_put_audio_mixer),
  6982. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  6983. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6984. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  6985. msm_routing_put_audio_mixer),
  6986. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  6987. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6988. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  6989. msm_routing_put_audio_mixer),
  6990. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  6991. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6992. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  6993. msm_routing_put_audio_mixer),
  6994. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  6995. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  6996. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  6997. msm_routing_put_audio_mixer),
  6998. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  6999. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7000. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7001. msm_routing_put_audio_mixer),
  7002. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7003. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7004. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7005. msm_routing_put_audio_mixer),
  7006. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7007. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7008. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7009. msm_routing_put_audio_mixer),
  7010. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7011. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7012. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7013. msm_routing_put_audio_mixer),
  7014. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7015. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7016. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7017. msm_routing_put_audio_mixer),
  7018. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7019. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7020. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7021. msm_routing_put_audio_mixer),
  7022. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7023. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  7024. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7025. msm_routing_put_audio_mixer),
  7026. };
  7027. static const struct snd_kcontrol_new display_port1_mixer_controls[] = {
  7028. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7029. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7030. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7031. msm_routing_put_audio_mixer),
  7032. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7033. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7034. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7035. msm_routing_put_audio_mixer),
  7036. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7037. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7038. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7039. msm_routing_put_audio_mixer),
  7040. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7041. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7042. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7043. msm_routing_put_audio_mixer),
  7044. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7045. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7046. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7047. msm_routing_put_audio_mixer),
  7048. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7049. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7050. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7051. msm_routing_put_audio_mixer),
  7052. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7053. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7054. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7055. msm_routing_put_audio_mixer),
  7056. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7057. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7058. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7059. msm_routing_put_audio_mixer),
  7060. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7061. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7062. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7063. msm_routing_put_audio_mixer),
  7064. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7065. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7066. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7067. msm_routing_put_audio_mixer),
  7068. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7069. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7070. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7071. msm_routing_put_audio_mixer),
  7072. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7073. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7074. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7075. msm_routing_put_audio_mixer),
  7076. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7077. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7078. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7079. msm_routing_put_audio_mixer),
  7080. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7081. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7082. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7083. msm_routing_put_audio_mixer),
  7084. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7085. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7086. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7087. msm_routing_put_audio_mixer),
  7088. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7089. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7090. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7091. msm_routing_put_audio_mixer),
  7092. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7093. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  7094. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7095. msm_routing_put_audio_mixer),
  7096. };
  7097. /* incall music delivery mixer */
  7098. static const struct snd_kcontrol_new incall_music_delivery_mixer_controls[] = {
  7099. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7100. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7101. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7102. msm_routing_put_audio_mixer),
  7103. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7104. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7105. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7106. msm_routing_put_audio_mixer),
  7107. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7108. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7109. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7110. msm_routing_put_audio_mixer),
  7111. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7112. MSM_BACKEND_DAI_VOICE_PLAYBACK_TX,
  7113. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7114. msm_routing_put_audio_mixer),
  7115. };
  7116. static const struct snd_kcontrol_new incall_music2_delivery_mixer_controls[] = {
  7117. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7118. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7119. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7120. msm_routing_put_audio_mixer),
  7121. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7122. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7123. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7124. msm_routing_put_audio_mixer),
  7125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7126. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7128. msm_routing_put_audio_mixer),
  7129. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7130. MSM_BACKEND_DAI_VOICE2_PLAYBACK_TX,
  7131. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7132. msm_routing_put_audio_mixer),
  7133. };
  7134. static const struct snd_kcontrol_new slimbus_4_rx_mixer_controls[] = {
  7135. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7136. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7137. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7138. msm_routing_put_audio_mixer),
  7139. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7140. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7141. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7142. msm_routing_put_audio_mixer),
  7143. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7144. MSM_BACKEND_DAI_SLIMBUS_4_RX,
  7145. MSM_FRONTEND_DAI_MULTIMEDIA5, 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_SLIMBUS_4_RX,
  7149. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7150. msm_routing_put_audio_mixer),
  7151. };
  7152. static const struct snd_kcontrol_new slimbus_6_rx_mixer_controls[] = {
  7153. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7154. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7155. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7156. msm_routing_put_audio_mixer),
  7157. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7158. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7159. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7160. msm_routing_put_audio_mixer),
  7161. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7162. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7163. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7164. msm_routing_put_audio_mixer),
  7165. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7166. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7167. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7168. msm_routing_put_audio_mixer),
  7169. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7170. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7171. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7172. msm_routing_put_audio_mixer),
  7173. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7174. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7175. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7176. msm_routing_put_audio_mixer),
  7177. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7178. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7179. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7180. msm_routing_put_audio_mixer),
  7181. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7182. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7183. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7184. msm_routing_put_audio_mixer),
  7185. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7186. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7187. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7188. msm_routing_put_audio_mixer),
  7189. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7190. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7191. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7192. msm_routing_put_audio_mixer),
  7193. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7194. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7195. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7196. msm_routing_put_audio_mixer),
  7197. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7198. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7199. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7200. msm_routing_put_audio_mixer),
  7201. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7202. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7203. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7204. msm_routing_put_audio_mixer),
  7205. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7206. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7207. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7208. msm_routing_put_audio_mixer),
  7209. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7210. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7211. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7212. msm_routing_put_audio_mixer),
  7213. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7214. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7215. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7216. msm_routing_put_audio_mixer),
  7217. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7218. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  7219. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7220. msm_routing_put_audio_mixer),
  7221. };
  7222. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_mixer_controls[] = {
  7223. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7224. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7225. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7226. msm_routing_put_audio_mixer),
  7227. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7228. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7229. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7230. msm_routing_put_audio_mixer),
  7231. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7232. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7233. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7234. msm_routing_put_audio_mixer),
  7235. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7236. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7237. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7238. msm_routing_put_audio_mixer),
  7239. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7240. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7241. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7242. msm_routing_put_audio_mixer),
  7243. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7244. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7245. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7246. msm_routing_put_audio_mixer),
  7247. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7248. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7249. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7250. msm_routing_put_audio_mixer),
  7251. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7252. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7253. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7254. msm_routing_put_audio_mixer),
  7255. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7256. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7257. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7258. msm_routing_put_audio_mixer),
  7259. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7260. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7261. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7262. msm_routing_put_audio_mixer),
  7263. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7264. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7265. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7266. msm_routing_put_audio_mixer),
  7267. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7268. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7269. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7270. msm_routing_put_audio_mixer),
  7271. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7272. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7273. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7274. msm_routing_put_audio_mixer),
  7275. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7276. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7277. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7278. msm_routing_put_audio_mixer),
  7279. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7280. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7281. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7282. msm_routing_put_audio_mixer),
  7283. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7284. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7285. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7286. msm_routing_put_audio_mixer),
  7287. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7288. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  7289. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7290. msm_routing_put_audio_mixer),
  7291. };
  7292. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_mixer_controls[] = {
  7293. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7294. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7295. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7296. msm_routing_put_audio_mixer),
  7297. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7298. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7299. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7300. msm_routing_put_audio_mixer),
  7301. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7302. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7303. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7304. msm_routing_put_audio_mixer),
  7305. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7306. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7307. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7308. msm_routing_put_audio_mixer),
  7309. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7310. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7311. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7312. msm_routing_put_audio_mixer),
  7313. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7314. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7315. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7316. msm_routing_put_audio_mixer),
  7317. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7318. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7319. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7320. msm_routing_put_audio_mixer),
  7321. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7322. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7323. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7324. msm_routing_put_audio_mixer),
  7325. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7326. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7327. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7328. msm_routing_put_audio_mixer),
  7329. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7330. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7331. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7332. msm_routing_put_audio_mixer),
  7333. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7334. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7335. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7336. msm_routing_put_audio_mixer),
  7337. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7338. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7339. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7340. msm_routing_put_audio_mixer),
  7341. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7342. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7343. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7344. msm_routing_put_audio_mixer),
  7345. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7346. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7347. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7348. msm_routing_put_audio_mixer),
  7349. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7350. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7351. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7352. msm_routing_put_audio_mixer),
  7353. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7354. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7355. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7356. msm_routing_put_audio_mixer),
  7357. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7358. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  7359. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7360. msm_routing_put_audio_mixer),
  7361. };
  7362. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_mixer_controls[] = {
  7363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7364. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7366. msm_routing_put_audio_mixer),
  7367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7368. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7370. msm_routing_put_audio_mixer),
  7371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7372. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7374. msm_routing_put_audio_mixer),
  7375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7376. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7378. msm_routing_put_audio_mixer),
  7379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7380. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7382. msm_routing_put_audio_mixer),
  7383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7384. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7386. msm_routing_put_audio_mixer),
  7387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7388. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7390. msm_routing_put_audio_mixer),
  7391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7392. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7394. msm_routing_put_audio_mixer),
  7395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7396. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7398. msm_routing_put_audio_mixer),
  7399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7400. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7402. msm_routing_put_audio_mixer),
  7403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7404. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7406. msm_routing_put_audio_mixer),
  7407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7408. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7410. msm_routing_put_audio_mixer),
  7411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7412. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7414. msm_routing_put_audio_mixer),
  7415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7416. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7418. msm_routing_put_audio_mixer),
  7419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7420. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7422. msm_routing_put_audio_mixer),
  7423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7424. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7426. msm_routing_put_audio_mixer),
  7427. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7428. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  7429. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7430. msm_routing_put_audio_mixer),
  7431. };
  7432. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_mixer_controls[] = {
  7433. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7434. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7435. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7436. msm_routing_put_audio_mixer),
  7437. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7438. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7439. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7440. msm_routing_put_audio_mixer),
  7441. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7442. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7443. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7444. msm_routing_put_audio_mixer),
  7445. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7446. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7447. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7448. msm_routing_put_audio_mixer),
  7449. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7450. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7452. msm_routing_put_audio_mixer),
  7453. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7454. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7455. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7456. msm_routing_put_audio_mixer),
  7457. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7458. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7459. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7460. msm_routing_put_audio_mixer),
  7461. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7462. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7463. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7464. msm_routing_put_audio_mixer),
  7465. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7466. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7467. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7468. msm_routing_put_audio_mixer),
  7469. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7470. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7472. msm_routing_put_audio_mixer),
  7473. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7474. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7475. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7476. msm_routing_put_audio_mixer),
  7477. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7478. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7479. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7480. msm_routing_put_audio_mixer),
  7481. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7482. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7483. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7484. msm_routing_put_audio_mixer),
  7485. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7486. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7487. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7488. msm_routing_put_audio_mixer),
  7489. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7490. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7491. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7492. msm_routing_put_audio_mixer),
  7493. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7494. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7495. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7496. msm_routing_put_audio_mixer),
  7497. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7498. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  7499. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7500. msm_routing_put_audio_mixer),
  7501. };
  7502. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_mixer_controls[] = {
  7503. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7504. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7505. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7506. msm_routing_put_audio_mixer),
  7507. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7508. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7509. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7510. msm_routing_put_audio_mixer),
  7511. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7512. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7513. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7514. msm_routing_put_audio_mixer),
  7515. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7516. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7517. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7518. msm_routing_put_audio_mixer),
  7519. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7520. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7521. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7522. msm_routing_put_audio_mixer),
  7523. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7524. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7525. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7526. msm_routing_put_audio_mixer),
  7527. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7528. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7529. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7530. msm_routing_put_audio_mixer),
  7531. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7532. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7533. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7534. msm_routing_put_audio_mixer),
  7535. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7536. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7537. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7538. msm_routing_put_audio_mixer),
  7539. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7540. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7541. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7542. msm_routing_put_audio_mixer),
  7543. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7544. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7545. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7546. msm_routing_put_audio_mixer),
  7547. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7548. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7549. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7550. msm_routing_put_audio_mixer),
  7551. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7552. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7553. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7554. msm_routing_put_audio_mixer),
  7555. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7556. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7557. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7558. msm_routing_put_audio_mixer),
  7559. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7560. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7561. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7562. msm_routing_put_audio_mixer),
  7563. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7564. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7565. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7566. msm_routing_put_audio_mixer),
  7567. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7568. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  7569. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7570. msm_routing_put_audio_mixer),
  7571. };
  7572. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_mixer_controls[] = {
  7573. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7574. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7576. msm_routing_put_audio_mixer),
  7577. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7578. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7579. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7580. msm_routing_put_audio_mixer),
  7581. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7582. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7583. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7584. msm_routing_put_audio_mixer),
  7585. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7586. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7587. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7588. msm_routing_put_audio_mixer),
  7589. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7590. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7592. msm_routing_put_audio_mixer),
  7593. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7594. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7595. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7596. msm_routing_put_audio_mixer),
  7597. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7598. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7599. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7600. msm_routing_put_audio_mixer),
  7601. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7602. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7603. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7604. msm_routing_put_audio_mixer),
  7605. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7606. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7607. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7608. msm_routing_put_audio_mixer),
  7609. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7610. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7611. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7612. msm_routing_put_audio_mixer),
  7613. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7614. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7615. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7616. msm_routing_put_audio_mixer),
  7617. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7618. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7619. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7620. msm_routing_put_audio_mixer),
  7621. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7622. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7623. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7624. msm_routing_put_audio_mixer),
  7625. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7626. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7627. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7628. msm_routing_put_audio_mixer),
  7629. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7630. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7631. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7632. msm_routing_put_audio_mixer),
  7633. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7634. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7635. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7636. msm_routing_put_audio_mixer),
  7637. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7638. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  7639. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7640. msm_routing_put_audio_mixer),
  7641. };
  7642. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_mixer_controls[] = {
  7643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7644. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7646. msm_routing_put_audio_mixer),
  7647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7648. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7650. msm_routing_put_audio_mixer),
  7651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7652. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7654. msm_routing_put_audio_mixer),
  7655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7656. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7658. msm_routing_put_audio_mixer),
  7659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7660. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7662. msm_routing_put_audio_mixer),
  7663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7664. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7666. msm_routing_put_audio_mixer),
  7667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7670. msm_routing_put_audio_mixer),
  7671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7674. msm_routing_put_audio_mixer),
  7675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7678. msm_routing_put_audio_mixer),
  7679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7682. msm_routing_put_audio_mixer),
  7683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7684. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7686. msm_routing_put_audio_mixer),
  7687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7688. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7690. msm_routing_put_audio_mixer),
  7691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7692. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7694. msm_routing_put_audio_mixer),
  7695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7696. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7698. msm_routing_put_audio_mixer),
  7699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7700. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7702. msm_routing_put_audio_mixer),
  7703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7704. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7706. msm_routing_put_audio_mixer),
  7707. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7708. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  7709. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7710. msm_routing_put_audio_mixer),
  7711. };
  7712. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_mixer_controls[] = {
  7713. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7714. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7715. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7716. msm_routing_put_audio_mixer),
  7717. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7718. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7719. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7720. msm_routing_put_audio_mixer),
  7721. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7722. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7723. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7724. msm_routing_put_audio_mixer),
  7725. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7726. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7727. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7728. msm_routing_put_audio_mixer),
  7729. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7730. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7731. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7732. msm_routing_put_audio_mixer),
  7733. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7734. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7735. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7736. msm_routing_put_audio_mixer),
  7737. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7738. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7739. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7740. msm_routing_put_audio_mixer),
  7741. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7742. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7743. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7744. msm_routing_put_audio_mixer),
  7745. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7746. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7747. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7748. msm_routing_put_audio_mixer),
  7749. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7750. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7751. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7752. msm_routing_put_audio_mixer),
  7753. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7754. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7755. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7756. msm_routing_put_audio_mixer),
  7757. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7758. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7759. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7760. msm_routing_put_audio_mixer),
  7761. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7762. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7763. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7764. msm_routing_put_audio_mixer),
  7765. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7766. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7767. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7768. msm_routing_put_audio_mixer),
  7769. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7770. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7771. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7772. msm_routing_put_audio_mixer),
  7773. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7774. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7775. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7776. msm_routing_put_audio_mixer),
  7777. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7778. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  7779. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7780. msm_routing_put_audio_mixer),
  7781. };
  7782. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_mixer_controls[] = {
  7783. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7784. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7785. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7786. msm_routing_put_audio_mixer),
  7787. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7788. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7790. msm_routing_put_audio_mixer),
  7791. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7792. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7793. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7794. msm_routing_put_audio_mixer),
  7795. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7796. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7797. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7798. msm_routing_put_audio_mixer),
  7799. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7800. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7801. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7802. msm_routing_put_audio_mixer),
  7803. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7804. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7806. msm_routing_put_audio_mixer),
  7807. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7808. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7809. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7810. msm_routing_put_audio_mixer),
  7811. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7812. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7813. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7814. msm_routing_put_audio_mixer),
  7815. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7816. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7817. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7818. msm_routing_put_audio_mixer),
  7819. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7820. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7821. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7822. msm_routing_put_audio_mixer),
  7823. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7824. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7825. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7826. msm_routing_put_audio_mixer),
  7827. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7828. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7829. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7830. msm_routing_put_audio_mixer),
  7831. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7832. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7833. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7834. msm_routing_put_audio_mixer),
  7835. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7836. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7837. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7838. msm_routing_put_audio_mixer),
  7839. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7840. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7841. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7842. msm_routing_put_audio_mixer),
  7843. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7844. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7845. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7846. msm_routing_put_audio_mixer),
  7847. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7848. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  7849. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7850. msm_routing_put_audio_mixer),
  7851. };
  7852. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_mixer_controls[] = {
  7853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7854. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7856. msm_routing_put_audio_mixer),
  7857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7858. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7860. msm_routing_put_audio_mixer),
  7861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7862. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7864. msm_routing_put_audio_mixer),
  7865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7866. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7868. msm_routing_put_audio_mixer),
  7869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7870. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7872. msm_routing_put_audio_mixer),
  7873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7874. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7876. msm_routing_put_audio_mixer),
  7877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7878. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7880. msm_routing_put_audio_mixer),
  7881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7882. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7884. msm_routing_put_audio_mixer),
  7885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7886. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7888. msm_routing_put_audio_mixer),
  7889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7890. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7892. msm_routing_put_audio_mixer),
  7893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7894. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7896. msm_routing_put_audio_mixer),
  7897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7898. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7900. msm_routing_put_audio_mixer),
  7901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7902. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7904. msm_routing_put_audio_mixer),
  7905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7906. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7908. msm_routing_put_audio_mixer),
  7909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7910. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7912. msm_routing_put_audio_mixer),
  7913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7914. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7916. msm_routing_put_audio_mixer),
  7917. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7918. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  7919. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7920. msm_routing_put_audio_mixer),
  7921. };
  7922. static const struct snd_kcontrol_new slimbus_7_rx_mixer_controls[] = {
  7923. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7924. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7925. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7926. msm_routing_put_audio_mixer),
  7927. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7928. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  7930. msm_routing_put_audio_mixer),
  7931. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  7932. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7933. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  7934. msm_routing_put_audio_mixer),
  7935. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  7936. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7937. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  7938. msm_routing_put_audio_mixer),
  7939. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  7940. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7941. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  7942. msm_routing_put_audio_mixer),
  7943. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  7944. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7945. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  7946. msm_routing_put_audio_mixer),
  7947. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  7948. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7949. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  7950. msm_routing_put_audio_mixer),
  7951. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  7952. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7953. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  7954. msm_routing_put_audio_mixer),
  7955. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  7956. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7957. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  7958. msm_routing_put_audio_mixer),
  7959. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  7960. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7961. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  7962. msm_routing_put_audio_mixer),
  7963. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  7964. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7965. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  7966. msm_routing_put_audio_mixer),
  7967. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  7968. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7969. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  7970. msm_routing_put_audio_mixer),
  7971. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  7972. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7973. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  7974. msm_routing_put_audio_mixer),
  7975. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  7976. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7977. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  7978. msm_routing_put_audio_mixer),
  7979. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  7980. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7981. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  7982. msm_routing_put_audio_mixer),
  7983. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  7984. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7985. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  7986. msm_routing_put_audio_mixer),
  7987. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  7988. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  7989. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  7990. msm_routing_put_audio_mixer),
  7991. };
  7992. static const struct snd_kcontrol_new slimbus_9_rx_mixer_controls[] = {
  7993. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  7994. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7995. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  7996. msm_routing_put_audio_mixer),
  7997. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  7998. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  7999. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8000. msm_routing_put_audio_mixer),
  8001. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8002. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8004. msm_routing_put_audio_mixer),
  8005. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8006. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8007. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8008. msm_routing_put_audio_mixer),
  8009. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8010. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8011. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8012. msm_routing_put_audio_mixer),
  8013. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8014. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8015. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8016. msm_routing_put_audio_mixer),
  8017. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8018. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8019. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8020. msm_routing_put_audio_mixer),
  8021. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8022. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8024. msm_routing_put_audio_mixer),
  8025. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8026. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8027. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8028. msm_routing_put_audio_mixer),
  8029. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8030. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8031. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8032. msm_routing_put_audio_mixer),
  8033. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8034. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8035. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8036. msm_routing_put_audio_mixer),
  8037. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8038. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8039. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8040. msm_routing_put_audio_mixer),
  8041. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8042. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8043. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8044. msm_routing_put_audio_mixer),
  8045. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8046. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8047. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8048. msm_routing_put_audio_mixer),
  8049. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8050. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8051. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8052. msm_routing_put_audio_mixer),
  8053. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8054. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8055. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8056. msm_routing_put_audio_mixer),
  8057. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8058. MSM_BACKEND_DAI_SLIMBUS_9_RX,
  8059. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8060. msm_routing_put_audio_mixer),
  8061. };
  8062. static const struct snd_kcontrol_new usb_audio_rx_mixer_controls[] = {
  8063. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8064. MSM_BACKEND_DAI_USB_RX,
  8065. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8066. msm_routing_put_audio_mixer),
  8067. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8068. MSM_BACKEND_DAI_USB_RX,
  8069. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8070. msm_routing_put_audio_mixer),
  8071. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8072. MSM_BACKEND_DAI_USB_RX,
  8073. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8074. msm_routing_put_audio_mixer),
  8075. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8076. MSM_BACKEND_DAI_USB_RX,
  8077. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8078. msm_routing_put_audio_mixer),
  8079. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8080. MSM_BACKEND_DAI_USB_RX,
  8081. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8082. msm_routing_put_audio_mixer),
  8083. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8084. MSM_BACKEND_DAI_USB_RX,
  8085. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8086. msm_routing_put_audio_mixer),
  8087. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8088. MSM_BACKEND_DAI_USB_RX,
  8089. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8090. msm_routing_put_audio_mixer),
  8091. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8092. MSM_BACKEND_DAI_USB_RX,
  8093. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8094. msm_routing_put_audio_mixer),
  8095. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8096. MSM_BACKEND_DAI_USB_RX,
  8097. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8098. msm_routing_put_audio_mixer),
  8099. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8100. MSM_BACKEND_DAI_USB_RX,
  8101. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8102. msm_routing_put_audio_mixer),
  8103. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8104. MSM_BACKEND_DAI_USB_RX,
  8105. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8106. msm_routing_put_audio_mixer),
  8107. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8108. MSM_BACKEND_DAI_USB_RX,
  8109. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8110. msm_routing_put_audio_mixer),
  8111. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8112. MSM_BACKEND_DAI_USB_RX,
  8113. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8114. msm_routing_put_audio_mixer),
  8115. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8116. MSM_BACKEND_DAI_USB_RX,
  8117. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8118. msm_routing_put_audio_mixer),
  8119. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8120. MSM_BACKEND_DAI_USB_RX,
  8121. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8122. msm_routing_put_audio_mixer),
  8123. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8124. MSM_BACKEND_DAI_USB_RX,
  8125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8126. msm_routing_put_audio_mixer),
  8127. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8128. MSM_BACKEND_DAI_USB_RX,
  8129. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8130. msm_routing_put_audio_mixer),
  8131. };
  8132. static const struct snd_kcontrol_new int_bt_sco_rx_mixer_controls[] = {
  8133. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8134. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8135. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8136. msm_routing_put_audio_mixer),
  8137. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8138. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8139. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8140. msm_routing_put_audio_mixer),
  8141. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8142. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8144. msm_routing_put_audio_mixer),
  8145. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8146. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8147. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8148. msm_routing_put_audio_mixer),
  8149. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8150. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8151. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8152. msm_routing_put_audio_mixer),
  8153. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8154. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8155. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8156. msm_routing_put_audio_mixer),
  8157. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8158. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8159. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8160. msm_routing_put_audio_mixer),
  8161. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8162. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8163. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8164. msm_routing_put_audio_mixer),
  8165. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8166. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8167. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8168. msm_routing_put_audio_mixer),
  8169. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8170. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8171. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8172. msm_routing_put_audio_mixer),
  8173. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8174. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8175. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8176. msm_routing_put_audio_mixer),
  8177. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8178. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8179. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8180. msm_routing_put_audio_mixer),
  8181. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8182. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8183. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8184. msm_routing_put_audio_mixer),
  8185. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8186. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8187. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8188. msm_routing_put_audio_mixer),
  8189. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8190. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8191. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8192. msm_routing_put_audio_mixer),
  8193. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8194. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8195. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8196. msm_routing_put_audio_mixer),
  8197. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8198. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8199. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8200. msm_routing_put_audio_mixer),
  8201. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8202. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8203. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8204. msm_routing_put_audio_mixer),
  8205. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8206. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8207. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8208. msm_routing_put_audio_mixer),
  8209. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8210. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8211. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8212. msm_routing_put_audio_mixer),
  8213. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8214. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8215. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8216. msm_routing_put_audio_mixer),
  8217. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8218. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8219. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8220. msm_routing_put_audio_mixer),
  8221. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8222. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  8223. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8224. msm_routing_put_audio_mixer),
  8225. };
  8226. static const struct snd_kcontrol_new int_bt_a2dp_rx_mixer_controls[] = {
  8227. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8228. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8229. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8230. msm_routing_put_audio_mixer),
  8231. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8232. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8233. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8234. msm_routing_put_audio_mixer),
  8235. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8236. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8237. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8238. msm_routing_put_audio_mixer),
  8239. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8240. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8242. msm_routing_put_audio_mixer),
  8243. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8244. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8245. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8246. msm_routing_put_audio_mixer),
  8247. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8248. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8249. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8250. msm_routing_put_audio_mixer),
  8251. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8252. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8253. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8254. msm_routing_put_audio_mixer),
  8255. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8256. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8257. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8258. msm_routing_put_audio_mixer),
  8259. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8260. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8261. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8262. msm_routing_put_audio_mixer),
  8263. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8264. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8265. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8266. msm_routing_put_audio_mixer),
  8267. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8268. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8269. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8270. msm_routing_put_audio_mixer),
  8271. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8272. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8273. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8274. msm_routing_put_audio_mixer),
  8275. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8276. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8277. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8278. msm_routing_put_audio_mixer),
  8279. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8280. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8281. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8282. msm_routing_put_audio_mixer),
  8283. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8284. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8285. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8286. msm_routing_put_audio_mixer),
  8287. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8288. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8289. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8290. msm_routing_put_audio_mixer),
  8291. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8292. MSM_BACKEND_DAI_INT_BT_A2DP_RX,
  8293. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8294. msm_routing_put_audio_mixer),
  8295. };
  8296. static const struct snd_kcontrol_new int_fm_rx_mixer_controls[] = {
  8297. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8298. MSM_BACKEND_DAI_INT_FM_RX,
  8299. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8300. msm_routing_put_audio_mixer),
  8301. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8302. MSM_BACKEND_DAI_INT_FM_RX,
  8303. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8304. msm_routing_put_audio_mixer),
  8305. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8306. MSM_BACKEND_DAI_INT_FM_RX,
  8307. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8308. msm_routing_put_audio_mixer),
  8309. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8310. MSM_BACKEND_DAI_INT_FM_RX,
  8311. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8312. msm_routing_put_audio_mixer),
  8313. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8314. MSM_BACKEND_DAI_INT_FM_RX,
  8315. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8316. msm_routing_put_audio_mixer),
  8317. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8318. MSM_BACKEND_DAI_INT_FM_RX,
  8319. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8320. msm_routing_put_audio_mixer),
  8321. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8322. MSM_BACKEND_DAI_INT_FM_RX,
  8323. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8324. msm_routing_put_audio_mixer),
  8325. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8326. MSM_BACKEND_DAI_INT_FM_RX,
  8327. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8328. msm_routing_put_audio_mixer),
  8329. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8330. MSM_BACKEND_DAI_INT_FM_RX,
  8331. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8332. msm_routing_put_audio_mixer),
  8333. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8334. MSM_BACKEND_DAI_INT_FM_RX,
  8335. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8336. msm_routing_put_audio_mixer),
  8337. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8338. MSM_BACKEND_DAI_INT_FM_RX,
  8339. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8340. msm_routing_put_audio_mixer),
  8341. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8342. MSM_BACKEND_DAI_INT_FM_RX,
  8343. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8344. msm_routing_put_audio_mixer),
  8345. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8346. MSM_BACKEND_DAI_INT_FM_RX,
  8347. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8348. msm_routing_put_audio_mixer),
  8349. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8350. MSM_BACKEND_DAI_INT_FM_RX,
  8351. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8352. msm_routing_put_audio_mixer),
  8353. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8354. MSM_BACKEND_DAI_INT_FM_RX,
  8355. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8356. msm_routing_put_audio_mixer),
  8357. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8358. MSM_BACKEND_DAI_INT_FM_RX,
  8359. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8360. msm_routing_put_audio_mixer),
  8361. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8362. MSM_BACKEND_DAI_INT_FM_RX,
  8363. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8364. msm_routing_put_audio_mixer),
  8365. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8366. MSM_BACKEND_DAI_INT_FM_RX,
  8367. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8368. msm_routing_put_audio_mixer),
  8369. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8370. MSM_BACKEND_DAI_INT_FM_RX,
  8371. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8372. msm_routing_put_audio_mixer),
  8373. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8374. MSM_BACKEND_DAI_INT_FM_RX,
  8375. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8376. msm_routing_put_audio_mixer),
  8377. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8378. MSM_BACKEND_DAI_INT_FM_RX,
  8379. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8380. msm_routing_put_audio_mixer),
  8381. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8382. MSM_BACKEND_DAI_INT_FM_RX,
  8383. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8384. msm_routing_put_audio_mixer),
  8385. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8386. MSM_BACKEND_DAI_INT_FM_RX,
  8387. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8388. msm_routing_put_audio_mixer),
  8389. };
  8390. static const struct snd_kcontrol_new afe_pcm_rx_mixer_controls[] = {
  8391. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8392. MSM_BACKEND_DAI_AFE_PCM_RX,
  8393. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8394. msm_routing_put_audio_mixer),
  8395. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8396. MSM_BACKEND_DAI_AFE_PCM_RX,
  8397. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8398. msm_routing_put_audio_mixer),
  8399. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8400. MSM_BACKEND_DAI_AFE_PCM_RX,
  8401. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8402. msm_routing_put_audio_mixer),
  8403. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8404. MSM_BACKEND_DAI_AFE_PCM_RX,
  8405. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8406. msm_routing_put_audio_mixer),
  8407. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8408. MSM_BACKEND_DAI_AFE_PCM_RX,
  8409. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8410. msm_routing_put_audio_mixer),
  8411. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8412. MSM_BACKEND_DAI_AFE_PCM_RX,
  8413. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8414. msm_routing_put_audio_mixer),
  8415. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8416. MSM_BACKEND_DAI_AFE_PCM_RX,
  8417. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8418. msm_routing_put_audio_mixer),
  8419. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8420. MSM_BACKEND_DAI_AFE_PCM_RX,
  8421. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8422. msm_routing_put_audio_mixer),
  8423. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8424. MSM_BACKEND_DAI_AFE_PCM_RX,
  8425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8426. msm_routing_put_audio_mixer),
  8427. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8428. MSM_BACKEND_DAI_AFE_PCM_RX,
  8429. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8430. msm_routing_put_audio_mixer),
  8431. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8432. MSM_BACKEND_DAI_AFE_PCM_RX,
  8433. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8434. msm_routing_put_audio_mixer),
  8435. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8436. MSM_BACKEND_DAI_AFE_PCM_RX,
  8437. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8438. msm_routing_put_audio_mixer),
  8439. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8440. MSM_BACKEND_DAI_AFE_PCM_RX,
  8441. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8442. msm_routing_put_audio_mixer),
  8443. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8444. MSM_BACKEND_DAI_AFE_PCM_RX,
  8445. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8446. msm_routing_put_audio_mixer),
  8447. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8448. MSM_BACKEND_DAI_AFE_PCM_RX,
  8449. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8450. msm_routing_put_audio_mixer),
  8451. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8452. MSM_BACKEND_DAI_AFE_PCM_RX,
  8453. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8454. msm_routing_put_audio_mixer),
  8455. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8456. MSM_BACKEND_DAI_AFE_PCM_RX,
  8457. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8458. msm_routing_put_audio_mixer),
  8459. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8460. MSM_BACKEND_DAI_AFE_PCM_RX,
  8461. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8462. msm_routing_put_audio_mixer),
  8463. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8464. MSM_BACKEND_DAI_AFE_PCM_RX,
  8465. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8466. msm_routing_put_audio_mixer),
  8467. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8468. MSM_BACKEND_DAI_AFE_PCM_RX,
  8469. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8470. msm_routing_put_audio_mixer),
  8471. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8472. MSM_BACKEND_DAI_AFE_PCM_RX,
  8473. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8474. msm_routing_put_audio_mixer),
  8475. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8476. MSM_BACKEND_DAI_AFE_PCM_RX,
  8477. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8478. msm_routing_put_audio_mixer),
  8479. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8480. MSM_BACKEND_DAI_AFE_PCM_RX,
  8481. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8482. msm_routing_put_audio_mixer),
  8483. };
  8484. static const struct snd_kcontrol_new auxpcm_rx_mixer_controls[] = {
  8485. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8486. MSM_BACKEND_DAI_AUXPCM_RX,
  8487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8488. msm_routing_put_audio_mixer),
  8489. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8490. MSM_BACKEND_DAI_AUXPCM_RX,
  8491. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8492. msm_routing_put_audio_mixer),
  8493. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8494. MSM_BACKEND_DAI_AUXPCM_RX,
  8495. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8496. msm_routing_put_audio_mixer),
  8497. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8498. MSM_BACKEND_DAI_AUXPCM_RX,
  8499. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8500. msm_routing_put_audio_mixer),
  8501. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8502. MSM_BACKEND_DAI_AUXPCM_RX,
  8503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8504. msm_routing_put_audio_mixer),
  8505. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8506. MSM_BACKEND_DAI_AUXPCM_RX,
  8507. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8508. msm_routing_put_audio_mixer),
  8509. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8510. MSM_BACKEND_DAI_AUXPCM_RX,
  8511. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8512. msm_routing_put_audio_mixer),
  8513. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8514. MSM_BACKEND_DAI_AUXPCM_RX,
  8515. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8516. msm_routing_put_audio_mixer),
  8517. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8518. MSM_BACKEND_DAI_AUXPCM_RX,
  8519. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8520. msm_routing_put_audio_mixer),
  8521. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8522. MSM_BACKEND_DAI_AUXPCM_RX,
  8523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8524. msm_routing_put_audio_mixer),
  8525. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8526. MSM_BACKEND_DAI_AUXPCM_RX,
  8527. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8528. msm_routing_put_audio_mixer),
  8529. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8530. MSM_BACKEND_DAI_AUXPCM_RX,
  8531. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8532. msm_routing_put_audio_mixer),
  8533. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8534. MSM_BACKEND_DAI_AUXPCM_RX,
  8535. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8536. msm_routing_put_audio_mixer),
  8537. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8538. MSM_BACKEND_DAI_AUXPCM_RX,
  8539. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8540. msm_routing_put_audio_mixer),
  8541. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8542. MSM_BACKEND_DAI_AUXPCM_RX,
  8543. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8544. msm_routing_put_audio_mixer),
  8545. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8546. MSM_BACKEND_DAI_AUXPCM_RX,
  8547. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8548. msm_routing_put_audio_mixer),
  8549. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8550. MSM_BACKEND_DAI_AUXPCM_RX,
  8551. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8552. msm_routing_put_audio_mixer),
  8553. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8554. MSM_BACKEND_DAI_AUXPCM_RX,
  8555. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8556. msm_routing_put_audio_mixer),
  8557. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8558. MSM_BACKEND_DAI_AUXPCM_RX,
  8559. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8560. msm_routing_put_audio_mixer),
  8561. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8562. MSM_BACKEND_DAI_AUXPCM_RX,
  8563. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8564. msm_routing_put_audio_mixer),
  8565. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8566. MSM_BACKEND_DAI_AUXPCM_RX,
  8567. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8568. msm_routing_put_audio_mixer),
  8569. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8570. MSM_BACKEND_DAI_AUXPCM_RX,
  8571. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8572. msm_routing_put_audio_mixer),
  8573. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8574. MSM_BACKEND_DAI_AUXPCM_RX,
  8575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8576. msm_routing_put_audio_mixer),
  8577. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8578. MSM_BACKEND_DAI_AUXPCM_RX,
  8579. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8580. msm_routing_put_audio_mixer),
  8581. };
  8582. static const struct snd_kcontrol_new sec_auxpcm_rx_mixer_controls[] = {
  8583. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8584. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8585. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8586. msm_routing_put_audio_mixer),
  8587. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8588. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8589. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8590. msm_routing_put_audio_mixer),
  8591. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8592. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8593. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8594. msm_routing_put_audio_mixer),
  8595. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8596. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8597. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8598. msm_routing_put_audio_mixer),
  8599. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8600. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8601. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8602. msm_routing_put_audio_mixer),
  8603. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8604. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8605. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8606. msm_routing_put_audio_mixer),
  8607. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8608. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8609. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8610. msm_routing_put_audio_mixer),
  8611. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8612. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8613. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8614. msm_routing_put_audio_mixer),
  8615. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8616. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8617. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8618. msm_routing_put_audio_mixer),
  8619. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8620. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8622. msm_routing_put_audio_mixer),
  8623. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8624. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8625. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8626. msm_routing_put_audio_mixer),
  8627. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8628. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8629. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8630. msm_routing_put_audio_mixer),
  8631. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8632. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8633. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8634. msm_routing_put_audio_mixer),
  8635. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8636. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8637. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8638. msm_routing_put_audio_mixer),
  8639. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8640. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8641. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8642. msm_routing_put_audio_mixer),
  8643. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8644. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8645. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8646. msm_routing_put_audio_mixer),
  8647. SOC_DOUBLE_EXT("MultiMedia17", SND_SOC_NOPM,
  8648. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8649. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  8650. msm_routing_put_audio_mixer),
  8651. SOC_DOUBLE_EXT("MultiMedia18", SND_SOC_NOPM,
  8652. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8653. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  8654. msm_routing_put_audio_mixer),
  8655. SOC_DOUBLE_EXT("MultiMedia19", SND_SOC_NOPM,
  8656. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8657. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  8658. msm_routing_put_audio_mixer),
  8659. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  8660. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8661. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  8662. msm_routing_put_audio_mixer),
  8663. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8664. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8665. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8666. msm_routing_put_audio_mixer),
  8667. SOC_DOUBLE_EXT("MultiMedia28", SND_SOC_NOPM,
  8668. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8669. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  8670. msm_routing_put_audio_mixer),
  8671. SOC_DOUBLE_EXT("MultiMedia29", SND_SOC_NOPM,
  8672. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8673. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  8674. msm_routing_put_audio_mixer),
  8675. SOC_DOUBLE_EXT("MultiMedia30", SND_SOC_NOPM,
  8676. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  8677. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  8678. msm_routing_put_audio_mixer),
  8679. };
  8680. static const struct snd_kcontrol_new tert_auxpcm_rx_mixer_controls[] = {
  8681. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8682. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8684. msm_routing_put_audio_mixer),
  8685. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8686. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8687. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8688. msm_routing_put_audio_mixer),
  8689. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8690. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8691. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8692. msm_routing_put_audio_mixer),
  8693. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8694. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8695. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8696. msm_routing_put_audio_mixer),
  8697. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8698. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8699. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8700. msm_routing_put_audio_mixer),
  8701. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8702. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8703. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8704. msm_routing_put_audio_mixer),
  8705. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8706. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8707. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8708. msm_routing_put_audio_mixer),
  8709. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8710. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8711. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8712. msm_routing_put_audio_mixer),
  8713. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8714. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8715. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8716. msm_routing_put_audio_mixer),
  8717. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8718. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8719. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8720. msm_routing_put_audio_mixer),
  8721. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8722. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8723. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8724. msm_routing_put_audio_mixer),
  8725. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8726. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8727. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8728. msm_routing_put_audio_mixer),
  8729. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8730. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8731. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8732. msm_routing_put_audio_mixer),
  8733. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8734. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8735. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8736. msm_routing_put_audio_mixer),
  8737. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8738. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8739. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8740. msm_routing_put_audio_mixer),
  8741. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8742. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8743. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8744. msm_routing_put_audio_mixer),
  8745. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8746. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  8747. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8748. msm_routing_put_audio_mixer),
  8749. };
  8750. static const struct snd_kcontrol_new quat_auxpcm_rx_mixer_controls[] = {
  8751. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8752. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8753. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8754. msm_routing_put_audio_mixer),
  8755. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8756. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8757. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8758. msm_routing_put_audio_mixer),
  8759. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8760. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8761. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8762. msm_routing_put_audio_mixer),
  8763. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8764. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8765. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8766. msm_routing_put_audio_mixer),
  8767. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8768. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8769. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8770. msm_routing_put_audio_mixer),
  8771. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8772. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8774. msm_routing_put_audio_mixer),
  8775. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8776. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8777. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8778. msm_routing_put_audio_mixer),
  8779. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8780. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8781. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8782. msm_routing_put_audio_mixer),
  8783. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8784. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8785. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8786. msm_routing_put_audio_mixer),
  8787. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8788. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8789. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8790. msm_routing_put_audio_mixer),
  8791. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8792. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8793. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8794. msm_routing_put_audio_mixer),
  8795. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8796. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8797. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8798. msm_routing_put_audio_mixer),
  8799. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8800. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8801. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8802. msm_routing_put_audio_mixer),
  8803. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8804. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8805. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8806. msm_routing_put_audio_mixer),
  8807. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8808. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8809. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8810. msm_routing_put_audio_mixer),
  8811. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8812. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8813. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8814. msm_routing_put_audio_mixer),
  8815. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8816. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  8817. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8818. msm_routing_put_audio_mixer),
  8819. };
  8820. static const struct snd_kcontrol_new quin_auxpcm_rx_mixer_controls[] = {
  8821. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8822. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8823. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8824. msm_routing_put_audio_mixer),
  8825. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8826. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8827. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8828. msm_routing_put_audio_mixer),
  8829. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8830. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8831. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8832. msm_routing_put_audio_mixer),
  8833. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8834. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8835. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8836. msm_routing_put_audio_mixer),
  8837. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8838. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8839. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8840. msm_routing_put_audio_mixer),
  8841. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8842. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8843. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8844. msm_routing_put_audio_mixer),
  8845. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8846. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8847. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8848. msm_routing_put_audio_mixer),
  8849. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8850. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8852. msm_routing_put_audio_mixer),
  8853. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8854. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8855. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8856. msm_routing_put_audio_mixer),
  8857. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8858. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8859. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8860. msm_routing_put_audio_mixer),
  8861. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8862. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8863. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8864. msm_routing_put_audio_mixer),
  8865. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8866. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8867. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8868. msm_routing_put_audio_mixer),
  8869. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8870. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8871. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8872. msm_routing_put_audio_mixer),
  8873. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8874. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8875. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8876. msm_routing_put_audio_mixer),
  8877. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8878. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8879. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8880. msm_routing_put_audio_mixer),
  8881. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8882. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8883. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8884. msm_routing_put_audio_mixer),
  8885. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8886. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  8887. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8888. msm_routing_put_audio_mixer),
  8889. };
  8890. static const struct snd_kcontrol_new sen_auxpcm_rx_mixer_controls[] = {
  8891. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8892. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8893. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8894. msm_routing_put_audio_mixer),
  8895. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8896. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8898. msm_routing_put_audio_mixer),
  8899. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8900. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8901. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8902. msm_routing_put_audio_mixer),
  8903. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8904. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8905. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8906. msm_routing_put_audio_mixer),
  8907. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8908. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8909. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8910. msm_routing_put_audio_mixer),
  8911. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8912. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8913. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8914. msm_routing_put_audio_mixer),
  8915. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8916. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8917. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8918. msm_routing_put_audio_mixer),
  8919. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8920. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8921. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8922. msm_routing_put_audio_mixer),
  8923. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8924. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8925. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8926. msm_routing_put_audio_mixer),
  8927. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8928. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8929. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  8930. msm_routing_put_audio_mixer),
  8931. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  8932. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8933. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  8934. msm_routing_put_audio_mixer),
  8935. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  8936. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8937. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  8938. msm_routing_put_audio_mixer),
  8939. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  8940. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8941. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  8942. msm_routing_put_audio_mixer),
  8943. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  8944. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8945. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  8946. msm_routing_put_audio_mixer),
  8947. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  8948. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8949. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  8950. msm_routing_put_audio_mixer),
  8951. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  8952. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8953. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  8954. msm_routing_put_audio_mixer),
  8955. SOC_DOUBLE_EXT("MultiMedia26", SND_SOC_NOPM,
  8956. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  8957. MSM_FRONTEND_DAI_MULTIMEDIA26, 1, 0, msm_routing_get_audio_mixer,
  8958. msm_routing_put_audio_mixer),
  8959. };
  8960. static const struct snd_kcontrol_new pri_tdm_rx_0_mixer_controls[] = {
  8961. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  8962. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8963. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  8964. msm_routing_put_audio_mixer),
  8965. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  8966. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8967. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  8968. msm_routing_put_audio_mixer),
  8969. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  8970. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  8972. msm_routing_put_audio_mixer),
  8973. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  8974. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8975. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  8976. msm_routing_put_audio_mixer),
  8977. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  8978. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8979. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  8980. msm_routing_put_audio_mixer),
  8981. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  8982. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8983. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  8984. msm_routing_put_audio_mixer),
  8985. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  8986. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8987. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  8988. msm_routing_put_audio_mixer),
  8989. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  8990. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  8992. msm_routing_put_audio_mixer),
  8993. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  8994. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8995. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  8996. msm_routing_put_audio_mixer),
  8997. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  8998. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  8999. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9000. msm_routing_put_audio_mixer),
  9001. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9002. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9003. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9004. msm_routing_put_audio_mixer),
  9005. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9006. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9007. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9008. msm_routing_put_audio_mixer),
  9009. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9010. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9011. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9012. msm_routing_put_audio_mixer),
  9013. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9014. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9015. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9016. msm_routing_put_audio_mixer),
  9017. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9018. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9019. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9020. msm_routing_put_audio_mixer),
  9021. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9022. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9023. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9024. msm_routing_put_audio_mixer),
  9025. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9026. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9027. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9028. msm_routing_put_audio_mixer),
  9029. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9030. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  9031. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9032. msm_routing_put_audio_mixer),
  9033. };
  9034. static const struct snd_kcontrol_new pri_tdm_rx_1_mixer_controls[] = {
  9035. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9036. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9037. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9038. msm_routing_put_audio_mixer),
  9039. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9040. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9041. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9042. msm_routing_put_audio_mixer),
  9043. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9044. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9045. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9046. msm_routing_put_audio_mixer),
  9047. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9048. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9049. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9050. msm_routing_put_audio_mixer),
  9051. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9052. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9053. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9054. msm_routing_put_audio_mixer),
  9055. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9056. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9057. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9058. msm_routing_put_audio_mixer),
  9059. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9060. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9061. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9062. msm_routing_put_audio_mixer),
  9063. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9064. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9065. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9066. msm_routing_put_audio_mixer),
  9067. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9068. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9069. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9070. msm_routing_put_audio_mixer),
  9071. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9072. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9073. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9074. msm_routing_put_audio_mixer),
  9075. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9076. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9077. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9078. msm_routing_put_audio_mixer),
  9079. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9080. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9081. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9082. msm_routing_put_audio_mixer),
  9083. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9084. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9085. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9086. msm_routing_put_audio_mixer),
  9087. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9088. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9089. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9090. msm_routing_put_audio_mixer),
  9091. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9092. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9093. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9094. msm_routing_put_audio_mixer),
  9095. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9096. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9098. msm_routing_put_audio_mixer),
  9099. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9100. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9101. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9102. msm_routing_put_audio_mixer),
  9103. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9104. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  9105. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9106. msm_routing_put_audio_mixer),
  9107. };
  9108. static const struct snd_kcontrol_new pri_tdm_rx_2_mixer_controls[] = {
  9109. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9110. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9111. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9112. msm_routing_put_audio_mixer),
  9113. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9114. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9115. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9116. msm_routing_put_audio_mixer),
  9117. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9118. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9120. msm_routing_put_audio_mixer),
  9121. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9122. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9123. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9124. msm_routing_put_audio_mixer),
  9125. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9126. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9127. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9128. msm_routing_put_audio_mixer),
  9129. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9130. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9131. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9132. msm_routing_put_audio_mixer),
  9133. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9134. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9135. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9136. msm_routing_put_audio_mixer),
  9137. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9138. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9139. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9140. msm_routing_put_audio_mixer),
  9141. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9142. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9143. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9144. msm_routing_put_audio_mixer),
  9145. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9146. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9147. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9148. msm_routing_put_audio_mixer),
  9149. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9150. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9151. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9152. msm_routing_put_audio_mixer),
  9153. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9154. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9155. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9156. msm_routing_put_audio_mixer),
  9157. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9158. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9159. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9160. msm_routing_put_audio_mixer),
  9161. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9162. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9163. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9164. msm_routing_put_audio_mixer),
  9165. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9166. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9167. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9168. msm_routing_put_audio_mixer),
  9169. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9170. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9171. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9172. msm_routing_put_audio_mixer),
  9173. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9174. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9175. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9176. msm_routing_put_audio_mixer),
  9177. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9178. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  9179. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9180. msm_routing_put_audio_mixer),
  9181. };
  9182. static const struct snd_kcontrol_new pri_tdm_rx_3_mixer_controls[] = {
  9183. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9184. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9185. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9186. msm_routing_put_audio_mixer),
  9187. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9188. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9189. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9190. msm_routing_put_audio_mixer),
  9191. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9192. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9193. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9194. msm_routing_put_audio_mixer),
  9195. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9196. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9198. msm_routing_put_audio_mixer),
  9199. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9200. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9201. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9202. msm_routing_put_audio_mixer),
  9203. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9204. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9205. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9206. msm_routing_put_audio_mixer),
  9207. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9208. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9209. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9210. msm_routing_put_audio_mixer),
  9211. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9212. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9213. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9214. msm_routing_put_audio_mixer),
  9215. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9216. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9217. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9218. msm_routing_put_audio_mixer),
  9219. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9220. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9221. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9222. msm_routing_put_audio_mixer),
  9223. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9224. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9225. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9226. msm_routing_put_audio_mixer),
  9227. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9228. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9229. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9230. msm_routing_put_audio_mixer),
  9231. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9232. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9233. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9234. msm_routing_put_audio_mixer),
  9235. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9236. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9237. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9238. msm_routing_put_audio_mixer),
  9239. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9240. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9241. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9242. msm_routing_put_audio_mixer),
  9243. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9244. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9245. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9246. msm_routing_put_audio_mixer),
  9247. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9248. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9249. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9250. msm_routing_put_audio_mixer),
  9251. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9252. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  9253. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9254. msm_routing_put_audio_mixer),
  9255. };
  9256. static const struct snd_kcontrol_new pri_tdm_tx_0_mixer_controls[] = {
  9257. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9258. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9259. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9260. msm_routing_put_audio_mixer),
  9261. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9262. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9263. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9264. msm_routing_put_audio_mixer),
  9265. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9266. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9267. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9268. msm_routing_put_audio_mixer),
  9269. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9270. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9271. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9272. msm_routing_put_audio_mixer),
  9273. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9274. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9275. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9276. msm_routing_put_audio_mixer),
  9277. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9278. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9279. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9280. msm_routing_put_audio_mixer),
  9281. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9282. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9283. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9284. msm_routing_put_audio_mixer),
  9285. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9286. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9287. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9288. msm_routing_put_audio_mixer),
  9289. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9290. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9291. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9292. msm_routing_put_audio_mixer),
  9293. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9294. MSM_BACKEND_DAI_PRI_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("MultiMedia11", SND_SOC_NOPM,
  9298. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9299. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9300. msm_routing_put_audio_mixer),
  9301. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9302. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9303. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9304. msm_routing_put_audio_mixer),
  9305. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9306. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9307. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9308. msm_routing_put_audio_mixer),
  9309. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9310. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9311. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9312. msm_routing_put_audio_mixer),
  9313. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9314. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9315. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9316. msm_routing_put_audio_mixer),
  9317. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  9319. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9320. msm_routing_put_audio_mixer),
  9321. };
  9322. static const struct snd_kcontrol_new sec_tdm_rx_0_mixer_controls[] = {
  9323. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9324. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9325. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9326. msm_routing_put_audio_mixer),
  9327. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9328. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9329. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9330. msm_routing_put_audio_mixer),
  9331. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9332. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9333. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9334. msm_routing_put_audio_mixer),
  9335. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9336. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9338. msm_routing_put_audio_mixer),
  9339. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9340. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9341. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9342. msm_routing_put_audio_mixer),
  9343. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9344. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9345. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9346. msm_routing_put_audio_mixer),
  9347. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9348. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9349. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9350. msm_routing_put_audio_mixer),
  9351. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9352. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9353. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9354. msm_routing_put_audio_mixer),
  9355. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9356. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9358. msm_routing_put_audio_mixer),
  9359. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9360. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9361. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9362. msm_routing_put_audio_mixer),
  9363. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9364. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9365. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9366. msm_routing_put_audio_mixer),
  9367. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9368. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9369. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9370. msm_routing_put_audio_mixer),
  9371. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9372. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9373. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9374. msm_routing_put_audio_mixer),
  9375. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9376. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9377. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9378. msm_routing_put_audio_mixer),
  9379. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9380. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9381. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9382. msm_routing_put_audio_mixer),
  9383. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9384. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9385. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9386. msm_routing_put_audio_mixer),
  9387. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9388. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9389. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9390. msm_routing_put_audio_mixer),
  9391. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9392. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  9393. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9394. msm_routing_put_audio_mixer),
  9395. };
  9396. static const struct snd_kcontrol_new sec_tdm_rx_1_mixer_controls[] = {
  9397. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9398. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9399. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9400. msm_routing_put_audio_mixer),
  9401. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9402. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9403. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9404. msm_routing_put_audio_mixer),
  9405. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9406. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9407. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9408. msm_routing_put_audio_mixer),
  9409. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9410. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9411. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9412. msm_routing_put_audio_mixer),
  9413. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9414. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9416. msm_routing_put_audio_mixer),
  9417. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9418. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9419. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9420. msm_routing_put_audio_mixer),
  9421. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9422. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9423. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9424. msm_routing_put_audio_mixer),
  9425. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9426. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9427. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9428. msm_routing_put_audio_mixer),
  9429. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9430. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9431. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9432. msm_routing_put_audio_mixer),
  9433. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9434. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9435. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9436. msm_routing_put_audio_mixer),
  9437. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9438. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9439. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9440. msm_routing_put_audio_mixer),
  9441. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9442. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9443. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9444. msm_routing_put_audio_mixer),
  9445. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9446. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9447. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9448. msm_routing_put_audio_mixer),
  9449. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9450. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9451. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9452. msm_routing_put_audio_mixer),
  9453. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9454. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9455. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9456. msm_routing_put_audio_mixer),
  9457. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9458. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9459. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9460. msm_routing_put_audio_mixer),
  9461. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9462. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9463. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9464. msm_routing_put_audio_mixer),
  9465. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9466. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  9467. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9468. msm_routing_put_audio_mixer),
  9469. };
  9470. static const struct snd_kcontrol_new sec_tdm_rx_2_mixer_controls[] = {
  9471. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9472. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9473. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9474. msm_routing_put_audio_mixer),
  9475. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9476. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9477. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9478. msm_routing_put_audio_mixer),
  9479. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9480. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9481. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9482. msm_routing_put_audio_mixer),
  9483. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9484. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9485. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9486. msm_routing_put_audio_mixer),
  9487. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9488. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9489. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9490. msm_routing_put_audio_mixer),
  9491. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9492. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9493. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9494. msm_routing_put_audio_mixer),
  9495. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9496. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9497. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9498. msm_routing_put_audio_mixer),
  9499. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9500. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9501. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9502. msm_routing_put_audio_mixer),
  9503. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9504. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9505. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9506. msm_routing_put_audio_mixer),
  9507. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9508. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9509. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9510. msm_routing_put_audio_mixer),
  9511. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9512. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9513. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9514. msm_routing_put_audio_mixer),
  9515. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9516. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9517. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9518. msm_routing_put_audio_mixer),
  9519. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9520. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9521. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9522. msm_routing_put_audio_mixer),
  9523. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9524. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9525. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9526. msm_routing_put_audio_mixer),
  9527. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9528. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9529. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9530. msm_routing_put_audio_mixer),
  9531. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9532. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9533. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9534. msm_routing_put_audio_mixer),
  9535. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9536. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9537. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9538. msm_routing_put_audio_mixer),
  9539. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9540. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  9541. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9542. msm_routing_put_audio_mixer),
  9543. };
  9544. static const struct snd_kcontrol_new sec_tdm_rx_3_mixer_controls[] = {
  9545. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9546. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9548. msm_routing_put_audio_mixer),
  9549. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9550. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9551. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9552. msm_routing_put_audio_mixer),
  9553. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9554. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9555. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9556. msm_routing_put_audio_mixer),
  9557. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9558. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9559. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9560. msm_routing_put_audio_mixer),
  9561. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9562. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9564. msm_routing_put_audio_mixer),
  9565. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9566. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9567. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9568. msm_routing_put_audio_mixer),
  9569. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9570. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9571. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9572. msm_routing_put_audio_mixer),
  9573. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9574. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9575. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9576. msm_routing_put_audio_mixer),
  9577. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9578. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9579. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9580. msm_routing_put_audio_mixer),
  9581. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9582. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9583. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9584. msm_routing_put_audio_mixer),
  9585. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9586. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9587. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9588. msm_routing_put_audio_mixer),
  9589. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9590. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9591. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9592. msm_routing_put_audio_mixer),
  9593. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9594. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9595. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9596. msm_routing_put_audio_mixer),
  9597. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9598. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9599. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9600. msm_routing_put_audio_mixer),
  9601. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9602. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9603. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9604. msm_routing_put_audio_mixer),
  9605. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9606. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9607. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9608. msm_routing_put_audio_mixer),
  9609. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9610. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9611. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9612. msm_routing_put_audio_mixer),
  9613. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9614. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  9615. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9616. msm_routing_put_audio_mixer),
  9617. };
  9618. static const struct snd_kcontrol_new sec_tdm_tx_0_mixer_controls[] = {
  9619. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9620. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9621. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9622. msm_routing_put_audio_mixer),
  9623. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9624. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9625. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9626. msm_routing_put_audio_mixer),
  9627. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9628. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9629. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9630. msm_routing_put_audio_mixer),
  9631. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9632. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9633. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9634. msm_routing_put_audio_mixer),
  9635. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9636. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9637. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9638. msm_routing_put_audio_mixer),
  9639. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9640. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9642. msm_routing_put_audio_mixer),
  9643. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9644. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9645. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9646. msm_routing_put_audio_mixer),
  9647. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9648. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9649. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9650. msm_routing_put_audio_mixer),
  9651. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9652. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9653. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9654. msm_routing_put_audio_mixer),
  9655. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9656. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9657. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9658. msm_routing_put_audio_mixer),
  9659. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9660. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9661. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9662. msm_routing_put_audio_mixer),
  9663. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9664. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9665. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9666. msm_routing_put_audio_mixer),
  9667. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9668. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9669. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9670. msm_routing_put_audio_mixer),
  9671. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9672. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9673. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9674. msm_routing_put_audio_mixer),
  9675. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9676. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9677. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9678. msm_routing_put_audio_mixer),
  9679. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9680. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  9681. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9682. msm_routing_put_audio_mixer),
  9683. };
  9684. static const struct snd_kcontrol_new tert_tdm_rx_0_mixer_controls[] = {
  9685. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9686. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9688. msm_routing_put_audio_mixer),
  9689. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9690. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9691. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9692. msm_routing_put_audio_mixer),
  9693. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9694. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9695. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9696. msm_routing_put_audio_mixer),
  9697. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9698. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9699. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9700. msm_routing_put_audio_mixer),
  9701. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9702. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9703. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9704. msm_routing_put_audio_mixer),
  9705. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9706. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9707. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9708. msm_routing_put_audio_mixer),
  9709. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9710. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9711. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9712. msm_routing_put_audio_mixer),
  9713. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9714. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9715. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9716. msm_routing_put_audio_mixer),
  9717. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9718. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9719. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9720. msm_routing_put_audio_mixer),
  9721. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9722. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9723. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9724. msm_routing_put_audio_mixer),
  9725. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9726. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9727. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9728. msm_routing_put_audio_mixer),
  9729. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9730. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9731. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9732. msm_routing_put_audio_mixer),
  9733. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9734. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9735. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9736. msm_routing_put_audio_mixer),
  9737. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9738. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9739. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9740. msm_routing_put_audio_mixer),
  9741. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9742. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9743. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9744. msm_routing_put_audio_mixer),
  9745. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9746. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9747. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9748. msm_routing_put_audio_mixer),
  9749. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9750. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9751. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9752. msm_routing_put_audio_mixer),
  9753. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9754. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  9755. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9756. msm_routing_put_audio_mixer),
  9757. };
  9758. static const struct snd_kcontrol_new tert_tdm_tx_0_mixer_controls[] = {
  9759. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9760. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9761. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9762. msm_routing_put_audio_mixer),
  9763. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9764. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9765. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9766. msm_routing_put_audio_mixer),
  9767. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9768. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9769. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9770. msm_routing_put_audio_mixer),
  9771. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9772. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9773. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9774. msm_routing_put_audio_mixer),
  9775. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9776. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9777. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9778. msm_routing_put_audio_mixer),
  9779. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9780. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9782. msm_routing_put_audio_mixer),
  9783. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9784. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9785. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9786. msm_routing_put_audio_mixer),
  9787. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9788. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9789. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9790. msm_routing_put_audio_mixer),
  9791. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9792. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9793. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9794. msm_routing_put_audio_mixer),
  9795. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9797. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9798. msm_routing_put_audio_mixer),
  9799. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9800. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9801. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9802. msm_routing_put_audio_mixer),
  9803. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9804. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9805. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9806. msm_routing_put_audio_mixer),
  9807. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9808. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9809. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9810. msm_routing_put_audio_mixer),
  9811. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9812. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9813. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9814. msm_routing_put_audio_mixer),
  9815. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9816. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9817. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9818. msm_routing_put_audio_mixer),
  9819. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9820. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  9821. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9822. msm_routing_put_audio_mixer),
  9823. };
  9824. static const struct snd_kcontrol_new tert_tdm_rx_1_mixer_controls[] = {
  9825. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9826. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9827. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9828. msm_routing_put_audio_mixer),
  9829. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9830. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9831. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9832. msm_routing_put_audio_mixer),
  9833. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9834. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9835. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9836. msm_routing_put_audio_mixer),
  9837. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9838. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9839. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9840. msm_routing_put_audio_mixer),
  9841. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9842. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9843. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9844. msm_routing_put_audio_mixer),
  9845. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9846. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9847. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9848. msm_routing_put_audio_mixer),
  9849. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9850. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9851. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9852. msm_routing_put_audio_mixer),
  9853. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9854. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9856. msm_routing_put_audio_mixer),
  9857. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9858. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9859. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9860. msm_routing_put_audio_mixer),
  9861. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9862. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9863. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9864. msm_routing_put_audio_mixer),
  9865. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9866. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9867. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9868. msm_routing_put_audio_mixer),
  9869. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9870. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9871. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9872. msm_routing_put_audio_mixer),
  9873. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9874. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9875. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9876. msm_routing_put_audio_mixer),
  9877. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9878. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9879. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9880. msm_routing_put_audio_mixer),
  9881. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9882. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9883. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9884. msm_routing_put_audio_mixer),
  9885. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9886. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9887. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9888. msm_routing_put_audio_mixer),
  9889. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9890. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9891. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9892. msm_routing_put_audio_mixer),
  9893. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9894. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  9895. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9896. msm_routing_put_audio_mixer),
  9897. };
  9898. static const struct snd_kcontrol_new tert_tdm_rx_2_mixer_controls[] = {
  9899. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9900. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9901. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9902. msm_routing_put_audio_mixer),
  9903. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9904. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9906. msm_routing_put_audio_mixer),
  9907. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9908. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9909. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9910. msm_routing_put_audio_mixer),
  9911. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9912. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9913. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9914. msm_routing_put_audio_mixer),
  9915. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9916. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9917. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9918. msm_routing_put_audio_mixer),
  9919. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9920. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9921. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9922. msm_routing_put_audio_mixer),
  9923. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9924. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9925. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  9926. msm_routing_put_audio_mixer),
  9927. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  9928. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9929. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  9930. msm_routing_put_audio_mixer),
  9931. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  9932. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9933. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  9934. msm_routing_put_audio_mixer),
  9935. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  9936. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9937. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  9938. msm_routing_put_audio_mixer),
  9939. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  9940. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9941. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  9942. msm_routing_put_audio_mixer),
  9943. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  9944. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9945. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  9946. msm_routing_put_audio_mixer),
  9947. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  9948. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9949. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  9950. msm_routing_put_audio_mixer),
  9951. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  9952. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9953. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  9954. msm_routing_put_audio_mixer),
  9955. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  9956. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9957. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  9958. msm_routing_put_audio_mixer),
  9959. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  9960. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9961. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  9962. msm_routing_put_audio_mixer),
  9963. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  9964. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9965. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  9966. msm_routing_put_audio_mixer),
  9967. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  9968. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  9969. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  9970. msm_routing_put_audio_mixer),
  9971. };
  9972. static const struct snd_kcontrol_new tert_tdm_rx_3_mixer_controls[] = {
  9973. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  9974. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9975. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  9976. msm_routing_put_audio_mixer),
  9977. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  9978. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9979. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  9980. msm_routing_put_audio_mixer),
  9981. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  9982. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  9984. msm_routing_put_audio_mixer),
  9985. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  9986. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9987. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  9988. msm_routing_put_audio_mixer),
  9989. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  9990. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9991. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  9992. msm_routing_put_audio_mixer),
  9993. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  9994. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9995. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  9996. msm_routing_put_audio_mixer),
  9997. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  9998. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  9999. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10000. msm_routing_put_audio_mixer),
  10001. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10002. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10004. msm_routing_put_audio_mixer),
  10005. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10006. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10007. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10008. msm_routing_put_audio_mixer),
  10009. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10010. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10011. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10012. msm_routing_put_audio_mixer),
  10013. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10014. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10015. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10016. msm_routing_put_audio_mixer),
  10017. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10018. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10019. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10020. msm_routing_put_audio_mixer),
  10021. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10022. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10023. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10024. msm_routing_put_audio_mixer),
  10025. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10026. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10027. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10028. msm_routing_put_audio_mixer),
  10029. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10030. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10031. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10032. msm_routing_put_audio_mixer),
  10033. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10034. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10035. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10036. msm_routing_put_audio_mixer),
  10037. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10038. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10039. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10040. msm_routing_put_audio_mixer),
  10041. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10042. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  10043. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10044. msm_routing_put_audio_mixer),
  10045. };
  10046. static const struct snd_kcontrol_new tert_tdm_rx_4_mixer_controls[] = {
  10047. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10048. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10049. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10050. msm_routing_put_audio_mixer),
  10051. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10052. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10053. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10054. msm_routing_put_audio_mixer),
  10055. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10056. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10057. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10058. msm_routing_put_audio_mixer),
  10059. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10060. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10061. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10062. msm_routing_put_audio_mixer),
  10063. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10064. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10065. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10066. msm_routing_put_audio_mixer),
  10067. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10068. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10069. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10070. msm_routing_put_audio_mixer),
  10071. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10072. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10073. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10074. msm_routing_put_audio_mixer),
  10075. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10076. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10077. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10078. msm_routing_put_audio_mixer),
  10079. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10080. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10081. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10082. msm_routing_put_audio_mixer),
  10083. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10084. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10085. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10086. msm_routing_put_audio_mixer),
  10087. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10088. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10089. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10090. msm_routing_put_audio_mixer),
  10091. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10092. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10093. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10094. msm_routing_put_audio_mixer),
  10095. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10096. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10097. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10098. msm_routing_put_audio_mixer),
  10099. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10100. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10101. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10102. msm_routing_put_audio_mixer),
  10103. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10104. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10105. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10106. msm_routing_put_audio_mixer),
  10107. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10108. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10110. msm_routing_put_audio_mixer),
  10111. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10112. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10113. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10114. msm_routing_put_audio_mixer),
  10115. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10116. MSM_BACKEND_DAI_TERT_TDM_RX_4,
  10117. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10118. msm_routing_put_audio_mixer),
  10119. };
  10120. static const struct snd_kcontrol_new quat_tdm_rx_0_mixer_controls[] = {
  10121. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10122. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10123. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10124. msm_routing_put_audio_mixer),
  10125. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10126. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10127. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10128. msm_routing_put_audio_mixer),
  10129. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10130. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10132. msm_routing_put_audio_mixer),
  10133. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10134. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10135. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10136. msm_routing_put_audio_mixer),
  10137. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10138. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10139. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10140. msm_routing_put_audio_mixer),
  10141. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10142. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10143. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10144. msm_routing_put_audio_mixer),
  10145. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10146. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10147. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10148. msm_routing_put_audio_mixer),
  10149. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10150. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10151. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10152. msm_routing_put_audio_mixer),
  10153. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10154. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10155. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10156. msm_routing_put_audio_mixer),
  10157. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10158. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10159. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10160. msm_routing_put_audio_mixer),
  10161. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10162. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10163. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10164. msm_routing_put_audio_mixer),
  10165. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10166. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10167. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10168. msm_routing_put_audio_mixer),
  10169. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10170. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10171. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10172. msm_routing_put_audio_mixer),
  10173. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10174. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10175. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10176. msm_routing_put_audio_mixer),
  10177. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10178. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10179. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10180. msm_routing_put_audio_mixer),
  10181. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10182. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10183. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10184. msm_routing_put_audio_mixer),
  10185. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10186. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10187. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10188. msm_routing_put_audio_mixer),
  10189. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10190. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10191. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10192. msm_routing_put_audio_mixer),
  10193. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10194. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  10195. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10196. msm_routing_put_audio_mixer),
  10197. };
  10198. static const struct snd_kcontrol_new quat_tdm_tx_0_mixer_controls[] = {
  10199. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10200. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10201. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10202. msm_routing_put_audio_mixer),
  10203. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10204. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10205. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10206. msm_routing_put_audio_mixer),
  10207. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10209. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10210. msm_routing_put_audio_mixer),
  10211. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10212. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10214. msm_routing_put_audio_mixer),
  10215. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10216. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10217. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10218. msm_routing_put_audio_mixer),
  10219. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10220. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10221. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10222. msm_routing_put_audio_mixer),
  10223. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10224. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10225. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10226. msm_routing_put_audio_mixer),
  10227. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10228. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10229. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10230. msm_routing_put_audio_mixer),
  10231. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10232. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10233. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10234. msm_routing_put_audio_mixer),
  10235. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10236. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10237. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10238. msm_routing_put_audio_mixer),
  10239. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10241. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10242. msm_routing_put_audio_mixer),
  10243. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10244. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10245. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10246. msm_routing_put_audio_mixer),
  10247. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10248. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10249. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10250. msm_routing_put_audio_mixer),
  10251. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10252. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10253. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10254. msm_routing_put_audio_mixer),
  10255. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10256. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10257. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10258. msm_routing_put_audio_mixer),
  10259. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10260. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  10261. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10262. msm_routing_put_audio_mixer),
  10263. };
  10264. static const struct snd_kcontrol_new quat_tdm_rx_1_mixer_controls[] = {
  10265. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10266. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10267. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10268. msm_routing_put_audio_mixer),
  10269. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10270. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10271. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10272. msm_routing_put_audio_mixer),
  10273. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10274. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10275. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10276. msm_routing_put_audio_mixer),
  10277. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10278. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10279. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10280. msm_routing_put_audio_mixer),
  10281. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10282. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10283. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10284. msm_routing_put_audio_mixer),
  10285. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10286. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10287. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10288. msm_routing_put_audio_mixer),
  10289. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10290. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10291. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10292. msm_routing_put_audio_mixer),
  10293. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10294. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10295. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10296. msm_routing_put_audio_mixer),
  10297. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10298. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10299. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10300. msm_routing_put_audio_mixer),
  10301. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10302. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10303. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10304. msm_routing_put_audio_mixer),
  10305. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10306. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10307. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10308. msm_routing_put_audio_mixer),
  10309. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10310. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10311. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10312. msm_routing_put_audio_mixer),
  10313. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10314. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10315. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10316. msm_routing_put_audio_mixer),
  10317. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10318. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10319. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10320. msm_routing_put_audio_mixer),
  10321. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10322. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10323. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10324. msm_routing_put_audio_mixer),
  10325. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10326. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10327. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10328. msm_routing_put_audio_mixer),
  10329. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10330. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10331. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10332. msm_routing_put_audio_mixer),
  10333. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10334. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10335. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10336. msm_routing_put_audio_mixer),
  10337. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10338. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  10339. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10340. msm_routing_put_audio_mixer),
  10341. };
  10342. static const struct snd_kcontrol_new quat_tdm_rx_2_mixer_controls[] = {
  10343. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10344. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10345. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10346. msm_routing_put_audio_mixer),
  10347. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10348. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10349. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10350. msm_routing_put_audio_mixer),
  10351. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10352. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10353. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10354. msm_routing_put_audio_mixer),
  10355. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10356. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10358. msm_routing_put_audio_mixer),
  10359. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10360. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10361. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10362. msm_routing_put_audio_mixer),
  10363. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10364. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10365. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10366. msm_routing_put_audio_mixer),
  10367. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10368. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10369. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10370. msm_routing_put_audio_mixer),
  10371. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10372. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10373. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10374. msm_routing_put_audio_mixer),
  10375. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10376. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10378. msm_routing_put_audio_mixer),
  10379. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10380. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10381. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10382. msm_routing_put_audio_mixer),
  10383. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10384. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10385. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10386. msm_routing_put_audio_mixer),
  10387. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10388. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10389. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10390. msm_routing_put_audio_mixer),
  10391. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10392. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10393. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10394. msm_routing_put_audio_mixer),
  10395. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10396. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10397. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10398. msm_routing_put_audio_mixer),
  10399. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10400. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10401. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10402. msm_routing_put_audio_mixer),
  10403. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10404. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10405. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10406. msm_routing_put_audio_mixer),
  10407. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10408. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10409. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10410. msm_routing_put_audio_mixer),
  10411. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10412. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10413. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10414. msm_routing_put_audio_mixer),
  10415. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10416. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  10417. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10418. msm_routing_put_audio_mixer),
  10419. };
  10420. static const struct snd_kcontrol_new quat_tdm_rx_3_mixer_controls[] = {
  10421. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10422. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10423. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10424. msm_routing_put_audio_mixer),
  10425. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10426. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10427. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10428. msm_routing_put_audio_mixer),
  10429. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10430. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10431. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10432. msm_routing_put_audio_mixer),
  10433. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10434. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10435. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10436. msm_routing_put_audio_mixer),
  10437. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10438. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10439. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10440. msm_routing_put_audio_mixer),
  10441. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10442. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10443. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10444. msm_routing_put_audio_mixer),
  10445. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10446. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10447. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10448. msm_routing_put_audio_mixer),
  10449. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10450. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10451. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10452. msm_routing_put_audio_mixer),
  10453. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10454. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10455. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10456. msm_routing_put_audio_mixer),
  10457. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10458. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10460. msm_routing_put_audio_mixer),
  10461. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10462. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10463. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10464. msm_routing_put_audio_mixer),
  10465. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10466. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10467. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10468. msm_routing_put_audio_mixer),
  10469. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10470. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10471. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10472. msm_routing_put_audio_mixer),
  10473. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10474. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10475. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10476. msm_routing_put_audio_mixer),
  10477. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10478. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10479. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10480. msm_routing_put_audio_mixer),
  10481. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10482. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10483. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10484. msm_routing_put_audio_mixer),
  10485. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10486. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10487. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10488. msm_routing_put_audio_mixer),
  10489. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10490. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10491. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10492. msm_routing_put_audio_mixer),
  10493. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10494. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  10495. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10496. msm_routing_put_audio_mixer),
  10497. };
  10498. static const struct snd_kcontrol_new quin_tdm_rx_0_mixer_controls[] = {
  10499. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10500. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10501. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10502. msm_routing_put_audio_mixer),
  10503. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10504. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10505. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10506. msm_routing_put_audio_mixer),
  10507. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10508. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10509. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10510. msm_routing_put_audio_mixer),
  10511. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10512. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10513. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10514. msm_routing_put_audio_mixer),
  10515. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10516. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10517. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10518. msm_routing_put_audio_mixer),
  10519. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10520. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10521. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10522. msm_routing_put_audio_mixer),
  10523. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10524. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10525. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10526. msm_routing_put_audio_mixer),
  10527. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10528. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10529. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10530. msm_routing_put_audio_mixer),
  10531. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10532. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10533. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10534. msm_routing_put_audio_mixer),
  10535. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10536. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10537. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10538. msm_routing_put_audio_mixer),
  10539. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10540. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10541. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10542. msm_routing_put_audio_mixer),
  10543. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10544. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10545. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10546. msm_routing_put_audio_mixer),
  10547. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10548. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10549. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10550. msm_routing_put_audio_mixer),
  10551. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10552. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10553. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10554. msm_routing_put_audio_mixer),
  10555. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10556. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10557. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10558. msm_routing_put_audio_mixer),
  10559. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10560. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10561. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10562. msm_routing_put_audio_mixer),
  10563. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10564. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10565. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10566. msm_routing_put_audio_mixer),
  10567. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10568. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10569. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10570. msm_routing_put_audio_mixer),
  10571. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10572. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  10573. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10574. msm_routing_put_audio_mixer),
  10575. };
  10576. static const struct snd_kcontrol_new quin_tdm_tx_0_mixer_controls[] = {
  10577. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10578. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10580. msm_routing_put_audio_mixer),
  10581. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10582. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10583. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10584. msm_routing_put_audio_mixer),
  10585. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10586. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10587. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10588. msm_routing_put_audio_mixer),
  10589. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10590. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10591. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10592. msm_routing_put_audio_mixer),
  10593. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10594. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10596. msm_routing_put_audio_mixer),
  10597. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10598. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10599. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10600. msm_routing_put_audio_mixer),
  10601. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10603. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10604. msm_routing_put_audio_mixer),
  10605. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10606. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10607. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10608. msm_routing_put_audio_mixer),
  10609. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10610. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10611. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10612. msm_routing_put_audio_mixer),
  10613. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10614. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10615. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10616. msm_routing_put_audio_mixer),
  10617. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10618. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10619. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10620. msm_routing_put_audio_mixer),
  10621. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10622. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10623. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10624. msm_routing_put_audio_mixer),
  10625. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10626. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10627. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10628. msm_routing_put_audio_mixer),
  10629. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10630. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10631. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10632. msm_routing_put_audio_mixer),
  10633. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10634. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10635. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10636. msm_routing_put_audio_mixer),
  10637. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10638. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  10639. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10640. msm_routing_put_audio_mixer),
  10641. };
  10642. static const struct snd_kcontrol_new quin_tdm_tx_1_mixer_controls[] = {
  10643. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10644. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10645. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10646. msm_routing_put_audio_mixer),
  10647. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10648. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10649. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10650. msm_routing_put_audio_mixer),
  10651. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10652. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10653. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10654. msm_routing_put_audio_mixer),
  10655. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10656. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10657. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10658. msm_routing_put_audio_mixer),
  10659. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10660. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10661. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10662. msm_routing_put_audio_mixer),
  10663. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10664. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10666. msm_routing_put_audio_mixer),
  10667. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10668. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10669. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10670. msm_routing_put_audio_mixer),
  10671. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10672. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10673. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10674. msm_routing_put_audio_mixer),
  10675. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10676. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10677. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10678. msm_routing_put_audio_mixer),
  10679. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10680. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10681. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10682. msm_routing_put_audio_mixer),
  10683. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10684. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10685. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10686. msm_routing_put_audio_mixer),
  10687. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10688. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10689. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10690. msm_routing_put_audio_mixer),
  10691. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10692. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10693. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10694. msm_routing_put_audio_mixer),
  10695. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10696. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10697. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10698. msm_routing_put_audio_mixer),
  10699. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10700. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10701. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10702. msm_routing_put_audio_mixer),
  10703. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10704. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  10705. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10706. msm_routing_put_audio_mixer),
  10707. };
  10708. static const struct snd_kcontrol_new quin_tdm_rx_1_mixer_controls[] = {
  10709. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10710. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10711. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10712. msm_routing_put_audio_mixer),
  10713. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10714. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10715. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10716. msm_routing_put_audio_mixer),
  10717. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10718. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10719. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10720. msm_routing_put_audio_mixer),
  10721. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10722. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10723. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10724. msm_routing_put_audio_mixer),
  10725. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10726. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10727. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10728. msm_routing_put_audio_mixer),
  10729. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10730. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10731. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10732. msm_routing_put_audio_mixer),
  10733. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10734. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10735. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10736. msm_routing_put_audio_mixer),
  10737. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10738. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10739. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10740. msm_routing_put_audio_mixer),
  10741. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10742. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10743. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10744. msm_routing_put_audio_mixer),
  10745. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10746. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10747. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10748. msm_routing_put_audio_mixer),
  10749. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10750. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10751. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10752. msm_routing_put_audio_mixer),
  10753. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10754. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10755. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10756. msm_routing_put_audio_mixer),
  10757. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10758. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10759. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10760. msm_routing_put_audio_mixer),
  10761. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10762. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10763. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10764. msm_routing_put_audio_mixer),
  10765. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10766. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10767. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10768. msm_routing_put_audio_mixer),
  10769. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10770. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10771. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10772. msm_routing_put_audio_mixer),
  10773. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10774. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10775. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10776. msm_routing_put_audio_mixer),
  10777. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10778. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10779. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10780. msm_routing_put_audio_mixer),
  10781. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10782. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  10783. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10784. msm_routing_put_audio_mixer),
  10785. };
  10786. static const struct snd_kcontrol_new quin_tdm_tx_2_mixer_controls[] = {
  10787. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10788. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10789. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10790. msm_routing_put_audio_mixer),
  10791. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10792. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10794. msm_routing_put_audio_mixer),
  10795. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10796. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10797. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10798. msm_routing_put_audio_mixer),
  10799. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10800. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10801. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10802. msm_routing_put_audio_mixer),
  10803. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10804. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10805. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10806. msm_routing_put_audio_mixer),
  10807. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10808. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10810. msm_routing_put_audio_mixer),
  10811. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10812. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10813. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10814. msm_routing_put_audio_mixer),
  10815. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10816. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10817. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10818. msm_routing_put_audio_mixer),
  10819. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10820. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10821. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10822. msm_routing_put_audio_mixer),
  10823. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10824. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10825. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10826. msm_routing_put_audio_mixer),
  10827. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10828. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10829. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10830. msm_routing_put_audio_mixer),
  10831. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10832. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10833. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10834. msm_routing_put_audio_mixer),
  10835. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10836. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10837. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10838. msm_routing_put_audio_mixer),
  10839. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10840. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10841. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10842. msm_routing_put_audio_mixer),
  10843. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10844. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10845. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10846. msm_routing_put_audio_mixer),
  10847. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10848. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  10849. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10850. msm_routing_put_audio_mixer),
  10851. };
  10852. static const struct snd_kcontrol_new quin_tdm_rx_2_mixer_controls[] = {
  10853. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10854. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10855. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10856. msm_routing_put_audio_mixer),
  10857. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10858. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10859. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10860. msm_routing_put_audio_mixer),
  10861. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10862. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10863. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10864. msm_routing_put_audio_mixer),
  10865. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10866. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10867. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10868. msm_routing_put_audio_mixer),
  10869. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10870. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10871. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10872. msm_routing_put_audio_mixer),
  10873. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10874. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10875. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10876. msm_routing_put_audio_mixer),
  10877. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10878. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10879. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10880. msm_routing_put_audio_mixer),
  10881. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10882. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10884. msm_routing_put_audio_mixer),
  10885. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10886. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10887. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10888. msm_routing_put_audio_mixer),
  10889. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10890. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10891. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10892. msm_routing_put_audio_mixer),
  10893. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10894. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10895. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10896. msm_routing_put_audio_mixer),
  10897. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10898. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10899. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10900. msm_routing_put_audio_mixer),
  10901. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10902. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10903. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10904. msm_routing_put_audio_mixer),
  10905. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10906. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10907. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10908. msm_routing_put_audio_mixer),
  10909. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10910. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10911. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10912. msm_routing_put_audio_mixer),
  10913. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10914. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10915. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10916. msm_routing_put_audio_mixer),
  10917. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  10918. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10919. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  10920. msm_routing_put_audio_mixer),
  10921. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  10922. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10923. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  10924. msm_routing_put_audio_mixer),
  10925. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  10926. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  10927. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  10928. msm_routing_put_audio_mixer),
  10929. };
  10930. static const struct snd_kcontrol_new quin_tdm_tx_3_mixer_controls[] = {
  10931. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10932. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10933. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  10934. msm_routing_put_audio_mixer),
  10935. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  10936. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10937. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  10938. msm_routing_put_audio_mixer),
  10939. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  10940. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10941. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  10942. msm_routing_put_audio_mixer),
  10943. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  10944. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10945. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  10946. msm_routing_put_audio_mixer),
  10947. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  10948. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10949. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  10950. msm_routing_put_audio_mixer),
  10951. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  10952. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10953. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  10954. msm_routing_put_audio_mixer),
  10955. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  10956. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10957. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  10958. msm_routing_put_audio_mixer),
  10959. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  10960. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10961. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  10962. msm_routing_put_audio_mixer),
  10963. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  10964. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10965. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  10966. msm_routing_put_audio_mixer),
  10967. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  10968. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10969. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  10970. msm_routing_put_audio_mixer),
  10971. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  10972. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10973. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  10974. msm_routing_put_audio_mixer),
  10975. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  10976. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10977. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  10978. msm_routing_put_audio_mixer),
  10979. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  10980. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10981. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  10982. msm_routing_put_audio_mixer),
  10983. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  10984. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10985. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  10986. msm_routing_put_audio_mixer),
  10987. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  10988. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10989. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  10990. msm_routing_put_audio_mixer),
  10991. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  10992. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  10993. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  10994. msm_routing_put_audio_mixer),
  10995. };
  10996. static const struct snd_kcontrol_new quin_tdm_rx_3_mixer_controls[] = {
  10997. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  10998. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  10999. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11000. msm_routing_put_audio_mixer),
  11001. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11002. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11003. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11004. msm_routing_put_audio_mixer),
  11005. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11006. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11008. msm_routing_put_audio_mixer),
  11009. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11010. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11011. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11012. msm_routing_put_audio_mixer),
  11013. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11014. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11015. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11016. msm_routing_put_audio_mixer),
  11017. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11018. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11019. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11020. msm_routing_put_audio_mixer),
  11021. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11022. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11023. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11024. msm_routing_put_audio_mixer),
  11025. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11026. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11028. msm_routing_put_audio_mixer),
  11029. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11030. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11031. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11032. msm_routing_put_audio_mixer),
  11033. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11034. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11035. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11036. msm_routing_put_audio_mixer),
  11037. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11038. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11039. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11040. msm_routing_put_audio_mixer),
  11041. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11042. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11043. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11044. msm_routing_put_audio_mixer),
  11045. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11046. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11047. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11048. msm_routing_put_audio_mixer),
  11049. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11050. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11051. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11052. msm_routing_put_audio_mixer),
  11053. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11054. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11055. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11056. msm_routing_put_audio_mixer),
  11057. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11058. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11059. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11060. msm_routing_put_audio_mixer),
  11061. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11062. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11063. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11064. msm_routing_put_audio_mixer),
  11065. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11066. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11067. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11068. msm_routing_put_audio_mixer),
  11069. SOC_DOUBLE_EXT("MultiMedia22", SND_SOC_NOPM,
  11070. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  11071. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  11072. msm_routing_put_audio_mixer),
  11073. };
  11074. static const struct snd_kcontrol_new sen_tdm_rx_0_mixer_controls[] = {
  11075. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11076. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11077. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11078. msm_routing_put_audio_mixer),
  11079. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11080. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11081. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11082. msm_routing_put_audio_mixer),
  11083. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11084. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11085. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11086. msm_routing_put_audio_mixer),
  11087. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11088. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11089. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11090. msm_routing_put_audio_mixer),
  11091. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11092. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11093. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11094. msm_routing_put_audio_mixer),
  11095. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11096. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11097. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11098. msm_routing_put_audio_mixer),
  11099. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11100. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11101. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11102. msm_routing_put_audio_mixer),
  11103. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11104. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11105. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11106. msm_routing_put_audio_mixer),
  11107. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11108. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11109. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11110. msm_routing_put_audio_mixer),
  11111. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11112. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11113. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11114. msm_routing_put_audio_mixer),
  11115. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11116. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11117. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11118. msm_routing_put_audio_mixer),
  11119. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11120. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11121. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11122. msm_routing_put_audio_mixer),
  11123. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11124. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11125. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11126. msm_routing_put_audio_mixer),
  11127. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11128. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11129. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11130. msm_routing_put_audio_mixer),
  11131. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11132. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11133. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11134. msm_routing_put_audio_mixer),
  11135. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11136. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11138. msm_routing_put_audio_mixer),
  11139. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11140. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11141. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11142. msm_routing_put_audio_mixer),
  11143. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11144. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  11145. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11146. msm_routing_put_audio_mixer),
  11147. };
  11148. static const struct snd_kcontrol_new sen_tdm_tx_0_mixer_controls[] = {
  11149. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11150. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11151. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11152. msm_routing_put_audio_mixer),
  11153. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11154. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11155. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11156. msm_routing_put_audio_mixer),
  11157. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11158. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11159. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11160. msm_routing_put_audio_mixer),
  11161. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11162. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11163. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11164. msm_routing_put_audio_mixer),
  11165. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11166. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11167. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11168. msm_routing_put_audio_mixer),
  11169. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11170. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11171. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11172. msm_routing_put_audio_mixer),
  11173. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11174. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11175. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11176. msm_routing_put_audio_mixer),
  11177. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11178. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11179. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11180. msm_routing_put_audio_mixer),
  11181. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11182. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11183. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11184. msm_routing_put_audio_mixer),
  11185. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11186. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11187. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11188. msm_routing_put_audio_mixer),
  11189. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11190. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11191. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11192. msm_routing_put_audio_mixer),
  11193. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11194. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11195. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11196. msm_routing_put_audio_mixer),
  11197. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11198. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11199. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11200. msm_routing_put_audio_mixer),
  11201. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11202. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11203. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11204. msm_routing_put_audio_mixer),
  11205. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11206. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11207. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11208. msm_routing_put_audio_mixer),
  11209. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11210. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11211. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11212. msm_routing_put_audio_mixer),
  11213. };
  11214. static const struct snd_kcontrol_new sen_tdm_rx_1_mixer_controls[] = {
  11215. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11216. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11217. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11218. msm_routing_put_audio_mixer),
  11219. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11220. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11221. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11222. msm_routing_put_audio_mixer),
  11223. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11224. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11225. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11226. msm_routing_put_audio_mixer),
  11227. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11228. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11230. msm_routing_put_audio_mixer),
  11231. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11232. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11233. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11234. msm_routing_put_audio_mixer),
  11235. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11236. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11237. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11238. msm_routing_put_audio_mixer),
  11239. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11240. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11241. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11242. msm_routing_put_audio_mixer),
  11243. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11244. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11245. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11246. msm_routing_put_audio_mixer),
  11247. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11248. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11249. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11250. msm_routing_put_audio_mixer),
  11251. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11252. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11253. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11254. msm_routing_put_audio_mixer),
  11255. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11256. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11257. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11258. msm_routing_put_audio_mixer),
  11259. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11260. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11261. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11262. msm_routing_put_audio_mixer),
  11263. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11264. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11265. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11266. msm_routing_put_audio_mixer),
  11267. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11268. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11269. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11270. msm_routing_put_audio_mixer),
  11271. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11272. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11273. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11274. msm_routing_put_audio_mixer),
  11275. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11276. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11277. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11278. msm_routing_put_audio_mixer),
  11279. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11280. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11281. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11282. msm_routing_put_audio_mixer),
  11283. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11284. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  11285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11286. msm_routing_put_audio_mixer),
  11287. };
  11288. static const struct snd_kcontrol_new sen_tdm_rx_2_mixer_controls[] = {
  11289. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11290. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11291. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11292. msm_routing_put_audio_mixer),
  11293. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11294. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11295. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11296. msm_routing_put_audio_mixer),
  11297. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11298. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11299. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11300. msm_routing_put_audio_mixer),
  11301. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11302. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11303. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11304. msm_routing_put_audio_mixer),
  11305. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11306. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11307. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11308. msm_routing_put_audio_mixer),
  11309. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11310. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11311. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11312. msm_routing_put_audio_mixer),
  11313. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11314. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11315. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11316. msm_routing_put_audio_mixer),
  11317. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11318. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11319. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11320. msm_routing_put_audio_mixer),
  11321. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11322. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11323. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11324. msm_routing_put_audio_mixer),
  11325. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11326. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11327. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11328. msm_routing_put_audio_mixer),
  11329. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11330. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11331. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11332. msm_routing_put_audio_mixer),
  11333. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11334. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11335. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11336. msm_routing_put_audio_mixer),
  11337. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11338. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11339. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11340. msm_routing_put_audio_mixer),
  11341. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11342. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11343. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11344. msm_routing_put_audio_mixer),
  11345. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11346. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11347. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11348. msm_routing_put_audio_mixer),
  11349. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11350. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11351. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11352. msm_routing_put_audio_mixer),
  11353. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11354. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11355. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11356. msm_routing_put_audio_mixer),
  11357. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11358. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  11359. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11360. msm_routing_put_audio_mixer),
  11361. };
  11362. static const struct snd_kcontrol_new sen_tdm_rx_3_mixer_controls[] = {
  11363. SOC_DOUBLE_EXT("MultiMedia1", SND_SOC_NOPM,
  11364. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11365. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11366. msm_routing_put_audio_mixer),
  11367. SOC_DOUBLE_EXT("MultiMedia2", SND_SOC_NOPM,
  11368. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11369. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11370. msm_routing_put_audio_mixer),
  11371. SOC_DOUBLE_EXT("MultiMedia3", SND_SOC_NOPM,
  11372. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11373. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11374. msm_routing_put_audio_mixer),
  11375. SOC_DOUBLE_EXT("MultiMedia4", SND_SOC_NOPM,
  11376. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11377. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  11378. msm_routing_put_audio_mixer),
  11379. SOC_DOUBLE_EXT("MultiMedia5", SND_SOC_NOPM,
  11380. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11381. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  11382. msm_routing_put_audio_mixer),
  11383. SOC_DOUBLE_EXT("MultiMedia6", SND_SOC_NOPM,
  11384. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11385. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  11386. msm_routing_put_audio_mixer),
  11387. SOC_DOUBLE_EXT("MultiMedia7", SND_SOC_NOPM,
  11388. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11389. MSM_FRONTEND_DAI_MULTIMEDIA7, 1, 0, msm_routing_get_audio_mixer,
  11390. msm_routing_put_audio_mixer),
  11391. SOC_DOUBLE_EXT("MultiMedia8", SND_SOC_NOPM,
  11392. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11393. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  11394. msm_routing_put_audio_mixer),
  11395. SOC_DOUBLE_EXT("MultiMedia9", SND_SOC_NOPM,
  11396. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  11398. msm_routing_put_audio_mixer),
  11399. SOC_DOUBLE_EXT("MultiMedia10", SND_SOC_NOPM,
  11400. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11401. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  11402. msm_routing_put_audio_mixer),
  11403. SOC_DOUBLE_EXT("MultiMedia11", SND_SOC_NOPM,
  11404. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11405. MSM_FRONTEND_DAI_MULTIMEDIA11, 1, 0, msm_routing_get_audio_mixer,
  11406. msm_routing_put_audio_mixer),
  11407. SOC_DOUBLE_EXT("MultiMedia12", SND_SOC_NOPM,
  11408. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11409. MSM_FRONTEND_DAI_MULTIMEDIA12, 1, 0, msm_routing_get_audio_mixer,
  11410. msm_routing_put_audio_mixer),
  11411. SOC_DOUBLE_EXT("MultiMedia13", SND_SOC_NOPM,
  11412. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11413. MSM_FRONTEND_DAI_MULTIMEDIA13, 1, 0, msm_routing_get_audio_mixer,
  11414. msm_routing_put_audio_mixer),
  11415. SOC_DOUBLE_EXT("MultiMedia14", SND_SOC_NOPM,
  11416. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11417. MSM_FRONTEND_DAI_MULTIMEDIA14, 1, 0, msm_routing_get_audio_mixer,
  11418. msm_routing_put_audio_mixer),
  11419. SOC_DOUBLE_EXT("MultiMedia15", SND_SOC_NOPM,
  11420. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11421. MSM_FRONTEND_DAI_MULTIMEDIA15, 1, 0, msm_routing_get_audio_mixer,
  11422. msm_routing_put_audio_mixer),
  11423. SOC_DOUBLE_EXT("MultiMedia16", SND_SOC_NOPM,
  11424. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11425. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  11426. msm_routing_put_audio_mixer),
  11427. SOC_DOUBLE_EXT("MultiMedia20", SND_SOC_NOPM,
  11428. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11429. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  11430. msm_routing_put_audio_mixer),
  11431. SOC_DOUBLE_EXT("MultiMedia21", SND_SOC_NOPM,
  11432. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  11433. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  11434. msm_routing_put_audio_mixer),
  11435. };
  11436. static const struct snd_kcontrol_new mmul1_mixer_controls[] = {
  11437. SOC_DOUBLE_EXT("PRI_TX", SND_SOC_NOPM,
  11438. MSM_BACKEND_DAI_PRI_I2S_TX,
  11439. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11440. msm_routing_put_audio_mixer),
  11441. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11442. MSM_BACKEND_DAI_MI2S_TX,
  11443. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11444. msm_routing_put_audio_mixer),
  11445. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11446. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11447. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11448. msm_routing_put_audio_mixer),
  11449. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11450. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11451. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11452. msm_routing_put_audio_mixer),
  11453. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11454. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11455. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11456. msm_routing_put_audio_mixer),
  11457. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11458. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11459. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11460. msm_routing_put_audio_mixer),
  11461. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11462. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11463. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11464. msm_routing_put_audio_mixer),
  11465. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11466. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11467. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11468. msm_routing_put_audio_mixer),
  11469. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11470. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11471. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11472. msm_routing_put_audio_mixer),
  11473. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11474. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11475. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11476. msm_routing_put_audio_mixer),
  11477. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  11478. MSM_BACKEND_DAI_AUXPCM_TX,
  11479. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11480. msm_routing_put_audio_mixer),
  11481. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  11482. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11483. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11484. msm_routing_put_audio_mixer),
  11485. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11486. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11487. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11488. msm_routing_put_audio_mixer),
  11489. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  11490. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11491. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11492. msm_routing_put_audio_mixer),
  11493. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11494. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11495. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11496. msm_routing_put_audio_mixer),
  11497. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  11498. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11499. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11500. msm_routing_put_audio_mixer),
  11501. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11502. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11503. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11504. msm_routing_put_audio_mixer),
  11505. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11506. MSM_BACKEND_DAI_INT_FM_TX,
  11507. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11508. msm_routing_put_audio_mixer),
  11509. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11510. MSM_BACKEND_DAI_AFE_PCM_TX,
  11511. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11512. msm_routing_put_audio_mixer),
  11513. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  11514. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  11515. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11516. msm_routing_put_audio_mixer),
  11517. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  11518. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  11519. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11520. msm_routing_put_audio_mixer),
  11521. SOC_DOUBLE_EXT("SLIM_4_TX", SND_SOC_NOPM,
  11522. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  11523. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11524. msm_routing_put_audio_mixer),
  11525. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11526. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11527. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11528. msm_routing_put_audio_mixer),
  11529. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11530. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11531. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11532. msm_routing_put_audio_mixer),
  11533. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11534. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11535. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11536. msm_routing_put_audio_mixer),
  11537. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11538. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11539. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11540. msm_routing_put_audio_mixer),
  11541. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11542. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11543. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11544. msm_routing_put_audio_mixer),
  11545. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11546. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11547. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11548. msm_routing_put_audio_mixer),
  11549. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11550. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11551. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11552. msm_routing_put_audio_mixer),
  11553. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11554. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11555. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11556. msm_routing_put_audio_mixer),
  11557. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11558. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11559. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11560. msm_routing_put_audio_mixer),
  11561. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11562. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11563. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11564. msm_routing_put_audio_mixer),
  11565. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11566. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11567. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11568. msm_routing_put_audio_mixer),
  11569. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11570. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11571. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11572. msm_routing_put_audio_mixer),
  11573. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11574. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11575. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11576. msm_routing_put_audio_mixer),
  11577. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11578. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11579. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11580. msm_routing_put_audio_mixer),
  11581. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11582. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11583. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11584. msm_routing_put_audio_mixer),
  11585. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11586. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11587. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11588. msm_routing_put_audio_mixer),
  11589. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11590. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11591. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11592. msm_routing_put_audio_mixer),
  11593. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11594. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11595. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11596. msm_routing_put_audio_mixer),
  11597. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11598. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11599. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11600. msm_routing_put_audio_mixer),
  11601. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11602. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11603. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11604. msm_routing_put_audio_mixer),
  11605. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11606. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11607. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11608. msm_routing_put_audio_mixer),
  11609. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11610. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11611. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11612. msm_routing_put_audio_mixer),
  11613. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11614. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11615. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11616. msm_routing_put_audio_mixer),
  11617. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11618. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11619. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11620. msm_routing_put_audio_mixer),
  11621. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11622. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11623. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11624. msm_routing_put_audio_mixer),
  11625. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11626. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11627. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11628. msm_routing_put_audio_mixer),
  11629. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11630. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11631. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11632. msm_routing_put_audio_mixer),
  11633. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  11634. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  11635. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11636. msm_routing_put_audio_mixer),
  11637. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11638. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11639. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11640. msm_routing_put_audio_mixer),
  11641. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11642. MSM_BACKEND_DAI_USB_TX,
  11643. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11644. msm_routing_put_audio_mixer),
  11645. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11646. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11647. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11648. msm_routing_put_audio_mixer),
  11649. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11650. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11651. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11652. msm_routing_put_audio_mixer),
  11653. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11654. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11655. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11656. msm_routing_put_audio_mixer),
  11657. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11658. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11659. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11660. msm_routing_put_audio_mixer),
  11661. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11662. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11663. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11664. msm_routing_put_audio_mixer),
  11665. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11666. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11667. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11668. msm_routing_put_audio_mixer),
  11669. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11670. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11671. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11672. msm_routing_put_audio_mixer),
  11673. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11674. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11675. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11676. msm_routing_put_audio_mixer),
  11677. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11678. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11679. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11680. msm_routing_put_audio_mixer),
  11681. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11682. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11683. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11684. msm_routing_put_audio_mixer),
  11685. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11686. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11687. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11688. msm_routing_put_audio_mixer),
  11689. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11690. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11691. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11692. msm_routing_put_audio_mixer),
  11693. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11694. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11695. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11696. msm_routing_put_audio_mixer),
  11697. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11698. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11699. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11700. msm_routing_put_audio_mixer),
  11701. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11702. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11703. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11704. msm_routing_put_audio_mixer),
  11705. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11706. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11707. MSM_FRONTEND_DAI_MULTIMEDIA1, 1, 0, msm_routing_get_audio_mixer,
  11708. msm_routing_put_audio_mixer),
  11709. };
  11710. static const struct snd_kcontrol_new mmul2_mixer_controls[] = {
  11711. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11712. MSM_BACKEND_DAI_INT_FM_TX,
  11713. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11714. msm_routing_put_audio_mixer),
  11715. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11716. MSM_BACKEND_DAI_MI2S_TX,
  11717. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11718. msm_routing_put_audio_mixer),
  11719. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11720. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11721. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11722. msm_routing_put_audio_mixer),
  11723. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  11724. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  11725. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11726. msm_routing_put_audio_mixer),
  11727. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11728. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11729. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11730. msm_routing_put_audio_mixer),
  11731. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11732. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11733. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11734. msm_routing_put_audio_mixer),
  11735. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11736. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11737. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11738. msm_routing_put_audio_mixer),
  11739. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  11740. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  11741. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11742. msm_routing_put_audio_mixer),
  11743. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11744. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11745. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11746. msm_routing_put_audio_mixer),
  11747. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  11748. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  11749. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11750. msm_routing_put_audio_mixer),
  11751. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11752. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11753. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11754. msm_routing_put_audio_mixer),
  11755. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  11756. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  11757. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11758. msm_routing_put_audio_mixer),
  11759. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  11760. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  11761. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11762. msm_routing_put_audio_mixer),
  11763. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  11764. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  11765. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11766. msm_routing_put_audio_mixer),
  11767. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  11768. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  11769. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11770. msm_routing_put_audio_mixer),
  11771. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  11772. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  11773. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11774. msm_routing_put_audio_mixer),
  11775. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  11776. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  11777. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11778. msm_routing_put_audio_mixer),
  11779. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  11780. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  11781. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11782. msm_routing_put_audio_mixer),
  11783. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  11784. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  11785. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11786. msm_routing_put_audio_mixer),
  11787. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  11788. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  11789. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11790. msm_routing_put_audio_mixer),
  11791. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  11792. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  11793. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11794. msm_routing_put_audio_mixer),
  11795. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  11796. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  11797. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11798. msm_routing_put_audio_mixer),
  11799. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  11800. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  11801. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11802. msm_routing_put_audio_mixer),
  11803. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  11804. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  11805. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11806. msm_routing_put_audio_mixer),
  11807. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  11808. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  11809. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11810. msm_routing_put_audio_mixer),
  11811. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  11812. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  11813. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11814. msm_routing_put_audio_mixer),
  11815. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  11816. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  11817. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11818. msm_routing_put_audio_mixer),
  11819. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  11820. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  11821. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11822. msm_routing_put_audio_mixer),
  11823. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  11824. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  11825. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11826. msm_routing_put_audio_mixer),
  11827. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  11828. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  11829. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11830. msm_routing_put_audio_mixer),
  11831. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  11832. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  11833. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11834. msm_routing_put_audio_mixer),
  11835. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  11836. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  11837. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11838. msm_routing_put_audio_mixer),
  11839. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  11840. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  11841. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11842. msm_routing_put_audio_mixer),
  11843. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  11844. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  11845. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11846. msm_routing_put_audio_mixer),
  11847. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  11848. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  11849. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11850. msm_routing_put_audio_mixer),
  11851. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  11852. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  11853. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11854. msm_routing_put_audio_mixer),
  11855. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  11856. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  11857. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11858. msm_routing_put_audio_mixer),
  11859. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  11860. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  11861. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11862. msm_routing_put_audio_mixer),
  11863. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  11864. MSM_BACKEND_DAI_USB_TX,
  11865. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11866. msm_routing_put_audio_mixer),
  11867. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11868. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  11869. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11870. msm_routing_put_audio_mixer),
  11871. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11872. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  11873. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11874. msm_routing_put_audio_mixer),
  11875. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11876. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  11877. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11878. msm_routing_put_audio_mixer),
  11879. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  11880. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  11881. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11882. msm_routing_put_audio_mixer),
  11883. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  11884. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  11885. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11886. msm_routing_put_audio_mixer),
  11887. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  11888. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  11889. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11890. msm_routing_put_audio_mixer),
  11891. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  11892. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  11893. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11894. msm_routing_put_audio_mixer),
  11895. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  11896. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  11897. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11898. msm_routing_put_audio_mixer),
  11899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  11900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  11901. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11902. msm_routing_put_audio_mixer),
  11903. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  11904. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  11905. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11906. msm_routing_put_audio_mixer),
  11907. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  11908. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  11909. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11910. msm_routing_put_audio_mixer),
  11911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  11912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  11913. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11914. msm_routing_put_audio_mixer),
  11915. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  11916. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  11917. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11918. msm_routing_put_audio_mixer),
  11919. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  11920. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  11921. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11922. msm_routing_put_audio_mixer),
  11923. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  11924. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  11925. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11926. msm_routing_put_audio_mixer),
  11927. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  11928. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  11929. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11930. msm_routing_put_audio_mixer),
  11931. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11932. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11933. MSM_FRONTEND_DAI_MULTIMEDIA2, 1, 0, msm_routing_get_audio_mixer,
  11934. msm_routing_put_audio_mixer),
  11935. };
  11936. static const struct snd_kcontrol_new mmul3_mixer_controls[] = {
  11937. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  11938. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  11939. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11940. msm_routing_put_audio_mixer),
  11941. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  11942. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  11943. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11944. msm_routing_put_audio_mixer),
  11945. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  11946. MSM_BACKEND_DAI_INT_FM_TX,
  11947. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11948. msm_routing_put_audio_mixer),
  11949. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  11950. MSM_BACKEND_DAI_MI2S_TX,
  11951. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11952. msm_routing_put_audio_mixer),
  11953. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  11954. MSM_BACKEND_DAI_AFE_PCM_TX,
  11955. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11956. msm_routing_put_audio_mixer),
  11957. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  11958. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  11959. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11960. msm_routing_put_audio_mixer),
  11961. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  11962. MSM_BACKEND_DAI_AUXPCM_TX,
  11963. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11964. msm_routing_put_audio_mixer),
  11965. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  11966. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  11967. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11968. msm_routing_put_audio_mixer),
  11969. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  11970. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  11971. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11972. msm_routing_put_audio_mixer),
  11973. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  11974. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  11975. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11976. msm_routing_put_audio_mixer),
  11977. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  11978. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  11979. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11980. msm_routing_put_audio_mixer),
  11981. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  11982. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  11983. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11984. msm_routing_put_audio_mixer),
  11985. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  11986. MSM_BACKEND_DAI_PRI_MI2S_TX,
  11987. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11988. msm_routing_put_audio_mixer),
  11989. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  11990. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  11991. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11992. msm_routing_put_audio_mixer),
  11993. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  11994. MSM_BACKEND_DAI_INT2_MI2S_TX,
  11995. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  11996. msm_routing_put_audio_mixer),
  11997. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  11998. MSM_BACKEND_DAI_INT3_MI2S_TX,
  11999. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12000. msm_routing_put_audio_mixer),
  12001. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12002. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12003. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12004. msm_routing_put_audio_mixer),
  12005. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12006. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12007. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12008. msm_routing_put_audio_mixer),
  12009. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12010. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12011. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12012. msm_routing_put_audio_mixer),
  12013. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12014. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12015. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12016. msm_routing_put_audio_mixer),
  12017. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12018. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12019. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12020. msm_routing_put_audio_mixer),
  12021. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12022. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12023. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12024. msm_routing_put_audio_mixer),
  12025. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12026. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12027. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12028. msm_routing_put_audio_mixer),
  12029. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12030. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12031. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12032. msm_routing_put_audio_mixer),
  12033. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12034. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12035. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12036. msm_routing_put_audio_mixer),
  12037. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12038. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12039. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12040. msm_routing_put_audio_mixer),
  12041. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12042. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12043. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12044. msm_routing_put_audio_mixer),
  12045. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12046. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12047. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12048. msm_routing_put_audio_mixer),
  12049. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12050. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12051. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12052. msm_routing_put_audio_mixer),
  12053. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12054. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12055. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12056. msm_routing_put_audio_mixer),
  12057. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12058. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12059. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12060. msm_routing_put_audio_mixer),
  12061. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12062. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12063. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12064. msm_routing_put_audio_mixer),
  12065. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12066. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12067. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12068. msm_routing_put_audio_mixer),
  12069. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12070. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12071. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12072. msm_routing_put_audio_mixer),
  12073. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12074. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12075. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12076. msm_routing_put_audio_mixer),
  12077. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12078. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12079. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12080. msm_routing_put_audio_mixer),
  12081. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12082. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12083. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12084. msm_routing_put_audio_mixer),
  12085. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12086. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12087. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12088. msm_routing_put_audio_mixer),
  12089. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12090. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12091. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12092. msm_routing_put_audio_mixer),
  12093. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12094. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12095. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12096. msm_routing_put_audio_mixer),
  12097. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12098. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12099. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12100. msm_routing_put_audio_mixer),
  12101. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12102. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12103. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12104. msm_routing_put_audio_mixer),
  12105. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12106. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12107. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12108. msm_routing_put_audio_mixer),
  12109. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12110. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12111. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12112. msm_routing_put_audio_mixer),
  12113. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12114. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12115. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12116. msm_routing_put_audio_mixer),
  12117. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12118. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12119. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12120. msm_routing_put_audio_mixer),
  12121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12123. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12124. msm_routing_put_audio_mixer),
  12125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12127. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12128. msm_routing_put_audio_mixer),
  12129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12131. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12132. msm_routing_put_audio_mixer),
  12133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12135. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12136. msm_routing_put_audio_mixer),
  12137. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12138. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12139. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12140. msm_routing_put_audio_mixer),
  12141. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12142. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12143. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12144. msm_routing_put_audio_mixer),
  12145. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12146. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12147. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12148. msm_routing_put_audio_mixer),
  12149. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12150. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12151. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12152. msm_routing_put_audio_mixer),
  12153. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12154. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12155. MSM_FRONTEND_DAI_MULTIMEDIA3, 1, 0, msm_routing_get_audio_mixer,
  12156. msm_routing_put_audio_mixer),
  12157. };
  12158. static const struct snd_kcontrol_new mmul4_mixer_controls[] = {
  12159. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12160. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12161. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12162. msm_routing_put_audio_mixer),
  12163. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12164. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12165. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12166. msm_routing_put_audio_mixer),
  12167. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12168. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12169. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12170. msm_routing_put_audio_mixer),
  12171. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12172. MSM_BACKEND_DAI_INT_FM_TX,
  12173. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12174. msm_routing_put_audio_mixer),
  12175. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12176. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12177. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12178. msm_routing_put_audio_mixer),
  12179. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12180. MSM_BACKEND_DAI_AFE_PCM_TX,
  12181. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12182. msm_routing_put_audio_mixer),
  12183. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12184. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12185. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12186. msm_routing_put_audio_mixer),
  12187. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12188. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12189. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12190. msm_routing_put_audio_mixer),
  12191. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12192. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12193. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12194. msm_routing_put_audio_mixer),
  12195. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12196. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12197. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12198. msm_routing_put_audio_mixer),
  12199. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12200. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12201. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12202. msm_routing_put_audio_mixer),
  12203. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12204. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12205. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12206. msm_routing_put_audio_mixer),
  12207. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12208. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12209. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12210. msm_routing_put_audio_mixer),
  12211. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12212. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12213. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12214. msm_routing_put_audio_mixer),
  12215. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12216. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12217. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12218. msm_routing_put_audio_mixer),
  12219. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12220. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12221. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12222. msm_routing_put_audio_mixer),
  12223. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12224. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12225. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12226. msm_routing_put_audio_mixer),
  12227. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12228. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12229. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12230. msm_routing_put_audio_mixer),
  12231. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12232. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12233. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12234. msm_routing_put_audio_mixer),
  12235. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12236. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12237. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12238. msm_routing_put_audio_mixer),
  12239. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12240. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12241. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12242. msm_routing_put_audio_mixer),
  12243. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12244. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12245. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12246. msm_routing_put_audio_mixer),
  12247. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12248. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12249. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12250. msm_routing_put_audio_mixer),
  12251. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12252. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12253. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12254. msm_routing_put_audio_mixer),
  12255. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12256. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12257. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12258. msm_routing_put_audio_mixer),
  12259. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12260. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12261. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12262. msm_routing_put_audio_mixer),
  12263. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12264. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12265. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12266. msm_routing_put_audio_mixer),
  12267. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12268. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12269. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12270. msm_routing_put_audio_mixer),
  12271. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12272. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12273. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12274. msm_routing_put_audio_mixer),
  12275. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12276. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12277. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12278. msm_routing_put_audio_mixer),
  12279. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12280. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12281. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12282. msm_routing_put_audio_mixer),
  12283. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12284. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12285. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12286. msm_routing_put_audio_mixer),
  12287. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12288. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12289. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12290. msm_routing_put_audio_mixer),
  12291. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12292. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12293. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12294. msm_routing_put_audio_mixer),
  12295. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12296. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12297. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12298. msm_routing_put_audio_mixer),
  12299. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12300. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12301. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12302. msm_routing_put_audio_mixer),
  12303. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12304. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12305. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12306. msm_routing_put_audio_mixer),
  12307. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12308. MSM_BACKEND_DAI_USB_TX,
  12309. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12310. msm_routing_put_audio_mixer),
  12311. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12312. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12313. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12314. msm_routing_put_audio_mixer),
  12315. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12316. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12317. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12318. msm_routing_put_audio_mixer),
  12319. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12320. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12321. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12322. msm_routing_put_audio_mixer),
  12323. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12324. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12325. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12326. msm_routing_put_audio_mixer),
  12327. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12328. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12329. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12330. msm_routing_put_audio_mixer),
  12331. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12332. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12333. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12334. msm_routing_put_audio_mixer),
  12335. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12336. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12337. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12338. msm_routing_put_audio_mixer),
  12339. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12340. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12341. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12342. msm_routing_put_audio_mixer),
  12343. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12344. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12345. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12346. msm_routing_put_audio_mixer),
  12347. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12348. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12349. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12350. msm_routing_put_audio_mixer),
  12351. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12352. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12353. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12354. msm_routing_put_audio_mixer),
  12355. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12356. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12357. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12358. msm_routing_put_audio_mixer),
  12359. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12360. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12361. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12362. msm_routing_put_audio_mixer),
  12363. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12364. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12365. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12366. msm_routing_put_audio_mixer),
  12367. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12368. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12369. MSM_FRONTEND_DAI_MULTIMEDIA4, 1, 0, msm_routing_get_audio_mixer,
  12370. msm_routing_put_audio_mixer),
  12371. };
  12372. static const struct snd_kcontrol_new mmul5_mixer_controls[] = {
  12373. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12374. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12375. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12376. msm_routing_put_audio_mixer),
  12377. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12378. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12379. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12380. msm_routing_put_audio_mixer),
  12381. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12382. MSM_BACKEND_DAI_INT_FM_TX,
  12383. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12384. msm_routing_put_audio_mixer),
  12385. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  12386. MSM_BACKEND_DAI_MI2S_TX,
  12387. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12388. msm_routing_put_audio_mixer),
  12389. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12390. MSM_BACKEND_DAI_AFE_PCM_TX,
  12391. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12392. msm_routing_put_audio_mixer),
  12393. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12394. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12395. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12396. msm_routing_put_audio_mixer),
  12397. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12398. MSM_BACKEND_DAI_AUXPCM_TX,
  12399. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12400. msm_routing_put_audio_mixer),
  12401. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  12402. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12403. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12404. msm_routing_put_audio_mixer),
  12405. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  12406. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12407. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12408. msm_routing_put_audio_mixer),
  12409. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  12410. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12411. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12412. msm_routing_put_audio_mixer),
  12413. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX", SND_SOC_NOPM,
  12414. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  12415. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12416. msm_routing_put_audio_mixer),
  12417. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX", SND_SOC_NOPM,
  12418. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  12419. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12420. msm_routing_put_audio_mixer),
  12421. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12422. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12423. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12424. msm_routing_put_audio_mixer),
  12425. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12426. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12427. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12428. msm_routing_put_audio_mixer),
  12429. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12430. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12431. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12432. msm_routing_put_audio_mixer),
  12433. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12434. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12435. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12436. msm_routing_put_audio_mixer),
  12437. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12438. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12439. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12440. msm_routing_put_audio_mixer),
  12441. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12442. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12443. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12444. msm_routing_put_audio_mixer),
  12445. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12446. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12447. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12448. msm_routing_put_audio_mixer),
  12449. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12450. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12451. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12452. msm_routing_put_audio_mixer),
  12453. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12454. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12455. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12456. msm_routing_put_audio_mixer),
  12457. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12458. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12459. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12460. msm_routing_put_audio_mixer),
  12461. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12462. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12463. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12464. msm_routing_put_audio_mixer),
  12465. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12466. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12467. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12468. msm_routing_put_audio_mixer),
  12469. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12470. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12471. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12472. msm_routing_put_audio_mixer),
  12473. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12474. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12475. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12476. msm_routing_put_audio_mixer),
  12477. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12478. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12479. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12480. msm_routing_put_audio_mixer),
  12481. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12482. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12483. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12484. msm_routing_put_audio_mixer),
  12485. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12486. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12487. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12488. msm_routing_put_audio_mixer),
  12489. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12490. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12491. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12492. msm_routing_put_audio_mixer),
  12493. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12494. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12495. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12496. msm_routing_put_audio_mixer),
  12497. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12498. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12499. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12500. msm_routing_put_audio_mixer),
  12501. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12502. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12503. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12504. msm_routing_put_audio_mixer),
  12505. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12506. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12507. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12508. msm_routing_put_audio_mixer),
  12509. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12510. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12511. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12512. msm_routing_put_audio_mixer),
  12513. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12514. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12515. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12516. msm_routing_put_audio_mixer),
  12517. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12518. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12519. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12520. msm_routing_put_audio_mixer),
  12521. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12522. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12523. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12524. msm_routing_put_audio_mixer),
  12525. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12526. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12527. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12528. msm_routing_put_audio_mixer),
  12529. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12530. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12531. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12532. msm_routing_put_audio_mixer),
  12533. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12534. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12535. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12536. msm_routing_put_audio_mixer),
  12537. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12538. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12539. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12540. msm_routing_put_audio_mixer),
  12541. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12542. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12543. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12544. msm_routing_put_audio_mixer),
  12545. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  12546. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  12547. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12548. msm_routing_put_audio_mixer),
  12549. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12550. MSM_BACKEND_DAI_USB_TX,
  12551. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12552. msm_routing_put_audio_mixer),
  12553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12555. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12556. msm_routing_put_audio_mixer),
  12557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12559. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12560. msm_routing_put_audio_mixer),
  12561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12563. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12564. msm_routing_put_audio_mixer),
  12565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12567. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12568. msm_routing_put_audio_mixer),
  12569. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12570. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12571. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12572. msm_routing_put_audio_mixer),
  12573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12575. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12576. msm_routing_put_audio_mixer),
  12577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12579. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12580. msm_routing_put_audio_mixer),
  12581. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12582. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12583. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12584. msm_routing_put_audio_mixer),
  12585. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12586. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12587. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12588. msm_routing_put_audio_mixer),
  12589. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12590. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12591. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12592. msm_routing_put_audio_mixer),
  12593. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12594. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12595. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12596. msm_routing_put_audio_mixer),
  12597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12599. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12600. msm_routing_put_audio_mixer),
  12601. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12602. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12603. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12604. msm_routing_put_audio_mixer),
  12605. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12606. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12607. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12608. msm_routing_put_audio_mixer),
  12609. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  12610. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  12611. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12612. msm_routing_put_audio_mixer),
  12613. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12614. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12615. MSM_FRONTEND_DAI_MULTIMEDIA5, 1, 0, msm_routing_get_audio_mixer,
  12616. msm_routing_put_audio_mixer),
  12617. };
  12618. static const struct snd_kcontrol_new mmul6_mixer_controls[] = {
  12619. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12620. MSM_BACKEND_DAI_INT_FM_TX,
  12621. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12622. msm_routing_put_audio_mixer),
  12623. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12624. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12625. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12626. msm_routing_put_audio_mixer),
  12627. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12628. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12629. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12630. msm_routing_put_audio_mixer),
  12631. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12632. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12633. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12634. msm_routing_put_audio_mixer),
  12635. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12636. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12637. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12638. msm_routing_put_audio_mixer),
  12639. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12640. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12641. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12642. msm_routing_put_audio_mixer),
  12643. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12644. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12645. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12646. msm_routing_put_audio_mixer),
  12647. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12648. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12649. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12650. msm_routing_put_audio_mixer),
  12651. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12652. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12653. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12654. msm_routing_put_audio_mixer),
  12655. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  12656. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  12657. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12658. msm_routing_put_audio_mixer),
  12659. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  12660. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  12661. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12662. msm_routing_put_audio_mixer),
  12663. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  12664. MSM_BACKEND_DAI_AUXPCM_TX,
  12665. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12666. msm_routing_put_audio_mixer),
  12667. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  12668. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  12669. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12670. msm_routing_put_audio_mixer),
  12671. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12672. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  12673. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12674. msm_routing_put_audio_mixer),
  12675. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  12676. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  12677. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12678. msm_routing_put_audio_mixer),
  12679. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12680. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12681. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12682. msm_routing_put_audio_mixer),
  12683. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12684. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12685. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12686. msm_routing_put_audio_mixer),
  12687. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12688. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12689. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12690. msm_routing_put_audio_mixer),
  12691. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12692. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12693. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12694. msm_routing_put_audio_mixer),
  12695. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12696. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12697. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12698. msm_routing_put_audio_mixer),
  12699. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12700. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12701. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12702. msm_routing_put_audio_mixer),
  12703. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12704. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12705. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12706. msm_routing_put_audio_mixer),
  12707. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12708. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12709. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12710. msm_routing_put_audio_mixer),
  12711. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12712. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12713. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12714. msm_routing_put_audio_mixer),
  12715. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12716. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12717. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12718. msm_routing_put_audio_mixer),
  12719. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12720. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12721. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12722. msm_routing_put_audio_mixer),
  12723. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12724. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12725. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12726. msm_routing_put_audio_mixer),
  12727. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12728. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12729. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12730. msm_routing_put_audio_mixer),
  12731. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12732. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12733. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12734. msm_routing_put_audio_mixer),
  12735. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12736. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12737. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12738. msm_routing_put_audio_mixer),
  12739. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12740. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12741. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12742. msm_routing_put_audio_mixer),
  12743. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12744. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12745. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12746. msm_routing_put_audio_mixer),
  12747. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12748. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12749. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12750. msm_routing_put_audio_mixer),
  12751. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12752. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12753. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12754. msm_routing_put_audio_mixer),
  12755. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12756. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12757. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12758. msm_routing_put_audio_mixer),
  12759. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12760. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12761. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12762. msm_routing_put_audio_mixer),
  12763. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12764. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12765. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12766. msm_routing_put_audio_mixer),
  12767. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12768. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12769. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12770. msm_routing_put_audio_mixer),
  12771. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12772. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12773. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12774. msm_routing_put_audio_mixer),
  12775. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12776. MSM_BACKEND_DAI_USB_TX,
  12777. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12778. msm_routing_put_audio_mixer),
  12779. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12780. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  12781. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12782. msm_routing_put_audio_mixer),
  12783. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12784. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  12785. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12786. msm_routing_put_audio_mixer),
  12787. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12788. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  12789. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12790. msm_routing_put_audio_mixer),
  12791. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  12792. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  12793. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12794. msm_routing_put_audio_mixer),
  12795. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  12796. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  12797. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12798. msm_routing_put_audio_mixer),
  12799. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  12800. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  12801. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12802. msm_routing_put_audio_mixer),
  12803. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  12804. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  12805. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12806. msm_routing_put_audio_mixer),
  12807. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  12808. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  12809. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12810. msm_routing_put_audio_mixer),
  12811. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  12812. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  12813. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12814. msm_routing_put_audio_mixer),
  12815. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  12816. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  12817. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12818. msm_routing_put_audio_mixer),
  12819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  12820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  12821. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12822. msm_routing_put_audio_mixer),
  12823. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  12824. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  12825. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12826. msm_routing_put_audio_mixer),
  12827. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  12828. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  12829. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12830. msm_routing_put_audio_mixer),
  12831. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  12832. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  12833. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12834. msm_routing_put_audio_mixer),
  12835. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  12836. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  12837. MSM_FRONTEND_DAI_MULTIMEDIA6, 1, 0, msm_routing_get_audio_mixer,
  12838. msm_routing_put_audio_mixer),
  12839. };
  12840. static const struct snd_kcontrol_new mmul8_mixer_controls[] = {
  12841. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  12842. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  12843. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12844. msm_routing_put_audio_mixer),
  12845. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  12846. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  12847. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12848. msm_routing_put_audio_mixer),
  12849. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  12850. MSM_BACKEND_DAI_PRI_MI2S_TX,
  12851. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12852. msm_routing_put_audio_mixer),
  12853. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  12854. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  12855. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12856. msm_routing_put_audio_mixer),
  12857. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  12858. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  12859. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12860. msm_routing_put_audio_mixer),
  12861. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  12862. MSM_BACKEND_DAI_INT2_MI2S_TX,
  12863. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12864. msm_routing_put_audio_mixer),
  12865. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  12866. MSM_BACKEND_DAI_INT3_MI2S_TX,
  12867. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12868. msm_routing_put_audio_mixer),
  12869. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  12870. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  12871. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12872. msm_routing_put_audio_mixer),
  12873. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  12874. MSM_BACKEND_DAI_INT_FM_TX,
  12875. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12876. msm_routing_put_audio_mixer),
  12877. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  12878. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  12879. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12880. msm_routing_put_audio_mixer),
  12881. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  12882. MSM_BACKEND_DAI_AFE_PCM_TX,
  12883. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12884. msm_routing_put_audio_mixer),
  12885. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  12886. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  12887. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12888. msm_routing_put_audio_mixer),
  12889. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  12890. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  12891. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12892. msm_routing_put_audio_mixer),
  12893. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  12894. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  12895. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12896. msm_routing_put_audio_mixer),
  12897. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  12898. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  12899. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12900. msm_routing_put_audio_mixer),
  12901. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  12902. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  12903. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12904. msm_routing_put_audio_mixer),
  12905. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  12906. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  12907. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12908. msm_routing_put_audio_mixer),
  12909. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  12910. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  12911. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12912. msm_routing_put_audio_mixer),
  12913. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  12914. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  12915. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12916. msm_routing_put_audio_mixer),
  12917. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  12918. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  12919. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12920. msm_routing_put_audio_mixer),
  12921. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  12922. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  12923. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12924. msm_routing_put_audio_mixer),
  12925. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  12926. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  12927. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12928. msm_routing_put_audio_mixer),
  12929. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  12930. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  12931. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12932. msm_routing_put_audio_mixer),
  12933. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  12934. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  12935. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12936. msm_routing_put_audio_mixer),
  12937. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  12938. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  12939. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12940. msm_routing_put_audio_mixer),
  12941. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  12942. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  12943. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12944. msm_routing_put_audio_mixer),
  12945. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  12946. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  12947. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12948. msm_routing_put_audio_mixer),
  12949. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  12950. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  12951. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12952. msm_routing_put_audio_mixer),
  12953. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  12954. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  12955. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12956. msm_routing_put_audio_mixer),
  12957. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  12958. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  12959. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12960. msm_routing_put_audio_mixer),
  12961. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  12962. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  12963. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12964. msm_routing_put_audio_mixer),
  12965. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  12966. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  12967. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12968. msm_routing_put_audio_mixer),
  12969. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  12970. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  12971. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12972. msm_routing_put_audio_mixer),
  12973. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  12974. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  12975. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12976. msm_routing_put_audio_mixer),
  12977. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  12978. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  12979. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12980. msm_routing_put_audio_mixer),
  12981. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  12982. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  12983. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12984. msm_routing_put_audio_mixer),
  12985. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  12986. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  12987. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12988. msm_routing_put_audio_mixer),
  12989. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  12990. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  12991. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12992. msm_routing_put_audio_mixer),
  12993. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  12994. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  12995. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  12996. msm_routing_put_audio_mixer),
  12997. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  12998. MSM_BACKEND_DAI_USB_TX,
  12999. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13000. msm_routing_put_audio_mixer),
  13001. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13002. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13003. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13004. msm_routing_put_audio_mixer),
  13005. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13006. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13007. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13008. msm_routing_put_audio_mixer),
  13009. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13010. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13011. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13012. msm_routing_put_audio_mixer),
  13013. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13014. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13015. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13016. msm_routing_put_audio_mixer),
  13017. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13018. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13019. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13020. msm_routing_put_audio_mixer),
  13021. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13022. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13023. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13024. msm_routing_put_audio_mixer),
  13025. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13026. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13027. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13028. msm_routing_put_audio_mixer),
  13029. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13030. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13031. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13032. msm_routing_put_audio_mixer),
  13033. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13034. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13035. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13036. msm_routing_put_audio_mixer),
  13037. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13038. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13039. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13040. msm_routing_put_audio_mixer),
  13041. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13042. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13043. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13044. msm_routing_put_audio_mixer),
  13045. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13046. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13047. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13048. msm_routing_put_audio_mixer),
  13049. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13050. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13051. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13052. msm_routing_put_audio_mixer),
  13053. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13054. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13055. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13056. msm_routing_put_audio_mixer),
  13057. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13058. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13059. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13060. msm_routing_put_audio_mixer),
  13061. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13062. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13063. MSM_FRONTEND_DAI_MULTIMEDIA8, 1, 0, msm_routing_get_audio_mixer,
  13064. msm_routing_put_audio_mixer),
  13065. };
  13066. static const struct snd_kcontrol_new mmul16_mixer_controls[] = {
  13067. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13068. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13069. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13070. msm_routing_put_audio_mixer),
  13071. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13072. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13073. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13074. msm_routing_put_audio_mixer),
  13075. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13076. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13077. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13078. msm_routing_put_audio_mixer),
  13079. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13080. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13081. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13082. msm_routing_put_audio_mixer),
  13083. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13084. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13085. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13086. msm_routing_put_audio_mixer),
  13087. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13088. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13089. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13090. msm_routing_put_audio_mixer),
  13091. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13092. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13093. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13094. msm_routing_put_audio_mixer),
  13095. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13096. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13097. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13098. msm_routing_put_audio_mixer),
  13099. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13100. MSM_BACKEND_DAI_INT_FM_TX,
  13101. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13102. msm_routing_put_audio_mixer),
  13103. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13104. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13105. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13106. msm_routing_put_audio_mixer),
  13107. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13108. MSM_BACKEND_DAI_AFE_PCM_TX,
  13109. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13110. msm_routing_put_audio_mixer),
  13111. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13112. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13113. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13114. msm_routing_put_audio_mixer),
  13115. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13116. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13117. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13118. msm_routing_put_audio_mixer),
  13119. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13120. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13121. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13122. msm_routing_put_audio_mixer),
  13123. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13124. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13125. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13126. msm_routing_put_audio_mixer),
  13127. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13128. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13129. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13130. msm_routing_put_audio_mixer),
  13131. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  13132. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  13133. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13134. msm_routing_put_audio_mixer),
  13135. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  13136. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  13137. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13138. msm_routing_put_audio_mixer),
  13139. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  13140. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  13141. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13142. msm_routing_put_audio_mixer),
  13143. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  13144. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  13145. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13146. msm_routing_put_audio_mixer),
  13147. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  13148. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  13149. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13150. msm_routing_put_audio_mixer),
  13151. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  13152. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  13153. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13154. msm_routing_put_audio_mixer),
  13155. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13156. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13157. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13158. msm_routing_put_audio_mixer),
  13159. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13160. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13161. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13162. msm_routing_put_audio_mixer),
  13163. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13164. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13165. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13166. msm_routing_put_audio_mixer),
  13167. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13168. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13169. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13170. msm_routing_put_audio_mixer),
  13171. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13172. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13173. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13174. msm_routing_put_audio_mixer),
  13175. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13176. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13177. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13178. msm_routing_put_audio_mixer),
  13179. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13180. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13181. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13182. msm_routing_put_audio_mixer),
  13183. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13184. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13185. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13186. msm_routing_put_audio_mixer),
  13187. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13188. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13189. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13190. msm_routing_put_audio_mixer),
  13191. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13192. MSM_BACKEND_DAI_USB_TX,
  13193. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13194. msm_routing_put_audio_mixer),
  13195. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13196. MSM_BACKEND_DAI_MI2S_TX,
  13197. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13198. msm_routing_put_audio_mixer),
  13199. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13200. MSM_BACKEND_DAI_AUXPCM_TX,
  13201. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13202. msm_routing_put_audio_mixer),
  13203. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13204. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13205. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13206. msm_routing_put_audio_mixer),
  13207. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13208. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13209. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13210. msm_routing_put_audio_mixer),
  13211. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13212. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13213. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13214. msm_routing_put_audio_mixer),
  13215. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13216. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13217. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13218. msm_routing_put_audio_mixer),
  13219. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13220. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13221. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13222. msm_routing_put_audio_mixer),
  13223. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13224. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13225. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13226. msm_routing_put_audio_mixer),
  13227. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13228. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13229. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13230. msm_routing_put_audio_mixer),
  13231. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13232. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13233. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13234. msm_routing_put_audio_mixer),
  13235. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13236. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13237. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13238. msm_routing_get_audio_mixer,
  13239. msm_routing_put_audio_mixer),
  13240. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13241. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13242. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13243. msm_routing_get_audio_mixer,
  13244. msm_routing_put_audio_mixer),
  13245. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13246. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13247. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13248. msm_routing_get_audio_mixer,
  13249. msm_routing_put_audio_mixer),
  13250. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13251. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13252. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13253. msm_routing_get_audio_mixer,
  13254. msm_routing_put_audio_mixer),
  13255. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13256. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13257. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13258. msm_routing_get_audio_mixer,
  13259. msm_routing_put_audio_mixer),
  13260. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13261. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13262. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0,
  13263. msm_routing_get_audio_mixer,
  13264. msm_routing_put_audio_mixer),
  13265. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13266. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13267. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13268. msm_routing_put_audio_mixer),
  13269. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13270. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13271. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13272. msm_routing_put_audio_mixer),
  13273. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13274. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13275. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13276. msm_routing_put_audio_mixer),
  13277. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13278. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13279. MSM_FRONTEND_DAI_MULTIMEDIA16, 1, 0, msm_routing_get_audio_mixer,
  13280. msm_routing_put_audio_mixer),
  13281. };
  13282. static const struct snd_kcontrol_new mmul9_mixer_controls[] = {
  13283. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13284. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13285. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13286. msm_routing_put_audio_mixer),
  13287. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13288. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13289. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13290. msm_routing_put_audio_mixer),
  13291. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13292. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13293. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13294. msm_routing_put_audio_mixer),
  13295. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13296. MSM_BACKEND_DAI_INT_FM_TX,
  13297. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13298. msm_routing_put_audio_mixer),
  13299. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13300. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13301. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13302. msm_routing_put_audio_mixer),
  13303. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13304. MSM_BACKEND_DAI_AFE_PCM_TX,
  13305. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13306. msm_routing_put_audio_mixer),
  13307. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13308. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13309. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13310. msm_routing_put_audio_mixer),
  13311. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13312. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13313. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13314. msm_routing_put_audio_mixer),
  13315. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13316. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13317. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13318. msm_routing_put_audio_mixer),
  13319. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13320. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13321. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13322. msm_routing_put_audio_mixer),
  13323. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13324. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13325. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13326. msm_routing_put_audio_mixer),
  13327. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13328. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13329. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13330. msm_routing_put_audio_mixer),
  13331. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13332. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13333. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13334. msm_routing_put_audio_mixer),
  13335. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13336. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13337. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13338. msm_routing_put_audio_mixer),
  13339. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13340. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13341. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13342. msm_routing_put_audio_mixer),
  13343. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13344. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13345. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13346. msm_routing_put_audio_mixer),
  13347. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13348. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13349. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13350. msm_routing_put_audio_mixer),
  13351. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  13352. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  13353. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13354. msm_routing_put_audio_mixer),
  13355. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  13356. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  13357. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13358. msm_routing_put_audio_mixer),
  13359. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  13360. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  13361. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13362. msm_routing_put_audio_mixer),
  13363. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  13364. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  13365. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13366. msm_routing_put_audio_mixer),
  13367. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  13368. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  13369. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13370. msm_routing_put_audio_mixer),
  13371. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  13372. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  13373. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13374. msm_routing_put_audio_mixer),
  13375. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  13376. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  13377. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13378. msm_routing_put_audio_mixer),
  13379. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  13380. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  13381. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13382. msm_routing_put_audio_mixer),
  13383. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13384. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13385. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13386. msm_routing_put_audio_mixer),
  13387. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13388. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13389. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13390. msm_routing_put_audio_mixer),
  13391. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13392. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13393. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13394. msm_routing_put_audio_mixer),
  13395. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13396. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13397. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13398. msm_routing_put_audio_mixer),
  13399. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13400. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13401. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13402. msm_routing_put_audio_mixer),
  13403. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13404. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13405. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13406. msm_routing_put_audio_mixer),
  13407. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13408. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13409. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13410. msm_routing_put_audio_mixer),
  13411. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13412. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13413. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13414. msm_routing_put_audio_mixer),
  13415. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13416. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13417. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13418. msm_routing_put_audio_mixer),
  13419. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13420. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13421. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13422. msm_routing_put_audio_mixer),
  13423. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13424. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13425. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13426. msm_routing_put_audio_mixer),
  13427. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13428. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13429. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13430. msm_routing_put_audio_mixer),
  13431. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13432. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13433. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13434. msm_routing_put_audio_mixer),
  13435. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13436. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13437. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13438. msm_routing_put_audio_mixer),
  13439. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13440. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13441. MSM_FRONTEND_DAI_MULTIMEDIA9, 1, 0, msm_routing_get_audio_mixer,
  13442. msm_routing_put_audio_mixer),
  13443. };
  13444. static const struct snd_kcontrol_new mmul10_mixer_controls[] = {
  13445. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13446. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13447. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13448. msm_routing_put_audio_mixer),
  13449. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13450. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13451. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13452. msm_routing_put_audio_mixer),
  13453. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13454. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13455. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13456. msm_routing_put_audio_mixer),
  13457. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13458. MSM_BACKEND_DAI_INT_FM_TX,
  13459. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13460. msm_routing_put_audio_mixer),
  13461. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13462. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13463. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13464. msm_routing_put_audio_mixer),
  13465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13466. MSM_BACKEND_DAI_AFE_PCM_TX,
  13467. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13468. msm_routing_put_audio_mixer),
  13469. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13470. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13471. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13472. msm_routing_put_audio_mixer),
  13473. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13474. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13475. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13476. msm_routing_put_audio_mixer),
  13477. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  13478. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  13479. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13480. msm_routing_put_audio_mixer),
  13481. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  13482. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  13483. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13484. msm_routing_put_audio_mixer),
  13485. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  13486. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  13487. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13488. msm_routing_put_audio_mixer),
  13489. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  13490. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  13491. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13492. msm_routing_put_audio_mixer),
  13493. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  13494. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  13495. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13496. msm_routing_put_audio_mixer),
  13497. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  13498. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  13499. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13500. msm_routing_put_audio_mixer),
  13501. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  13502. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  13503. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13504. msm_routing_put_audio_mixer),
  13505. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  13506. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  13507. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13508. msm_routing_put_audio_mixer),
  13509. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  13510. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  13511. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13512. msm_routing_put_audio_mixer),
  13513. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  13514. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  13515. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13516. msm_routing_put_audio_mixer),
  13517. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  13518. MSM_BACKEND_DAI_USB_TX,
  13519. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13520. msm_routing_put_audio_mixer),
  13521. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  13522. MSM_BACKEND_DAI_MI2S_TX,
  13523. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13524. msm_routing_put_audio_mixer),
  13525. SOC_DOUBLE_EXT("AUX_PCM_TX", SND_SOC_NOPM,
  13526. MSM_BACKEND_DAI_AUXPCM_TX,
  13527. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13528. msm_routing_put_audio_mixer),
  13529. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX", SND_SOC_NOPM,
  13530. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  13531. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13532. msm_routing_put_audio_mixer),
  13533. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX", SND_SOC_NOPM,
  13534. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  13535. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13536. msm_routing_put_audio_mixer),
  13537. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX", SND_SOC_NOPM,
  13538. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  13539. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13540. msm_routing_put_audio_mixer),
  13541. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13542. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13543. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13544. msm_routing_put_audio_mixer),
  13545. SOC_DOUBLE_EXT("INT2_MI2S_TX", SND_SOC_NOPM,
  13546. MSM_BACKEND_DAI_INT2_MI2S_TX,
  13547. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13548. msm_routing_put_audio_mixer),
  13549. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13550. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13551. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13552. msm_routing_put_audio_mixer),
  13553. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13554. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13555. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13556. msm_routing_put_audio_mixer),
  13557. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13558. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13559. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13560. msm_routing_put_audio_mixer),
  13561. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13562. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13563. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13564. msm_routing_put_audio_mixer),
  13565. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13566. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13567. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13568. msm_routing_put_audio_mixer),
  13569. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13570. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13571. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13572. msm_routing_put_audio_mixer),
  13573. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13574. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13575. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13576. msm_routing_put_audio_mixer),
  13577. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13578. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13579. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13580. msm_routing_get_audio_mixer,
  13581. msm_routing_put_audio_mixer),
  13582. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13583. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13584. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13585. msm_routing_get_audio_mixer,
  13586. msm_routing_put_audio_mixer),
  13587. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13588. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13589. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13590. msm_routing_get_audio_mixer,
  13591. msm_routing_put_audio_mixer),
  13592. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13593. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13594. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13595. msm_routing_get_audio_mixer,
  13596. msm_routing_put_audio_mixer),
  13597. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13598. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13599. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13600. msm_routing_get_audio_mixer,
  13601. msm_routing_put_audio_mixer),
  13602. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13603. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13604. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0,
  13605. msm_routing_get_audio_mixer,
  13606. msm_routing_put_audio_mixer),
  13607. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13608. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13609. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13610. msm_routing_put_audio_mixer),
  13611. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13612. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13613. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13614. msm_routing_put_audio_mixer),
  13615. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  13616. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  13617. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13618. msm_routing_put_audio_mixer),
  13619. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13620. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13621. MSM_FRONTEND_DAI_MULTIMEDIA10, 1, 0, msm_routing_get_audio_mixer,
  13622. msm_routing_put_audio_mixer),
  13623. };
  13624. static const struct snd_kcontrol_new mmul17_mixer_controls[] = {
  13625. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13626. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13627. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13628. msm_routing_put_audio_mixer),
  13629. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13630. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13631. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13632. msm_routing_put_audio_mixer),
  13633. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13634. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13635. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13636. msm_routing_put_audio_mixer),
  13637. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13638. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13639. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13640. msm_routing_put_audio_mixer),
  13641. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13642. MSM_BACKEND_DAI_INT_FM_TX,
  13643. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13644. msm_routing_put_audio_mixer),
  13645. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13646. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13647. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13648. msm_routing_put_audio_mixer),
  13649. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13650. MSM_BACKEND_DAI_AFE_PCM_TX,
  13651. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13652. msm_routing_put_audio_mixer),
  13653. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13654. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13655. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13656. msm_routing_put_audio_mixer),
  13657. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13658. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13659. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13660. msm_routing_put_audio_mixer),
  13661. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13662. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13663. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13664. msm_routing_put_audio_mixer),
  13665. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13666. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13667. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13668. msm_routing_put_audio_mixer),
  13669. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13670. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13671. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13672. msm_routing_put_audio_mixer),
  13673. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13674. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13675. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13676. msm_routing_put_audio_mixer),
  13677. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13678. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13679. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13680. msm_routing_put_audio_mixer),
  13681. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13682. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13683. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13684. msm_routing_put_audio_mixer),
  13685. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13686. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13687. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13688. msm_routing_put_audio_mixer),
  13689. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13690. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13691. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13692. msm_routing_put_audio_mixer),
  13693. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13694. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13695. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13696. msm_routing_get_audio_mixer,
  13697. msm_routing_put_audio_mixer),
  13698. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13699. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13700. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13701. msm_routing_get_audio_mixer,
  13702. msm_routing_put_audio_mixer),
  13703. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13704. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13705. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13706. msm_routing_get_audio_mixer,
  13707. msm_routing_put_audio_mixer),
  13708. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13709. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13710. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13711. msm_routing_get_audio_mixer,
  13712. msm_routing_put_audio_mixer),
  13713. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13714. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13715. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13716. msm_routing_get_audio_mixer,
  13717. msm_routing_put_audio_mixer),
  13718. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13719. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13720. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0,
  13721. msm_routing_get_audio_mixer,
  13722. msm_routing_put_audio_mixer),
  13723. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13724. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13725. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13726. msm_routing_put_audio_mixer),
  13727. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13728. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13729. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13730. msm_routing_put_audio_mixer),
  13731. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13732. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13733. MSM_FRONTEND_DAI_MULTIMEDIA17, 1, 0, msm_routing_get_audio_mixer,
  13734. msm_routing_put_audio_mixer),
  13735. };
  13736. static const struct snd_kcontrol_new mmul18_mixer_controls[] = {
  13737. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13738. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13739. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13740. msm_routing_put_audio_mixer),
  13741. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13742. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13743. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13744. msm_routing_put_audio_mixer),
  13745. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13746. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13747. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13748. msm_routing_put_audio_mixer),
  13749. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13750. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13751. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13752. msm_routing_put_audio_mixer),
  13753. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13754. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13755. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13756. msm_routing_put_audio_mixer),
  13757. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13758. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13759. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13760. msm_routing_put_audio_mixer),
  13761. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13762. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13763. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13764. msm_routing_put_audio_mixer),
  13765. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13766. MSM_BACKEND_DAI_INT_FM_TX,
  13767. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13768. msm_routing_put_audio_mixer),
  13769. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13770. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13771. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13772. msm_routing_put_audio_mixer),
  13773. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13774. MSM_BACKEND_DAI_AFE_PCM_TX,
  13775. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13776. msm_routing_put_audio_mixer),
  13777. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13778. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13779. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13780. msm_routing_put_audio_mixer),
  13781. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13782. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13783. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13784. msm_routing_put_audio_mixer),
  13785. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13786. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13787. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13788. msm_routing_put_audio_mixer),
  13789. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13790. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13791. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13792. msm_routing_put_audio_mixer),
  13793. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13794. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13795. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13796. msm_routing_put_audio_mixer),
  13797. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13798. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13799. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13800. msm_routing_put_audio_mixer),
  13801. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13802. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13803. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13804. msm_routing_put_audio_mixer),
  13805. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13806. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13807. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13808. msm_routing_put_audio_mixer),
  13809. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13810. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13811. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13812. msm_routing_get_audio_mixer,
  13813. msm_routing_put_audio_mixer),
  13814. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13815. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13816. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13817. msm_routing_get_audio_mixer,
  13818. msm_routing_put_audio_mixer),
  13819. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13820. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13821. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13822. msm_routing_get_audio_mixer,
  13823. msm_routing_put_audio_mixer),
  13824. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13825. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13826. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13827. msm_routing_get_audio_mixer,
  13828. msm_routing_put_audio_mixer),
  13829. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13830. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13831. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13832. msm_routing_get_audio_mixer,
  13833. msm_routing_put_audio_mixer),
  13834. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13835. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13836. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0,
  13837. msm_routing_get_audio_mixer,
  13838. msm_routing_put_audio_mixer),
  13839. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13840. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13841. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13842. msm_routing_put_audio_mixer),
  13843. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13844. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13845. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13846. msm_routing_put_audio_mixer),
  13847. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13848. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13849. MSM_FRONTEND_DAI_MULTIMEDIA18, 1, 0, msm_routing_get_audio_mixer,
  13850. msm_routing_put_audio_mixer),
  13851. };
  13852. static const struct snd_kcontrol_new mmul19_mixer_controls[] = {
  13853. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  13854. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  13855. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13856. msm_routing_put_audio_mixer),
  13857. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  13858. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  13859. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13860. msm_routing_put_audio_mixer),
  13861. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13862. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13863. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13864. msm_routing_put_audio_mixer),
  13865. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  13866. MSM_BACKEND_DAI_INT3_MI2S_TX,
  13867. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13868. msm_routing_put_audio_mixer),
  13869. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  13870. MSM_BACKEND_DAI_INT_FM_TX,
  13871. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13872. msm_routing_put_audio_mixer),
  13873. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  13874. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  13875. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13876. msm_routing_put_audio_mixer),
  13877. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  13878. MSM_BACKEND_DAI_AFE_PCM_TX,
  13879. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13880. msm_routing_put_audio_mixer),
  13881. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  13882. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  13883. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13884. msm_routing_put_audio_mixer),
  13885. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  13886. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  13887. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13888. msm_routing_put_audio_mixer),
  13889. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13890. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13891. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13892. msm_routing_put_audio_mixer),
  13893. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13894. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13895. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13896. msm_routing_put_audio_mixer),
  13897. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13898. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13899. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13900. msm_routing_put_audio_mixer),
  13901. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13902. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  13903. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13904. msm_routing_put_audio_mixer),
  13905. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13906. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  13907. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13908. msm_routing_put_audio_mixer),
  13909. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13910. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  13911. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13912. msm_routing_put_audio_mixer),
  13913. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  13914. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  13915. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13916. msm_routing_put_audio_mixer),
  13917. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  13918. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  13919. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13920. msm_routing_put_audio_mixer),
  13921. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  13922. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  13923. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13924. msm_routing_put_audio_mixer),
  13925. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  13926. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  13927. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13928. msm_routing_get_audio_mixer,
  13929. msm_routing_put_audio_mixer),
  13930. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  13931. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  13932. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13933. msm_routing_get_audio_mixer,
  13934. msm_routing_put_audio_mixer),
  13935. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  13936. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  13937. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13938. msm_routing_get_audio_mixer,
  13939. msm_routing_put_audio_mixer),
  13940. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  13941. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  13942. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13943. msm_routing_get_audio_mixer,
  13944. msm_routing_put_audio_mixer),
  13945. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  13946. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  13947. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13948. msm_routing_get_audio_mixer,
  13949. msm_routing_put_audio_mixer),
  13950. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  13951. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  13952. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0,
  13953. msm_routing_get_audio_mixer,
  13954. msm_routing_put_audio_mixer),
  13955. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  13956. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  13957. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13958. msm_routing_put_audio_mixer),
  13959. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  13960. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  13961. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13962. msm_routing_put_audio_mixer),
  13963. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  13964. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  13965. MSM_FRONTEND_DAI_MULTIMEDIA19, 1, 0, msm_routing_get_audio_mixer,
  13966. msm_routing_put_audio_mixer),
  13967. };
  13968. static const struct snd_kcontrol_new mmul20_mixer_controls[] = {
  13969. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  13970. MSM_BACKEND_DAI_PRI_MI2S_TX,
  13971. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13972. msm_routing_put_audio_mixer),
  13973. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  13974. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  13975. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13976. msm_routing_put_audio_mixer),
  13977. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  13978. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  13979. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13980. msm_routing_put_audio_mixer),
  13981. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  13982. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  13983. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13984. msm_routing_put_audio_mixer),
  13985. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  13986. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  13987. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13988. msm_routing_put_audio_mixer),
  13989. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  13990. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  13991. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13992. msm_routing_put_audio_mixer),
  13993. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  13994. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  13995. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  13996. msm_routing_put_audio_mixer),
  13997. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  13998. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  13999. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14000. msm_routing_put_audio_mixer),
  14001. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14002. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14003. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14004. msm_routing_put_audio_mixer),
  14005. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14006. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14007. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14008. msm_routing_put_audio_mixer),
  14009. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14010. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14011. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14012. msm_routing_put_audio_mixer),
  14013. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14014. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14015. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14016. msm_routing_put_audio_mixer),
  14017. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14018. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14019. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14020. msm_routing_put_audio_mixer),
  14021. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14022. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14023. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14024. msm_routing_put_audio_mixer),
  14025. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14026. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14027. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14028. msm_routing_put_audio_mixer),
  14029. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14030. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14031. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14032. msm_routing_put_audio_mixer),
  14033. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14034. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14035. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14036. msm_routing_put_audio_mixer),
  14037. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14038. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14039. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14040. msm_routing_put_audio_mixer),
  14041. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14042. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14043. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14044. msm_routing_put_audio_mixer),
  14045. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14046. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14047. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14048. msm_routing_put_audio_mixer),
  14049. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14050. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14051. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14052. msm_routing_put_audio_mixer),
  14053. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14054. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14055. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14056. msm_routing_put_audio_mixer),
  14057. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14058. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14059. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14060. msm_routing_put_audio_mixer),
  14061. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14062. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14063. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14064. msm_routing_put_audio_mixer),
  14065. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14066. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14067. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14068. msm_routing_put_audio_mixer),
  14069. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14070. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14071. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14072. msm_routing_put_audio_mixer),
  14073. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14074. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14075. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14076. msm_routing_put_audio_mixer),
  14077. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14078. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14079. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14080. msm_routing_put_audio_mixer),
  14081. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14082. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14083. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14084. msm_routing_put_audio_mixer),
  14085. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14086. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14087. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14088. msm_routing_put_audio_mixer),
  14089. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14090. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14091. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14092. msm_routing_put_audio_mixer),
  14093. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14094. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14095. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14096. msm_routing_put_audio_mixer),
  14097. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14098. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14099. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14100. msm_routing_put_audio_mixer),
  14101. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14102. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14103. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14104. msm_routing_put_audio_mixer),
  14105. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14106. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14107. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14108. msm_routing_put_audio_mixer),
  14109. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14110. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14111. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14112. msm_routing_put_audio_mixer),
  14113. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14114. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14115. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14116. msm_routing_put_audio_mixer),
  14117. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14118. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14119. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14120. msm_routing_put_audio_mixer),
  14121. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14122. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14123. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14124. msm_routing_put_audio_mixer),
  14125. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14126. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14127. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14128. msm_routing_put_audio_mixer),
  14129. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14130. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14131. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14132. msm_routing_put_audio_mixer),
  14133. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14134. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14135. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14136. msm_routing_put_audio_mixer),
  14137. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14138. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14139. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14140. msm_routing_put_audio_mixer),
  14141. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14142. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14143. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14144. msm_routing_put_audio_mixer),
  14145. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14146. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14147. MSM_FRONTEND_DAI_MULTIMEDIA20, 1, 0, msm_routing_get_audio_mixer,
  14148. msm_routing_put_audio_mixer),
  14149. };
  14150. static const struct snd_kcontrol_new mmul21_mixer_controls[] = {
  14151. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  14152. MSM_BACKEND_DAI_AUXPCM_TX,
  14153. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14154. msm_routing_put_audio_mixer),
  14155. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  14156. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  14157. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14158. msm_routing_put_audio_mixer),
  14159. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14160. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14161. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14162. msm_routing_put_audio_mixer),
  14163. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14164. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14165. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14166. msm_routing_put_audio_mixer),
  14167. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14168. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14169. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14170. msm_routing_put_audio_mixer),
  14171. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14172. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14173. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14174. msm_routing_put_audio_mixer),
  14175. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14176. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14177. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14178. msm_routing_put_audio_mixer),
  14179. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14180. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14181. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14182. msm_routing_put_audio_mixer),
  14183. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14184. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14185. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14186. msm_routing_put_audio_mixer),
  14187. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14188. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14189. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14190. msm_routing_put_audio_mixer),
  14191. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14192. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14193. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14194. msm_routing_put_audio_mixer),
  14195. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14196. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14197. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14198. msm_routing_put_audio_mixer),
  14199. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14200. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14201. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14202. msm_routing_put_audio_mixer),
  14203. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14204. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14205. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14206. msm_routing_put_audio_mixer),
  14207. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14208. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14209. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14210. msm_routing_put_audio_mixer),
  14211. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14212. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14213. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14214. msm_routing_put_audio_mixer),
  14215. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14216. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14217. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14218. msm_routing_put_audio_mixer),
  14219. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14220. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14221. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14222. msm_routing_put_audio_mixer),
  14223. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14224. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14225. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14226. msm_routing_put_audio_mixer),
  14227. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14228. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14229. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14230. msm_routing_put_audio_mixer),
  14231. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14232. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14233. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14234. msm_routing_put_audio_mixer),
  14235. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14236. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14237. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14238. msm_routing_put_audio_mixer),
  14239. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  14240. MSM_BACKEND_DAI_SEN_TDM_TX_0,
  14241. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14242. msm_routing_put_audio_mixer),
  14243. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  14244. MSM_BACKEND_DAI_SEN_TDM_TX_1,
  14245. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14246. msm_routing_put_audio_mixer),
  14247. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  14248. MSM_BACKEND_DAI_SEN_TDM_TX_2,
  14249. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14250. msm_routing_put_audio_mixer),
  14251. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  14252. MSM_BACKEND_DAI_SEN_TDM_TX_3,
  14253. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14254. msm_routing_put_audio_mixer),
  14255. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14256. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14257. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14258. msm_routing_put_audio_mixer),
  14259. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14260. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14261. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14262. msm_routing_put_audio_mixer),
  14263. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14264. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14265. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14266. msm_routing_put_audio_mixer),
  14267. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14268. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14269. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14270. msm_routing_put_audio_mixer),
  14271. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14272. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14273. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14274. msm_routing_put_audio_mixer),
  14275. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14276. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14277. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14278. msm_routing_put_audio_mixer),
  14279. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14280. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14281. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14282. msm_routing_put_audio_mixer),
  14283. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14284. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14285. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14286. msm_routing_put_audio_mixer),
  14287. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14288. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14289. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14290. msm_routing_put_audio_mixer),
  14291. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14292. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14293. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14294. msm_routing_put_audio_mixer),
  14295. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14296. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14297. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14298. msm_routing_put_audio_mixer),
  14299. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14300. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14301. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14302. msm_routing_put_audio_mixer),
  14303. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14304. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14305. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14306. msm_routing_put_audio_mixer),
  14307. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14308. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14309. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14310. msm_routing_put_audio_mixer),
  14311. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14312. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14313. MSM_FRONTEND_DAI_MULTIMEDIA21, 1, 0, msm_routing_get_audio_mixer,
  14314. msm_routing_put_audio_mixer),
  14315. };
  14316. static const struct snd_kcontrol_new mmul22_mixer_controls[] = {
  14317. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  14318. MSM_BACKEND_DAI_PRI_TDM_TX_0,
  14319. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14320. msm_routing_put_audio_mixer),
  14321. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  14322. MSM_BACKEND_DAI_PRI_TDM_TX_1,
  14323. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14324. msm_routing_put_audio_mixer),
  14325. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  14326. MSM_BACKEND_DAI_PRI_TDM_TX_2,
  14327. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14328. msm_routing_put_audio_mixer),
  14329. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  14330. MSM_BACKEND_DAI_PRI_TDM_TX_3,
  14331. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14332. msm_routing_put_audio_mixer),
  14333. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  14334. MSM_BACKEND_DAI_SEC_TDM_TX_0,
  14335. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14336. msm_routing_put_audio_mixer),
  14337. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  14338. MSM_BACKEND_DAI_SEC_TDM_TX_1,
  14339. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14340. msm_routing_put_audio_mixer),
  14341. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  14342. MSM_BACKEND_DAI_SEC_TDM_TX_2,
  14343. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14344. msm_routing_put_audio_mixer),
  14345. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  14346. MSM_BACKEND_DAI_SEC_TDM_TX_3,
  14347. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14348. msm_routing_put_audio_mixer),
  14349. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  14350. MSM_BACKEND_DAI_TERT_TDM_TX_0,
  14351. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14352. msm_routing_put_audio_mixer),
  14353. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  14354. MSM_BACKEND_DAI_TERT_TDM_TX_1,
  14355. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14356. msm_routing_put_audio_mixer),
  14357. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  14358. MSM_BACKEND_DAI_TERT_TDM_TX_2,
  14359. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14360. msm_routing_put_audio_mixer),
  14361. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  14362. MSM_BACKEND_DAI_TERT_TDM_TX_3,
  14363. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14364. msm_routing_put_audio_mixer),
  14365. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  14366. MSM_BACKEND_DAI_QUAT_TDM_TX_0,
  14367. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14368. msm_routing_put_audio_mixer),
  14369. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  14370. MSM_BACKEND_DAI_QUAT_TDM_TX_1,
  14371. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14372. msm_routing_put_audio_mixer),
  14373. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  14374. MSM_BACKEND_DAI_QUAT_TDM_TX_2,
  14375. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14376. msm_routing_put_audio_mixer),
  14377. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  14378. MSM_BACKEND_DAI_QUAT_TDM_TX_3,
  14379. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14380. msm_routing_put_audio_mixer),
  14381. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  14382. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  14383. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14384. msm_routing_put_audio_mixer),
  14385. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  14386. MSM_BACKEND_DAI_QUIN_TDM_TX_1,
  14387. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14388. msm_routing_put_audio_mixer),
  14389. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  14390. MSM_BACKEND_DAI_QUIN_TDM_TX_2,
  14391. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14392. msm_routing_put_audio_mixer),
  14393. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  14394. MSM_BACKEND_DAI_QUIN_TDM_TX_3,
  14395. MSM_FRONTEND_DAI_MULTIMEDIA22, 1, 0, msm_routing_get_audio_mixer,
  14396. msm_routing_put_audio_mixer),
  14397. };
  14398. static const struct snd_kcontrol_new mmul27_mixer_controls[] = {
  14399. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14400. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14401. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14402. msm_routing_put_audio_mixer),
  14403. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14404. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14405. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14406. msm_routing_put_audio_mixer),
  14407. SOC_DOUBLE_EXT("SLIM_6_TX", SND_SOC_NOPM,
  14408. MSM_BACKEND_DAI_SLIMBUS_6_TX,
  14409. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14410. msm_routing_put_audio_mixer),
  14411. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  14412. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  14413. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14414. msm_routing_put_audio_mixer),
  14415. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14416. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14417. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14418. msm_routing_put_audio_mixer),
  14419. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14420. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14421. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14422. msm_routing_put_audio_mixer),
  14423. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14424. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14425. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14426. msm_routing_put_audio_mixer),
  14427. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14428. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14429. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14430. msm_routing_put_audio_mixer),
  14431. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  14432. MSM_BACKEND_DAI_QUINARY_MI2S_TX,
  14433. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14434. msm_routing_put_audio_mixer),
  14435. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  14436. MSM_BACKEND_DAI_SENARY_MI2S_TX,
  14437. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14438. msm_routing_put_audio_mixer),
  14439. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14440. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14441. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14442. msm_routing_put_audio_mixer),
  14443. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14444. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14445. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14446. msm_routing_put_audio_mixer),
  14447. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  14448. MSM_BACKEND_DAI_SLIMBUS_9_TX,
  14449. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14450. msm_routing_put_audio_mixer),
  14451. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14452. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14453. MSM_FRONTEND_DAI_MULTIMEDIA27, 1, 0, msm_routing_get_audio_mixer,
  14454. msm_routing_put_audio_mixer),
  14455. };
  14456. static const struct snd_kcontrol_new mmul28_mixer_controls[] = {
  14457. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14458. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14459. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14460. msm_routing_put_audio_mixer),
  14461. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14462. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14463. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14464. msm_routing_put_audio_mixer),
  14465. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14466. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14467. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14468. msm_routing_put_audio_mixer),
  14469. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14470. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14471. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14472. msm_routing_put_audio_mixer),
  14473. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14474. MSM_BACKEND_DAI_INT_FM_TX,
  14475. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14476. msm_routing_put_audio_mixer),
  14477. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14478. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14479. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14480. msm_routing_put_audio_mixer),
  14481. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14482. MSM_BACKEND_DAI_AFE_PCM_TX,
  14483. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14484. msm_routing_put_audio_mixer),
  14485. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14486. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14487. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14488. msm_routing_put_audio_mixer),
  14489. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14490. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14491. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14492. msm_routing_put_audio_mixer),
  14493. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14494. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14495. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14496. msm_routing_put_audio_mixer),
  14497. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14498. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14499. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14500. msm_routing_put_audio_mixer),
  14501. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14502. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14503. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14504. msm_routing_put_audio_mixer),
  14505. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14506. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14507. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14508. msm_routing_put_audio_mixer),
  14509. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14510. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14511. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14512. msm_routing_put_audio_mixer),
  14513. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14514. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14515. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14516. msm_routing_put_audio_mixer),
  14517. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14518. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14519. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14520. msm_routing_put_audio_mixer),
  14521. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14522. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14523. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14524. msm_routing_put_audio_mixer),
  14525. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14526. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14527. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14528. msm_routing_put_audio_mixer),
  14529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14531. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14532. msm_routing_get_audio_mixer,
  14533. msm_routing_put_audio_mixer),
  14534. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14535. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14536. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14537. msm_routing_get_audio_mixer,
  14538. msm_routing_put_audio_mixer),
  14539. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14540. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14541. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14542. msm_routing_get_audio_mixer,
  14543. msm_routing_put_audio_mixer),
  14544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14546. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14547. msm_routing_get_audio_mixer,
  14548. msm_routing_put_audio_mixer),
  14549. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14550. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14551. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14552. msm_routing_get_audio_mixer,
  14553. msm_routing_put_audio_mixer),
  14554. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14555. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14556. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0,
  14557. msm_routing_get_audio_mixer,
  14558. msm_routing_put_audio_mixer),
  14559. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14560. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14561. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14562. msm_routing_put_audio_mixer),
  14563. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14564. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14565. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14566. msm_routing_put_audio_mixer),
  14567. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14568. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14569. MSM_FRONTEND_DAI_MULTIMEDIA28, 1, 0, msm_routing_get_audio_mixer,
  14570. msm_routing_put_audio_mixer),
  14571. };
  14572. static const struct snd_kcontrol_new mmul29_mixer_controls[] = {
  14573. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14574. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14575. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14576. msm_routing_put_audio_mixer),
  14577. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14578. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14579. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14580. msm_routing_put_audio_mixer),
  14581. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14582. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14583. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14584. msm_routing_put_audio_mixer),
  14585. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14586. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14587. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14588. msm_routing_put_audio_mixer),
  14589. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14590. MSM_BACKEND_DAI_INT_FM_TX,
  14591. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14592. msm_routing_put_audio_mixer),
  14593. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14594. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14595. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14596. msm_routing_put_audio_mixer),
  14597. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14598. MSM_BACKEND_DAI_AFE_PCM_TX,
  14599. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14600. msm_routing_put_audio_mixer),
  14601. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14602. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14603. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14604. msm_routing_put_audio_mixer),
  14605. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14606. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14607. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14608. msm_routing_put_audio_mixer),
  14609. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14610. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14611. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14612. msm_routing_put_audio_mixer),
  14613. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14614. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14615. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14616. msm_routing_put_audio_mixer),
  14617. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14618. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14619. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14620. msm_routing_put_audio_mixer),
  14621. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14622. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14623. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14624. msm_routing_put_audio_mixer),
  14625. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14626. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14627. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14628. msm_routing_put_audio_mixer),
  14629. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14630. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14631. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14632. msm_routing_put_audio_mixer),
  14633. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14634. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14635. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14636. msm_routing_put_audio_mixer),
  14637. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14638. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14639. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14640. msm_routing_put_audio_mixer),
  14641. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14642. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  14643. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14644. msm_routing_put_audio_mixer),
  14645. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14646. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14647. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14648. msm_routing_get_audio_mixer,
  14649. msm_routing_put_audio_mixer),
  14650. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14651. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14652. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14653. msm_routing_get_audio_mixer,
  14654. msm_routing_put_audio_mixer),
  14655. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14656. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14657. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14658. msm_routing_get_audio_mixer,
  14659. msm_routing_put_audio_mixer),
  14660. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14661. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14662. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14663. msm_routing_get_audio_mixer,
  14664. msm_routing_put_audio_mixer),
  14665. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14666. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14667. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14668. msm_routing_get_audio_mixer,
  14669. msm_routing_put_audio_mixer),
  14670. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14671. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14672. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0,
  14673. msm_routing_get_audio_mixer,
  14674. msm_routing_put_audio_mixer),
  14675. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14676. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14677. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14678. msm_routing_put_audio_mixer),
  14679. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14680. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14681. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14682. msm_routing_put_audio_mixer),
  14683. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14684. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14685. MSM_FRONTEND_DAI_MULTIMEDIA29, 1, 0, msm_routing_get_audio_mixer,
  14686. msm_routing_put_audio_mixer),
  14687. };
  14688. static const struct snd_kcontrol_new mmul30_mixer_controls[] = {
  14689. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  14690. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  14691. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14692. msm_routing_put_audio_mixer),
  14693. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  14694. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  14695. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14696. msm_routing_put_audio_mixer),
  14697. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  14698. MSM_BACKEND_DAI_PRI_MI2S_TX,
  14699. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14700. msm_routing_put_audio_mixer),
  14701. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  14702. MSM_BACKEND_DAI_INT3_MI2S_TX,
  14703. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14704. msm_routing_put_audio_mixer),
  14705. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  14706. MSM_BACKEND_DAI_INT_FM_TX,
  14707. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14708. msm_routing_put_audio_mixer),
  14709. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  14710. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  14711. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14712. msm_routing_put_audio_mixer),
  14713. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  14714. MSM_BACKEND_DAI_AFE_PCM_TX,
  14715. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14716. msm_routing_put_audio_mixer),
  14717. SOC_DOUBLE_EXT("VOC_REC_DL", SND_SOC_NOPM,
  14718. MSM_BACKEND_DAI_INCALL_RECORD_RX,
  14719. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14720. msm_routing_put_audio_mixer),
  14721. SOC_DOUBLE_EXT("VOC_REC_UL", SND_SOC_NOPM,
  14722. MSM_BACKEND_DAI_INCALL_RECORD_TX,
  14723. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14724. msm_routing_put_audio_mixer),
  14725. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  14726. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  14727. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14728. msm_routing_put_audio_mixer),
  14729. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  14730. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  14731. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14732. msm_routing_put_audio_mixer),
  14733. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  14734. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  14735. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14736. msm_routing_put_audio_mixer),
  14737. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14738. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0,
  14739. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14740. msm_routing_put_audio_mixer),
  14741. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14742. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_1,
  14743. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14744. msm_routing_put_audio_mixer),
  14745. SOC_DOUBLE_EXT("WSA_CDC_DMA_TX_2", SND_SOC_NOPM,
  14746. MSM_BACKEND_DAI_WSA_CDC_DMA_TX_2,
  14747. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14748. msm_routing_put_audio_mixer),
  14749. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  14750. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  14751. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14752. msm_routing_put_audio_mixer),
  14753. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  14754. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  14755. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14756. msm_routing_put_audio_mixer),
  14757. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  14758. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0,
  14759. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14760. msm_routing_get_audio_mixer,
  14761. msm_routing_put_audio_mixer),
  14762. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  14763. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1,
  14764. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14765. msm_routing_get_audio_mixer,
  14766. msm_routing_put_audio_mixer),
  14767. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  14768. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2,
  14769. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14770. msm_routing_get_audio_mixer,
  14771. msm_routing_put_audio_mixer),
  14772. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  14773. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  14774. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14775. msm_routing_get_audio_mixer,
  14776. msm_routing_put_audio_mixer),
  14777. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  14778. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4,
  14779. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14780. msm_routing_get_audio_mixer,
  14781. msm_routing_put_audio_mixer),
  14782. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  14783. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5,
  14784. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0,
  14785. msm_routing_get_audio_mixer,
  14786. msm_routing_put_audio_mixer),
  14787. SOC_DOUBLE_EXT("PRI_SPDIF_TX", SND_SOC_NOPM,
  14788. MSM_BACKEND_DAI_PRI_SPDIF_TX,
  14789. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14790. msm_routing_put_audio_mixer),
  14791. SOC_DOUBLE_EXT("SEC_SPDIF_TX", SND_SOC_NOPM,
  14792. MSM_BACKEND_DAI_SEC_SPDIF_TX,
  14793. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14794. msm_routing_put_audio_mixer),
  14795. SOC_DOUBLE_EXT("AFE_LOOPBACK_TX", SND_SOC_NOPM,
  14796. MSM_BACKEND_DAI_AFE_LOOPBACK_TX,
  14797. MSM_FRONTEND_DAI_MULTIMEDIA30, 1, 0, msm_routing_get_audio_mixer,
  14798. msm_routing_put_audio_mixer),
  14799. };
  14800. static const struct snd_kcontrol_new pri_rx_voice_mixer_controls[] = {
  14801. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14802. MSM_BACKEND_DAI_PRI_I2S_RX,
  14803. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14804. msm_routing_put_voice_mixer),
  14805. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14806. MSM_BACKEND_DAI_PRI_I2S_RX,
  14807. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14808. msm_routing_put_voice_mixer),
  14809. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14810. MSM_BACKEND_DAI_PRI_I2S_RX,
  14811. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14812. msm_routing_put_voice_mixer),
  14813. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14814. MSM_BACKEND_DAI_PRI_I2S_RX,
  14815. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14816. msm_routing_put_voice_mixer),
  14817. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14818. MSM_BACKEND_DAI_PRI_I2S_RX,
  14819. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14820. msm_routing_put_voice_mixer),
  14821. };
  14822. static const struct snd_kcontrol_new sec_i2s_rx_voice_mixer_controls[] = {
  14823. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14824. MSM_BACKEND_DAI_SEC_I2S_RX,
  14825. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14826. msm_routing_put_voice_mixer),
  14827. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14828. MSM_BACKEND_DAI_SEC_I2S_RX,
  14829. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14830. msm_routing_put_voice_mixer),
  14831. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14832. MSM_BACKEND_DAI_SEC_I2S_RX,
  14833. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14834. msm_routing_put_voice_mixer),
  14835. };
  14836. static const struct snd_kcontrol_new sec_mi2s_rx_voice_mixer_controls[] = {
  14837. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14838. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14839. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14840. msm_routing_put_voice_mixer),
  14841. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  14842. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14843. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  14844. msm_routing_put_voice_mixer),
  14845. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  14846. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14847. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  14848. msm_routing_put_voice_mixer),
  14849. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14850. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14851. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14852. msm_routing_put_voice_mixer),
  14853. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14854. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14855. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14856. msm_routing_put_voice_mixer),
  14857. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14858. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14859. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14860. msm_routing_put_voice_mixer),
  14861. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14862. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  14863. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14864. msm_routing_put_voice_mixer),
  14865. };
  14866. static const struct snd_kcontrol_new slimbus_rx_voice_mixer_controls[] = {
  14867. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14868. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14869. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14870. msm_routing_put_voice_mixer),
  14871. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14872. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14873. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14874. msm_routing_put_voice_mixer),
  14875. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14876. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14877. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14878. msm_routing_put_voice_mixer),
  14879. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14880. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14881. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14882. msm_routing_put_voice_mixer),
  14883. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14884. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  14885. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14886. msm_routing_put_voice_mixer),
  14887. };
  14888. static const struct snd_kcontrol_new slimbus_6_rx_voice_mixer_controls[] = {
  14889. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14890. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14891. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14892. msm_routing_put_voice_mixer),
  14893. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14894. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14895. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14896. msm_routing_put_voice_mixer),
  14897. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14898. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14899. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14900. msm_routing_put_voice_mixer),
  14901. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14902. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14903. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14904. msm_routing_put_voice_mixer),
  14905. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14906. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  14907. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14908. msm_routing_put_voice_mixer),
  14909. };
  14910. static const struct snd_kcontrol_new usb_audio_rx_voice_mixer_controls[] = {
  14911. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14912. MSM_BACKEND_DAI_USB_RX,
  14913. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14914. msm_routing_put_voice_mixer),
  14915. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14916. MSM_BACKEND_DAI_USB_RX,
  14917. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14918. msm_routing_put_voice_mixer),
  14919. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14920. MSM_BACKEND_DAI_USB_RX,
  14921. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14922. msm_routing_put_voice_mixer),
  14923. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14924. MSM_BACKEND_DAI_USB_RX,
  14925. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14926. msm_routing_put_voice_mixer),
  14927. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14928. MSM_BACKEND_DAI_USB_RX,
  14929. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14930. msm_routing_put_voice_mixer),
  14931. };
  14932. static const struct snd_kcontrol_new display_port_rx_voice_mixer_controls[] = {
  14933. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14934. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14935. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14936. msm_routing_put_voice_mixer),
  14937. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14938. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14939. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14940. msm_routing_put_voice_mixer),
  14941. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14942. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14943. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14944. msm_routing_put_voice_mixer),
  14945. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14946. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14947. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14948. msm_routing_put_voice_mixer),
  14949. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14950. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  14951. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14952. msm_routing_put_voice_mixer),
  14953. };
  14954. static const struct snd_kcontrol_new display_port_rx1_voice_mixer_controls[] = {
  14955. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14956. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14957. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14958. msm_routing_put_voice_mixer),
  14959. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14960. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14961. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14962. msm_routing_put_voice_mixer),
  14963. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14964. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14965. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14966. msm_routing_put_voice_mixer),
  14967. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14968. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14969. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14970. msm_routing_put_voice_mixer),
  14971. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14972. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  14973. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14974. msm_routing_put_voice_mixer),
  14975. };
  14976. static const struct snd_kcontrol_new bt_sco_rx_voice_mixer_controls[] = {
  14977. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  14978. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14979. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  14980. msm_routing_put_voice_mixer),
  14981. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  14982. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14983. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  14984. msm_routing_put_voice_mixer),
  14985. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  14986. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14987. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  14988. msm_routing_put_voice_mixer),
  14989. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  14990. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14991. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  14992. msm_routing_put_voice_mixer),
  14993. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  14994. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  14995. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  14996. msm_routing_put_voice_mixer),
  14997. };
  14998. static const struct snd_kcontrol_new mi2s_rx_voice_mixer_controls[] = {
  14999. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15000. MSM_BACKEND_DAI_MI2S_RX,
  15001. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15002. msm_routing_put_voice_mixer),
  15003. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15004. MSM_BACKEND_DAI_MI2S_RX,
  15005. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15006. msm_routing_put_voice_mixer),
  15007. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15008. MSM_BACKEND_DAI_MI2S_RX,
  15009. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15010. msm_routing_put_voice_mixer),
  15011. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15012. MSM_BACKEND_DAI_MI2S_RX,
  15013. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15014. msm_routing_put_voice_mixer),
  15015. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15016. MSM_BACKEND_DAI_MI2S_RX,
  15017. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15018. msm_routing_put_voice_mixer),
  15019. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15020. MSM_BACKEND_DAI_MI2S_RX,
  15021. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15022. msm_routing_put_voice_mixer),
  15023. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15024. MSM_BACKEND_DAI_MI2S_RX,
  15025. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15026. msm_routing_put_voice_mixer),
  15027. };
  15028. static const struct snd_kcontrol_new pri_mi2s_rx_voice_mixer_controls[] = {
  15029. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15030. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15031. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15032. msm_routing_put_voice_mixer),
  15033. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15034. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15035. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15036. msm_routing_put_voice_mixer),
  15037. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15038. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15039. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15040. msm_routing_put_voice_mixer),
  15041. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15042. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15043. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15044. msm_routing_put_voice_mixer),
  15045. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15046. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15047. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15048. msm_routing_put_voice_mixer),
  15049. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15050. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15051. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15052. msm_routing_put_voice_mixer),
  15053. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15054. MSM_BACKEND_DAI_PRI_MI2S_RX,
  15055. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15056. msm_routing_put_voice_mixer),
  15057. };
  15058. static const struct snd_kcontrol_new int0_mi2s_rx_voice_mixer_controls[] = {
  15059. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15060. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15061. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15062. msm_routing_put_voice_mixer),
  15063. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15064. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15065. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15066. msm_routing_put_voice_mixer),
  15067. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15068. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15069. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15070. msm_routing_put_voice_mixer),
  15071. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15072. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15073. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15074. msm_routing_put_voice_mixer),
  15075. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15076. MSM_BACKEND_DAI_INT0_MI2S_RX,
  15077. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15078. msm_routing_put_voice_mixer),
  15079. };
  15080. static const struct snd_kcontrol_new int4_mi2s_rx_voice_mixer_controls[] = {
  15081. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15082. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15083. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15084. msm_routing_put_voice_mixer),
  15085. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15086. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15087. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15088. msm_routing_put_voice_mixer),
  15089. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15090. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15091. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15092. msm_routing_put_voice_mixer),
  15093. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15094. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15095. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15096. msm_routing_put_voice_mixer),
  15097. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15098. MSM_BACKEND_DAI_INT4_MI2S_RX,
  15099. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15100. msm_routing_put_voice_mixer),
  15101. };
  15102. static const struct snd_kcontrol_new tert_mi2s_rx_voice_mixer_controls[] = {
  15103. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15104. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15105. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15106. msm_routing_put_voice_mixer),
  15107. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15108. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15109. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15110. msm_routing_put_voice_mixer),
  15111. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15112. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15113. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15114. msm_routing_put_voice_mixer),
  15115. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15116. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15117. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15118. msm_routing_put_voice_mixer),
  15119. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15120. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15121. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15122. msm_routing_put_voice_mixer),
  15123. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15124. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15125. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15126. msm_routing_put_voice_mixer),
  15127. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15128. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  15129. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15130. msm_routing_put_voice_mixer),
  15131. };
  15132. static const struct snd_kcontrol_new quat_mi2s_rx_voice_mixer_controls[] = {
  15133. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15134. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15135. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15136. msm_routing_put_voice_mixer),
  15137. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15138. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15139. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15140. msm_routing_put_voice_mixer),
  15141. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15142. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15143. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_mixer,
  15144. msm_routing_put_voice_mixer),
  15145. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15146. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15147. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15148. msm_routing_put_voice_mixer),
  15149. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15150. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15151. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15152. msm_routing_put_voice_mixer),
  15153. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15154. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15155. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15156. msm_routing_put_voice_mixer),
  15157. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15158. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  15159. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15160. msm_routing_put_voice_mixer),
  15161. };
  15162. static const struct snd_kcontrol_new quin_mi2s_rx_voice_mixer_controls[] = {
  15163. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15164. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15165. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15166. msm_routing_put_voice_mixer),
  15167. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15168. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15169. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15170. msm_routing_put_voice_stub_mixer),
  15171. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15172. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15173. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15174. msm_routing_put_voice_stub_mixer),
  15175. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15176. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15177. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15178. msm_routing_put_voice_mixer),
  15179. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15180. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15181. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15182. msm_routing_put_voice_mixer),
  15183. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15184. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15185. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15186. msm_routing_put_voice_mixer),
  15187. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15188. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  15189. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15190. msm_routing_put_voice_mixer),
  15191. };
  15192. static const struct snd_kcontrol_new sen_mi2s_rx_voice_mixer_controls[] = {
  15193. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15194. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15195. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15196. msm_routing_put_voice_mixer),
  15197. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15198. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15199. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15200. msm_routing_put_voice_mixer),
  15201. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15202. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15203. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15204. msm_routing_put_voice_mixer),
  15205. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15206. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15207. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15208. msm_routing_put_voice_mixer),
  15209. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15210. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  15211. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15212. msm_routing_put_voice_mixer),
  15213. };
  15214. static const struct snd_kcontrol_new afe_pcm_rx_voice_mixer_controls[] = {
  15215. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15216. MSM_BACKEND_DAI_AFE_PCM_RX,
  15217. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15218. msm_routing_put_voice_mixer),
  15219. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15220. MSM_BACKEND_DAI_AFE_PCM_RX,
  15221. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15222. msm_routing_put_voice_mixer),
  15223. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15224. MSM_BACKEND_DAI_AFE_PCM_RX,
  15225. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15226. msm_routing_put_voice_mixer),
  15227. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15228. MSM_BACKEND_DAI_AFE_PCM_RX,
  15229. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15230. msm_routing_put_voice_mixer),
  15231. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15232. MSM_BACKEND_DAI_AFE_PCM_RX,
  15233. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15234. msm_routing_put_voice_mixer),
  15235. };
  15236. static const struct snd_kcontrol_new aux_pcm_rx_voice_mixer_controls[] = {
  15237. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15238. MSM_BACKEND_DAI_AUXPCM_RX,
  15239. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15240. msm_routing_put_voice_mixer),
  15241. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15242. MSM_BACKEND_DAI_AUXPCM_RX,
  15243. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15244. msm_routing_put_voice_mixer),
  15245. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15246. MSM_BACKEND_DAI_AUXPCM_RX,
  15247. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15248. msm_routing_put_voice_mixer),
  15249. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15250. MSM_BACKEND_DAI_AUXPCM_RX,
  15251. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15252. msm_routing_put_voice_mixer),
  15253. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15254. MSM_BACKEND_DAI_AUXPCM_RX,
  15255. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15256. msm_routing_put_voice_mixer),
  15257. };
  15258. static const struct snd_kcontrol_new sec_aux_pcm_rx_voice_mixer_controls[] = {
  15259. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15260. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15261. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15262. msm_routing_put_voice_mixer),
  15263. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15264. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15265. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15266. msm_routing_put_voice_mixer),
  15267. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15268. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15269. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15270. msm_routing_put_voice_mixer),
  15271. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15272. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15273. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15274. msm_routing_put_voice_mixer),
  15275. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15276. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  15277. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15278. msm_routing_put_voice_mixer),
  15279. };
  15280. static const struct snd_kcontrol_new tert_aux_pcm_rx_voice_mixer_controls[] = {
  15281. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15282. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15283. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15284. msm_routing_put_voice_mixer),
  15285. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15286. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15287. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15288. msm_routing_put_voice_mixer),
  15289. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15290. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15291. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15292. msm_routing_put_voice_mixer),
  15293. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15294. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15295. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15296. msm_routing_put_voice_mixer),
  15297. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15298. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  15299. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15300. msm_routing_put_voice_mixer),
  15301. };
  15302. static const struct snd_kcontrol_new quat_aux_pcm_rx_voice_mixer_controls[] = {
  15303. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15304. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15305. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15306. msm_routing_put_voice_mixer),
  15307. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15308. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15309. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15310. msm_routing_put_voice_mixer),
  15311. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15312. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15313. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15314. msm_routing_put_voice_mixer),
  15315. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15316. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15317. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15318. msm_routing_put_voice_mixer),
  15319. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15320. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  15321. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15322. msm_routing_put_voice_mixer),
  15323. };
  15324. static const struct snd_kcontrol_new quin_aux_pcm_rx_voice_mixer_controls[] = {
  15325. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15326. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15327. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15328. msm_routing_put_voice_mixer),
  15329. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15330. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15331. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15332. msm_routing_put_voice_mixer),
  15333. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15334. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15335. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15336. msm_routing_put_voice_mixer),
  15337. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15338. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15339. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15340. msm_routing_put_voice_mixer),
  15341. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15342. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  15343. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15344. msm_routing_put_voice_mixer),
  15345. };
  15346. static const struct snd_kcontrol_new sen_aux_pcm_rx_voice_mixer_controls[] = {
  15347. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15348. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15349. msm_routing_put_voice_mixer),
  15350. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15351. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15352. msm_routing_put_voice_mixer),
  15353. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM, MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15354. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15355. msm_routing_put_voice_mixer),
  15356. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15357. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15358. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15359. msm_routing_put_voice_mixer),
  15360. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15361. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  15362. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15363. msm_routing_put_voice_mixer),
  15364. };
  15365. static const struct snd_kcontrol_new hdmi_rx_voice_mixer_controls[] = {
  15366. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15367. MSM_BACKEND_DAI_HDMI_RX,
  15368. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15369. msm_routing_put_voice_mixer),
  15370. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15371. MSM_BACKEND_DAI_HDMI_RX,
  15372. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15373. msm_routing_put_voice_mixer),
  15374. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15375. MSM_BACKEND_DAI_HDMI_RX,
  15376. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15377. msm_routing_put_voice_mixer),
  15378. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15379. MSM_BACKEND_DAI_HDMI_RX,
  15380. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15381. msm_routing_put_voice_mixer),
  15382. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15383. MSM_BACKEND_DAI_HDMI_RX,
  15384. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15385. msm_routing_put_voice_mixer),
  15386. };
  15387. static const struct snd_kcontrol_new slimbus_7_rx_voice_mixer_controls[] = {
  15388. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15389. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15390. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15391. msm_routing_put_voice_mixer),
  15392. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15393. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15394. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15395. msm_routing_put_voice_mixer),
  15396. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15397. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15398. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15399. msm_routing_put_voice_mixer),
  15400. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15401. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15402. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15403. msm_routing_put_voice_mixer),
  15404. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15405. MSM_BACKEND_DAI_SLIMBUS_7_RX,
  15406. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15407. msm_routing_put_voice_mixer),
  15408. };
  15409. static const struct snd_kcontrol_new slimbus_8_rx_voice_mixer_controls[] = {
  15410. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15411. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15412. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15413. msm_routing_put_voice_mixer),
  15414. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15415. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15416. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15417. msm_routing_put_voice_mixer),
  15418. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15419. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15420. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15421. msm_routing_put_voice_mixer),
  15422. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15423. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15424. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15425. msm_routing_put_voice_mixer),
  15426. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15427. MSM_BACKEND_DAI_SLIMBUS_8_RX,
  15428. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15429. msm_routing_put_voice_mixer),
  15430. };
  15431. static const struct snd_kcontrol_new quat_tdm_rx_2_voice_mixer_controls[] = {
  15432. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15433. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  15434. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15435. msm_routing_put_voice_mixer),
  15436. };
  15437. static const struct snd_kcontrol_new quin_tdm_rx_2_voice_mixer_controls[] = {
  15438. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15439. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  15440. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15441. msm_routing_put_voice_mixer),
  15442. };
  15443. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_voice_mixer_controls[] = {
  15444. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15445. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15446. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15447. msm_routing_put_voice_mixer),
  15448. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15449. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15450. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15451. msm_routing_put_voice_mixer),
  15452. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15453. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15454. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15455. msm_routing_put_voice_mixer),
  15456. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15457. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15458. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15459. msm_routing_put_voice_mixer),
  15460. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15461. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  15462. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15463. msm_routing_put_voice_mixer),
  15464. };
  15465. static const struct snd_kcontrol_new wsa_cdc_dma_rx_1_voice_mixer_controls[] = {
  15466. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15467. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15468. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15469. msm_routing_put_voice_mixer),
  15470. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15471. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15472. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15473. msm_routing_put_voice_mixer),
  15474. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15475. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15476. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15477. msm_routing_put_voice_mixer),
  15478. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15479. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15480. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15481. msm_routing_put_voice_mixer),
  15482. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15483. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_1,
  15484. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15485. msm_routing_put_voice_mixer),
  15486. };
  15487. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_voice_mixer_controls[] = {
  15488. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15489. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15490. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15491. msm_routing_put_voice_mixer),
  15492. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15493. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15494. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15495. msm_routing_put_voice_mixer),
  15496. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15497. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15498. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15499. msm_routing_put_voice_mixer),
  15500. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15501. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15502. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15503. msm_routing_put_voice_mixer),
  15504. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15505. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  15506. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15507. msm_routing_put_voice_mixer),
  15508. };
  15509. static const struct snd_kcontrol_new rx_cdc_dma_rx_1_voice_mixer_controls[] = {
  15510. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15511. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15512. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15513. msm_routing_put_voice_mixer),
  15514. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15515. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15516. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15517. msm_routing_put_voice_mixer),
  15518. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15519. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15520. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15521. msm_routing_put_voice_mixer),
  15522. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15523. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15524. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15525. msm_routing_put_voice_mixer),
  15526. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15527. MSM_BACKEND_DAI_RX_CDC_DMA_RX_1,
  15528. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15529. msm_routing_put_voice_mixer),
  15530. };
  15531. static const struct snd_kcontrol_new rx_cdc_dma_rx_2_voice_mixer_controls[] = {
  15532. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15533. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15534. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15535. msm_routing_put_voice_mixer),
  15536. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15537. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15538. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15539. msm_routing_put_voice_mixer),
  15540. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15541. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15542. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15543. msm_routing_put_voice_mixer),
  15544. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15545. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15546. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15547. msm_routing_put_voice_mixer),
  15548. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15549. MSM_BACKEND_DAI_RX_CDC_DMA_RX_2,
  15550. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15551. msm_routing_put_voice_mixer),
  15552. };
  15553. static const struct snd_kcontrol_new rx_cdc_dma_rx_3_voice_mixer_controls[] = {
  15554. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15555. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15556. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15557. msm_routing_put_voice_mixer),
  15558. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15559. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15560. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15561. msm_routing_put_voice_mixer),
  15562. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15563. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15564. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15565. msm_routing_put_voice_mixer),
  15566. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15567. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15568. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15569. msm_routing_put_voice_mixer),
  15570. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15571. MSM_BACKEND_DAI_RX_CDC_DMA_RX_3,
  15572. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15573. msm_routing_put_voice_mixer),
  15574. };
  15575. static const struct snd_kcontrol_new rx_cdc_dma_rx_4_voice_mixer_controls[] = {
  15576. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15577. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15578. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15579. msm_routing_put_voice_mixer),
  15580. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15581. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15582. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15583. msm_routing_put_voice_mixer),
  15584. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15585. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15586. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15587. msm_routing_put_voice_mixer),
  15588. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15589. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15590. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15591. msm_routing_put_voice_mixer),
  15592. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15593. MSM_BACKEND_DAI_RX_CDC_DMA_RX_4,
  15594. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15595. msm_routing_put_voice_mixer),
  15596. };
  15597. static const struct snd_kcontrol_new rx_cdc_dma_rx_5_voice_mixer_controls[] = {
  15598. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15599. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15600. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15601. msm_routing_put_voice_mixer),
  15602. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15603. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15604. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15605. msm_routing_put_voice_mixer),
  15606. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15607. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15608. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15609. msm_routing_put_voice_mixer),
  15610. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15611. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15612. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15613. msm_routing_put_voice_mixer),
  15614. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15615. MSM_BACKEND_DAI_RX_CDC_DMA_RX_5,
  15616. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15617. msm_routing_put_voice_mixer),
  15618. };
  15619. static const struct snd_kcontrol_new rx_cdc_dma_rx_6_voice_mixer_controls[] = {
  15620. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15621. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15622. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15623. msm_routing_put_voice_mixer),
  15624. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15625. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15626. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15627. msm_routing_put_voice_mixer),
  15628. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15629. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15630. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15631. msm_routing_put_voice_mixer),
  15632. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15633. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15634. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15635. msm_routing_put_voice_mixer),
  15636. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15637. MSM_BACKEND_DAI_RX_CDC_DMA_RX_6,
  15638. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15639. msm_routing_put_voice_mixer),
  15640. };
  15641. static const struct snd_kcontrol_new rx_cdc_dma_rx_7_voice_mixer_controls[] = {
  15642. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15643. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15644. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15645. msm_routing_put_voice_mixer),
  15646. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15647. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15648. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15649. msm_routing_put_voice_mixer),
  15650. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15651. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15652. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15653. msm_routing_put_voice_mixer),
  15654. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15655. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15656. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15657. msm_routing_put_voice_mixer),
  15658. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15659. MSM_BACKEND_DAI_RX_CDC_DMA_RX_7,
  15660. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15661. msm_routing_put_voice_mixer),
  15662. };
  15663. static const struct snd_kcontrol_new pri_tdm_rx_0_voice_mixer_controls[] = {
  15664. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15665. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15666. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15667. msm_routing_put_voice_mixer),
  15668. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15669. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15670. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15671. msm_routing_put_voice_stub_mixer),
  15672. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15673. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15674. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15675. msm_routing_put_voice_stub_mixer),
  15676. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15677. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15678. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15679. msm_routing_put_voice_mixer),
  15680. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15681. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15682. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15683. msm_routing_put_voice_mixer),
  15684. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15685. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15686. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15687. msm_routing_put_voice_mixer),
  15688. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15689. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15690. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15691. msm_routing_put_voice_mixer),
  15692. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15693. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  15694. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15695. msm_routing_put_voice_mixer),
  15696. };
  15697. static const struct snd_kcontrol_new pri_tdm_rx_1_voice_mixer_controls[] = {
  15698. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15699. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15700. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15701. msm_routing_put_voice_mixer),
  15702. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15703. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15704. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15705. msm_routing_put_voice_stub_mixer),
  15706. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15707. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15708. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15709. msm_routing_put_voice_stub_mixer),
  15710. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15711. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15712. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15713. msm_routing_put_voice_mixer),
  15714. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15715. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15716. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15717. msm_routing_put_voice_mixer),
  15718. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15719. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15720. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15721. msm_routing_put_voice_mixer),
  15722. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15723. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15724. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15725. msm_routing_put_voice_mixer),
  15726. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15727. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  15728. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15729. msm_routing_put_voice_mixer),
  15730. };
  15731. static const struct snd_kcontrol_new pri_tdm_rx_2_voice_mixer_controls[] = {
  15732. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15733. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15734. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15735. msm_routing_put_voice_mixer),
  15736. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15737. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15738. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15739. msm_routing_put_voice_stub_mixer),
  15740. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15741. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15742. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15743. msm_routing_put_voice_stub_mixer),
  15744. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15745. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15746. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15747. msm_routing_put_voice_mixer),
  15748. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15749. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15750. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15751. msm_routing_put_voice_mixer),
  15752. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15753. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15754. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15755. msm_routing_put_voice_mixer),
  15756. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15757. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15758. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15759. msm_routing_put_voice_mixer),
  15760. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15761. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  15762. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15763. msm_routing_put_voice_mixer),
  15764. };
  15765. static const struct snd_kcontrol_new pri_tdm_rx_3_voice_mixer_controls[] = {
  15766. SOC_DOUBLE_EXT("Voip", SND_SOC_NOPM,
  15767. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15768. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  15769. msm_routing_put_voice_mixer),
  15770. SOC_DOUBLE_EXT("Voice Stub", SND_SOC_NOPM,
  15771. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15772. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15773. msm_routing_put_voice_stub_mixer),
  15774. SOC_DOUBLE_EXT("Voice2 Stub", SND_SOC_NOPM,
  15775. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15776. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  15777. msm_routing_put_voice_stub_mixer),
  15778. SOC_DOUBLE_EXT("VoLTE Stub", SND_SOC_NOPM,
  15779. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15780. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_mixer,
  15781. msm_routing_put_voice_mixer),
  15782. SOC_DOUBLE_EXT("DTMF", SND_SOC_NOPM,
  15783. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15784. MSM_FRONTEND_DAI_DTMF_RX, 1, 0, msm_routing_get_voice_mixer,
  15785. msm_routing_put_voice_mixer),
  15786. SOC_DOUBLE_EXT("QCHAT", SND_SOC_NOPM,
  15787. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15788. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  15789. msm_routing_put_voice_mixer),
  15790. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15791. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15792. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15793. msm_routing_put_voice_mixer),
  15794. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15795. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  15796. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15797. msm_routing_put_voice_mixer),
  15798. };
  15799. static const struct snd_kcontrol_new stub_rx_mixer_controls[] = {
  15800. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15801. MSM_BACKEND_DAI_EXTPROC_RX,
  15802. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15803. msm_routing_put_voice_mixer),
  15804. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15805. MSM_BACKEND_DAI_EXTPROC_RX,
  15806. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15807. msm_routing_put_voice_mixer),
  15808. };
  15809. static const struct snd_kcontrol_new slimbus_1_rx_mixer_controls[] = {
  15810. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15811. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15812. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15813. msm_routing_put_voice_mixer),
  15814. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15815. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  15816. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15817. msm_routing_put_voice_mixer),
  15818. };
  15819. static const struct snd_kcontrol_new slimbus_3_rx_mixer_controls[] = {
  15820. SOC_DOUBLE_EXT("VoiceMMode1", SND_SOC_NOPM,
  15821. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15822. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15823. msm_routing_put_voice_mixer),
  15824. SOC_DOUBLE_EXT("VoiceMMode2", SND_SOC_NOPM,
  15825. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  15826. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15827. msm_routing_put_voice_mixer),
  15828. };
  15829. static const struct snd_kcontrol_new tx_voicemmode1_mixer_controls[] = {
  15830. SOC_DOUBLE_EXT("PRI_TX_MMode1", SND_SOC_NOPM,
  15831. MSM_BACKEND_DAI_PRI_I2S_TX,
  15832. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15833. msm_routing_put_voice_mixer),
  15834. SOC_DOUBLE_EXT("MI2S_TX_MMode1", SND_SOC_NOPM,
  15835. MSM_BACKEND_DAI_MI2S_TX,
  15836. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15837. msm_routing_put_voice_mixer),
  15838. SOC_DOUBLE_EXT("SLIM_0_TX_MMode1", SND_SOC_NOPM,
  15839. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15840. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15841. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode1", SND_SOC_NOPM,
  15842. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15843. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15844. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode1", SND_SOC_NOPM,
  15845. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15846. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15847. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15848. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15849. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15850. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15851. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15852. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15853. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15854. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15855. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15856. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15857. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15858. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15859. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15860. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15861. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15862. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode1", SND_SOC_NOPM,
  15863. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15864. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15865. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode1", SND_SOC_NOPM,
  15866. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15867. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15868. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode1", SND_SOC_NOPM,
  15869. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0,
  15870. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15871. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15872. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15873. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15874. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode1", SND_SOC_NOPM,
  15875. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15876. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15877. SOC_DOUBLE_EXT("SLIM_7_TX_MMode1", SND_SOC_NOPM,
  15878. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15879. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15880. SOC_DOUBLE_EXT("SLIM_8_TX_MMode1", SND_SOC_NOPM,
  15881. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE1, 1,
  15882. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15883. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode1", SND_SOC_NOPM,
  15884. MSM_BACKEND_DAI_USB_TX,
  15885. MSM_FRONTEND_DAI_VOICEMMODE1, 1, 0, msm_routing_get_voice_mixer,
  15886. msm_routing_put_voice_mixer),
  15887. SOC_DOUBLE_EXT("QUAT_TDM_TX_0_MMode1", SND_SOC_NOPM,
  15888. MSM_BACKEND_DAI_QUAT_TDM_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15889. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15890. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15891. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15892. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15893. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15894. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15895. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15896. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15897. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15898. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15899. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode1", SND_SOC_NOPM,
  15900. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE1,
  15901. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15902. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode1", SND_SOC_NOPM,
  15903. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE1,
  15904. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15905. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode1", SND_SOC_NOPM,
  15906. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE1,
  15907. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15908. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode1", SND_SOC_NOPM,
  15909. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15910. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15911. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode1", SND_SOC_NOPM,
  15912. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE1,
  15913. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15914. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode1", SND_SOC_NOPM,
  15915. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE1,
  15916. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15917. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode1", SND_SOC_NOPM,
  15918. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15919. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15920. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode1", SND_SOC_NOPM,
  15921. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE1,
  15922. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15923. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode1", SND_SOC_NOPM,
  15924. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE1,
  15925. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15926. };
  15927. static const struct snd_kcontrol_new tx_voicemmode2_mixer_controls[] = {
  15928. SOC_DOUBLE_EXT("PRI_TX_MMode2", SND_SOC_NOPM,
  15929. MSM_BACKEND_DAI_PRI_I2S_TX,
  15930. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15931. msm_routing_put_voice_mixer),
  15932. SOC_DOUBLE_EXT("MI2S_TX_MMode2", SND_SOC_NOPM,
  15933. MSM_BACKEND_DAI_MI2S_TX,
  15934. MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0, msm_routing_get_voice_mixer,
  15935. msm_routing_put_voice_mixer),
  15936. SOC_DOUBLE_EXT("SLIM_0_TX_MMode2", SND_SOC_NOPM,
  15937. MSM_BACKEND_DAI_SLIMBUS_0_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15938. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15939. SOC_DOUBLE_EXT("INT_BT_SCO_TX_MMode2", SND_SOC_NOPM,
  15940. MSM_BACKEND_DAI_INT_BT_SCO_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15941. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15942. SOC_DOUBLE_EXT("AFE_PCM_TX_MMode2", SND_SOC_NOPM,
  15943. MSM_BACKEND_DAI_AFE_PCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15944. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15945. SOC_DOUBLE_EXT("AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15946. MSM_BACKEND_DAI_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15947. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15948. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15949. MSM_BACKEND_DAI_SEC_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15950. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15951. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15952. MSM_BACKEND_DAI_TERT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15953. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15954. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15955. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15956. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15957. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15958. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15959. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15960. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_MMode2", SND_SOC_NOPM,
  15961. MSM_BACKEND_DAI_SEN_AUXPCM_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15962. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15963. SOC_DOUBLE_EXT("PRI_MI2S_TX_MMode2", SND_SOC_NOPM,
  15964. MSM_BACKEND_DAI_PRI_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15965. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15966. SOC_DOUBLE_EXT("SEC_MI2S_TX_MMode2", SND_SOC_NOPM,
  15967. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1, 0,
  15968. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15969. SOC_DOUBLE_EXT("TERT_MI2S_TX_MMode2", SND_SOC_NOPM,
  15970. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15971. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15972. SOC_DOUBLE_EXT("INT3_MI2S_TX_MMode2", SND_SOC_NOPM,
  15973. MSM_BACKEND_DAI_INT3_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  15974. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15975. SOC_DOUBLE_EXT("SLIM_7_TX_MMode2", SND_SOC_NOPM,
  15976. MSM_BACKEND_DAI_SLIMBUS_7_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15977. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15978. SOC_DOUBLE_EXT("SLIM_8_TX_MMode2", SND_SOC_NOPM,
  15979. MSM_BACKEND_DAI_SLIMBUS_8_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15980. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15981. SOC_DOUBLE_EXT("USB_AUDIO_TX_MMode2", SND_SOC_NOPM,
  15982. MSM_BACKEND_DAI_USB_TX, MSM_FRONTEND_DAI_VOICEMMODE2, 1,
  15983. 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15984. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15985. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15986. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15987. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15988. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15989. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15990. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  15991. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  15992. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15993. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_MMode2", SND_SOC_NOPM,
  15994. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICEMMODE2,
  15995. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15996. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_MMode2", SND_SOC_NOPM,
  15997. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICEMMODE2,
  15998. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  15999. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_MMode2", SND_SOC_NOPM,
  16000. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICEMMODE2,
  16001. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16002. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_MMode2", SND_SOC_NOPM,
  16003. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16004. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16005. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_MMode2", SND_SOC_NOPM,
  16006. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICEMMODE2,
  16007. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16008. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_MMode2", SND_SOC_NOPM,
  16009. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICEMMODE2,
  16010. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16011. SOC_DOUBLE_EXT("QUAT_MI2S_TX_MMode2", SND_SOC_NOPM,
  16012. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16013. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16014. SOC_DOUBLE_EXT("QUIN_MI2S_TX_MMode2", SND_SOC_NOPM,
  16015. MSM_BACKEND_DAI_QUINARY_MI2S_TX, MSM_FRONTEND_DAI_VOICEMMODE2,
  16016. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16017. SOC_DOUBLE_EXT("PRI_TDM_TX_3_MMode2", SND_SOC_NOPM,
  16018. MSM_BACKEND_DAI_PRI_TDM_TX_3, MSM_FRONTEND_DAI_VOICEMMODE2,
  16019. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16020. };
  16021. static const struct snd_kcontrol_new tx_voip_mixer_controls[] = {
  16022. SOC_DOUBLE_EXT("PRI_TX_Voip", SND_SOC_NOPM,
  16023. MSM_BACKEND_DAI_PRI_I2S_TX,
  16024. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16025. msm_routing_put_voice_mixer),
  16026. SOC_DOUBLE_EXT("MI2S_TX_Voip", SND_SOC_NOPM,
  16027. MSM_BACKEND_DAI_MI2S_TX,
  16028. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16029. msm_routing_put_voice_mixer),
  16030. SOC_DOUBLE_EXT("SLIM_0_TX_Voip", SND_SOC_NOPM,
  16031. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16032. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16033. msm_routing_put_voice_mixer),
  16034. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_Voip", SND_SOC_NOPM,
  16035. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16036. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16037. msm_routing_put_voice_mixer),
  16038. SOC_DOUBLE_EXT("AFE_PCM_TX_Voip", SND_SOC_NOPM,
  16039. MSM_BACKEND_DAI_AFE_PCM_TX,
  16040. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16041. msm_routing_put_voice_mixer),
  16042. SOC_DOUBLE_EXT("AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16043. MSM_BACKEND_DAI_AUXPCM_TX,
  16044. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16045. msm_routing_put_voice_mixer),
  16046. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16047. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16048. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16049. msm_routing_put_voice_mixer),
  16050. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16051. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16052. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16053. msm_routing_put_voice_mixer),
  16054. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16055. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16056. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16057. msm_routing_put_voice_mixer),
  16058. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16059. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16060. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16061. msm_routing_put_voice_mixer),
  16062. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_Voip", SND_SOC_NOPM,
  16063. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16064. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16065. msm_routing_put_voice_mixer),
  16066. SOC_DOUBLE_EXT("PRI_MI2S_TX_Voip", SND_SOC_NOPM,
  16067. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16068. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16069. msm_routing_put_voice_mixer),
  16070. SOC_DOUBLE_EXT("SEC_MI2S_TX_Voip", SND_SOC_NOPM,
  16071. MSM_BACKEND_DAI_SECONDARY_MI2S_TX,
  16072. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16073. msm_routing_put_voice_mixer),
  16074. SOC_DOUBLE_EXT("TERT_MI2S_TX_Voip", SND_SOC_NOPM,
  16075. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16076. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16077. msm_routing_put_voice_mixer),
  16078. SOC_DOUBLE_EXT("INT3_MI2S_TX_Voip", SND_SOC_NOPM,
  16079. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16080. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16081. msm_routing_put_voice_mixer),
  16082. SOC_DOUBLE_EXT("SLIM_7_TX_Voip", SND_SOC_NOPM,
  16083. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16084. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16085. msm_routing_put_voice_mixer),
  16086. SOC_DOUBLE_EXT("SLIM_8_TX_Voip", SND_SOC_NOPM,
  16087. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16088. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16089. msm_routing_put_voice_mixer),
  16090. SOC_DOUBLE_EXT("USB_AUDIO_TX_Voip", SND_SOC_NOPM,
  16091. MSM_BACKEND_DAI_USB_TX,
  16092. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16093. msm_routing_put_voice_mixer),
  16094. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16095. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16096. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16097. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16098. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16099. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16100. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16101. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16102. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16103. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_Voip", SND_SOC_NOPM,
  16104. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOIP,
  16105. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16106. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_Voip", SND_SOC_NOPM,
  16107. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOIP,
  16108. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16109. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_Voip", SND_SOC_NOPM,
  16110. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOIP,
  16111. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16112. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_Voip", SND_SOC_NOPM,
  16113. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOIP,
  16114. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16115. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_Voip", SND_SOC_NOPM,
  16116. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOIP,
  16117. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16118. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_Voip", SND_SOC_NOPM,
  16119. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOIP,
  16120. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16121. SOC_SINGLE_EXT("PRI_TDM_TX_3_Voip", MSM_BACKEND_DAI_PRI_TDM_TX_3,
  16122. MSM_FRONTEND_DAI_VOIP, 1, 0, msm_routing_get_voice_mixer,
  16123. msm_routing_put_voice_mixer),
  16124. };
  16125. static const struct snd_kcontrol_new tx_voice_stub_mixer_controls[] = {
  16126. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16127. MSM_BACKEND_DAI_EXTPROC_TX,
  16128. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16129. msm_routing_put_voice_stub_mixer),
  16130. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16131. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16132. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16133. msm_routing_put_voice_stub_mixer),
  16134. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16135. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16136. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16137. msm_routing_put_voice_stub_mixer),
  16138. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16139. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16140. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16141. msm_routing_put_voice_stub_mixer),
  16142. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16143. MSM_BACKEND_DAI_MI2S_TX,
  16144. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16145. msm_routing_put_voice_stub_mixer),
  16146. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16147. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16148. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16149. msm_routing_put_voice_stub_mixer),
  16150. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16151. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16152. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16153. msm_routing_put_voice_stub_mixer),
  16154. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16155. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16156. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16157. msm_routing_put_voice_stub_mixer),
  16158. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16159. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16160. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16161. msm_routing_put_voice_stub_mixer),
  16162. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16163. MSM_BACKEND_DAI_AUXPCM_TX,
  16164. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16165. msm_routing_put_voice_stub_mixer),
  16166. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16167. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16168. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16169. msm_routing_put_voice_stub_mixer),
  16170. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16171. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16172. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16173. msm_routing_put_voice_stub_mixer),
  16174. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16175. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16176. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16177. msm_routing_put_voice_stub_mixer),
  16178. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16179. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16180. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16181. msm_routing_put_voice_stub_mixer),
  16182. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16183. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16184. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16185. msm_routing_put_voice_stub_mixer),
  16186. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16187. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16188. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16189. msm_routing_put_voice_stub_mixer),
  16190. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16191. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16192. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16193. msm_routing_put_voice_stub_mixer),
  16194. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16195. MSM_BACKEND_DAI_AFE_PCM_TX,
  16196. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16197. msm_routing_put_voice_stub_mixer),
  16198. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16199. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16200. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16201. msm_routing_put_voice_stub_mixer),
  16202. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16203. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16204. MSM_FRONTEND_DAI_VOICE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16205. msm_routing_put_voice_stub_mixer),
  16206. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16207. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16208. 1, 0, msm_routing_get_voice_stub_mixer,
  16209. msm_routing_put_voice_stub_mixer),
  16210. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16211. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16212. 1, 0, msm_routing_get_voice_stub_mixer,
  16213. msm_routing_put_voice_stub_mixer),
  16214. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16215. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16216. 1, 0, msm_routing_get_voice_stub_mixer,
  16217. msm_routing_put_voice_stub_mixer),
  16218. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16219. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE_STUB,
  16220. 1, 0, msm_routing_get_voice_stub_mixer,
  16221. msm_routing_put_voice_stub_mixer),
  16222. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16223. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE_STUB,
  16224. 1, 0, msm_routing_get_voice_stub_mixer,
  16225. msm_routing_put_voice_stub_mixer),
  16226. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16227. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE_STUB,
  16228. 1, 0, msm_routing_get_voice_stub_mixer,
  16229. msm_routing_put_voice_stub_mixer),
  16230. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16231. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE_STUB,
  16232. 1, 0, msm_routing_get_voice_stub_mixer,
  16233. msm_routing_put_voice_stub_mixer),
  16234. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16235. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE_STUB,
  16236. 1, 0, msm_routing_get_voice_stub_mixer,
  16237. msm_routing_put_voice_stub_mixer),
  16238. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16239. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE_STUB,
  16240. 1, 0, msm_routing_get_voice_stub_mixer,
  16241. msm_routing_put_voice_stub_mixer),
  16242. };
  16243. static const struct snd_kcontrol_new tx_voice2_stub_mixer_controls[] = {
  16244. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16245. MSM_BACKEND_DAI_EXTPROC_TX,
  16246. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16247. msm_routing_put_voice_stub_mixer),
  16248. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16249. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16250. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16251. msm_routing_put_voice_stub_mixer),
  16252. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16253. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16254. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16255. msm_routing_put_voice_stub_mixer),
  16256. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16257. MSM_BACKEND_DAI_AUXPCM_TX,
  16258. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16259. msm_routing_put_voice_stub_mixer),
  16260. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16261. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16262. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16263. msm_routing_put_voice_stub_mixer),
  16264. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16265. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16266. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16267. msm_routing_put_voice_stub_mixer),
  16268. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16269. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16270. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16271. msm_routing_put_voice_stub_mixer),
  16272. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16273. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16274. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16275. msm_routing_put_voice_stub_mixer),
  16276. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16277. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16278. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16279. msm_routing_put_voice_stub_mixer),
  16280. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16281. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16282. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16283. msm_routing_put_voice_stub_mixer),
  16284. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16285. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16286. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16287. msm_routing_put_voice_stub_mixer),
  16288. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16289. MSM_BACKEND_DAI_AFE_PCM_TX,
  16290. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16291. msm_routing_put_voice_stub_mixer),
  16292. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16293. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16294. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16295. msm_routing_put_voice_stub_mixer),
  16296. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16297. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16298. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16299. msm_routing_put_voice_stub_mixer),
  16300. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16301. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16302. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16303. msm_routing_put_voice_stub_mixer),
  16304. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16305. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16306. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16307. msm_routing_put_voice_stub_mixer),
  16308. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16309. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16310. MSM_FRONTEND_DAI_VOICE2_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16311. msm_routing_put_voice_stub_mixer),
  16312. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16313. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16314. 1, 0, msm_routing_get_voice_stub_mixer,
  16315. msm_routing_put_voice_stub_mixer),
  16316. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16317. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16318. 1, 0, msm_routing_get_voice_stub_mixer,
  16319. msm_routing_put_voice_stub_mixer),
  16320. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16321. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16322. 1, 0, msm_routing_get_voice_stub_mixer,
  16323. msm_routing_put_voice_stub_mixer),
  16324. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16325. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOICE2_STUB,
  16326. 1, 0, msm_routing_get_voice_stub_mixer,
  16327. msm_routing_put_voice_stub_mixer),
  16328. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16329. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOICE2_STUB,
  16330. 1, 0, msm_routing_get_voice_stub_mixer,
  16331. msm_routing_put_voice_stub_mixer),
  16332. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16333. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOICE2_STUB,
  16334. 1, 0, msm_routing_get_voice_stub_mixer,
  16335. msm_routing_put_voice_stub_mixer),
  16336. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16337. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOICE2_STUB,
  16338. 1, 0, msm_routing_get_voice_stub_mixer,
  16339. msm_routing_put_voice_stub_mixer),
  16340. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16341. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOICE2_STUB,
  16342. 1, 0, msm_routing_get_voice_stub_mixer,
  16343. msm_routing_put_voice_stub_mixer),
  16344. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16345. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOICE2_STUB,
  16346. 1, 0, msm_routing_get_voice_stub_mixer,
  16347. msm_routing_put_voice_stub_mixer),
  16348. };
  16349. static const struct snd_kcontrol_new tx_volte_stub_mixer_controls[] = {
  16350. SOC_DOUBLE_EXT("STUB_TX_HL", SND_SOC_NOPM,
  16351. MSM_BACKEND_DAI_EXTPROC_TX,
  16352. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16353. msm_routing_put_voice_stub_mixer),
  16354. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16355. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  16356. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16357. msm_routing_put_voice_stub_mixer),
  16358. SOC_DOUBLE_EXT("STUB_1_TX_HL", SND_SOC_NOPM,
  16359. MSM_BACKEND_DAI_EXTPROC_EC_TX,
  16360. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16361. msm_routing_put_voice_stub_mixer),
  16362. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16363. MSM_BACKEND_DAI_AUXPCM_TX,
  16364. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16365. msm_routing_put_voice_stub_mixer),
  16366. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16367. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16368. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16369. msm_routing_put_voice_stub_mixer),
  16370. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16371. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16372. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16373. msm_routing_put_voice_stub_mixer),
  16374. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16375. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16376. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16377. msm_routing_put_voice_stub_mixer),
  16378. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16379. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16380. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16381. msm_routing_put_voice_stub_mixer),
  16382. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16383. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16384. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16385. msm_routing_put_voice_stub_mixer),
  16386. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16387. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16388. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16389. msm_routing_put_voice_stub_mixer),
  16390. SOC_DOUBLE_EXT("SLIM_3_TX", SND_SOC_NOPM,
  16391. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  16392. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16393. msm_routing_put_voice_stub_mixer),
  16394. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16395. MSM_BACKEND_DAI_AFE_PCM_TX,
  16396. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16397. msm_routing_put_voice_stub_mixer),
  16398. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16399. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16400. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16401. msm_routing_put_voice_stub_mixer),
  16402. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16403. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  16404. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16405. msm_routing_put_voice_stub_mixer),
  16406. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16407. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16408. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16409. msm_routing_put_voice_stub_mixer),
  16410. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16411. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16412. MSM_FRONTEND_DAI_VOLTE_STUB, 1, 0, msm_routing_get_voice_stub_mixer,
  16413. msm_routing_put_voice_stub_mixer),
  16414. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16415. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16416. 1, 0, msm_routing_get_voice_stub_mixer,
  16417. msm_routing_put_voice_stub_mixer),
  16418. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  16419. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16420. 1, 0, msm_routing_get_voice_stub_mixer,
  16421. msm_routing_put_voice_stub_mixer),
  16422. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  16423. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16424. 1, 0, msm_routing_get_voice_stub_mixer,
  16425. msm_routing_put_voice_stub_mixer),
  16426. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0", SND_SOC_NOPM,
  16427. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_VOLTE_STUB,
  16428. 1, 0, msm_routing_get_voice_stub_mixer,
  16429. msm_routing_put_voice_stub_mixer),
  16430. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1", SND_SOC_NOPM,
  16431. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_VOLTE_STUB,
  16432. 1, 0, msm_routing_get_voice_stub_mixer,
  16433. msm_routing_put_voice_stub_mixer),
  16434. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2", SND_SOC_NOPM,
  16435. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_VOLTE_STUB,
  16436. 1, 0, msm_routing_get_voice_stub_mixer,
  16437. msm_routing_put_voice_stub_mixer),
  16438. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16439. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_VOLTE_STUB,
  16440. 1, 0, msm_routing_get_voice_stub_mixer,
  16441. msm_routing_put_voice_stub_mixer),
  16442. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4", SND_SOC_NOPM,
  16443. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_VOLTE_STUB,
  16444. 1, 0, msm_routing_get_voice_stub_mixer,
  16445. msm_routing_put_voice_stub_mixer),
  16446. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5", SND_SOC_NOPM,
  16447. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_VOLTE_STUB,
  16448. 1, 0, msm_routing_get_voice_stub_mixer,
  16449. msm_routing_put_voice_stub_mixer),
  16450. };
  16451. static const struct snd_kcontrol_new tx_qchat_mixer_controls[] = {
  16452. SOC_DOUBLE_EXT("PRI_TX_QCHAT", SND_SOC_NOPM,
  16453. MSM_BACKEND_DAI_PRI_I2S_TX,
  16454. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16455. msm_routing_put_voice_mixer),
  16456. SOC_DOUBLE_EXT("SLIM_0_TX_QCHAT", SND_SOC_NOPM,
  16457. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  16458. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16459. msm_routing_put_voice_mixer),
  16460. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX_QCHAT", SND_SOC_NOPM,
  16461. MSM_BACKEND_DAI_INT_BT_SCO_TX,
  16462. MSM_FRONTEND_DAI_QCHAT, 1, 0,
  16463. msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16464. SOC_DOUBLE_EXT("AFE_PCM_TX_QCHAT", SND_SOC_NOPM,
  16465. MSM_BACKEND_DAI_AFE_PCM_TX,
  16466. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16467. msm_routing_put_voice_mixer),
  16468. SOC_DOUBLE_EXT("AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16469. MSM_BACKEND_DAI_AUXPCM_TX,
  16470. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16471. msm_routing_put_voice_mixer),
  16472. SOC_DOUBLE_EXT("SEC_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16473. MSM_BACKEND_DAI_SEC_AUXPCM_TX,
  16474. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16475. msm_routing_put_voice_mixer),
  16476. SOC_DOUBLE_EXT("TERT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16477. MSM_BACKEND_DAI_TERT_AUXPCM_TX,
  16478. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16479. msm_routing_put_voice_mixer),
  16480. SOC_DOUBLE_EXT("QUAT_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16481. MSM_BACKEND_DAI_QUAT_AUXPCM_TX,
  16482. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16483. msm_routing_put_voice_mixer),
  16484. SOC_DOUBLE_EXT("QUIN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16485. MSM_BACKEND_DAI_QUIN_AUXPCM_TX,
  16486. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16487. msm_routing_put_voice_mixer),
  16488. SOC_DOUBLE_EXT("SEN_AUX_PCM_TX_QCHAT", SND_SOC_NOPM,
  16489. MSM_BACKEND_DAI_SEN_AUXPCM_TX,
  16490. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16491. msm_routing_put_voice_mixer),
  16492. SOC_DOUBLE_EXT("MI2S_TX_QCHAT", SND_SOC_NOPM,
  16493. MSM_BACKEND_DAI_MI2S_TX,
  16494. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16495. msm_routing_put_voice_mixer),
  16496. SOC_DOUBLE_EXT("PRI_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16497. MSM_BACKEND_DAI_PRI_MI2S_TX,
  16498. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16499. msm_routing_put_voice_mixer),
  16500. SOC_DOUBLE_EXT("TERT_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16501. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  16502. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16503. msm_routing_put_voice_mixer),
  16504. SOC_DOUBLE_EXT("INT3_MI2S_TX_QCHAT", SND_SOC_NOPM,
  16505. MSM_BACKEND_DAI_INT3_MI2S_TX,
  16506. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16507. msm_routing_put_voice_mixer),
  16508. SOC_DOUBLE_EXT("SLIM_7_TX_QCHAT", SND_SOC_NOPM,
  16509. MSM_BACKEND_DAI_SLIMBUS_7_TX,
  16510. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16511. msm_routing_put_voice_mixer),
  16512. SOC_DOUBLE_EXT("SLIM_8_TX_QCHAT", SND_SOC_NOPM,
  16513. MSM_BACKEND_DAI_SLIMBUS_8_TX,
  16514. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16515. msm_routing_put_voice_mixer),
  16516. SOC_DOUBLE_EXT("USB_AUDIO_TX_QCHAT", SND_SOC_NOPM,
  16517. MSM_BACKEND_DAI_USB_TX,
  16518. MSM_FRONTEND_DAI_QCHAT, 1, 0, msm_routing_get_voice_mixer,
  16519. msm_routing_put_voice_mixer),
  16520. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16521. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16522. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16523. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16524. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16525. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16526. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16527. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16528. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16529. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_0_QCHAT", SND_SOC_NOPM,
  16530. MSM_BACKEND_DAI_TX_CDC_DMA_TX_0, MSM_FRONTEND_DAI_QCHAT,
  16531. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16532. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_1_QCHAT", SND_SOC_NOPM,
  16533. MSM_BACKEND_DAI_TX_CDC_DMA_TX_1, MSM_FRONTEND_DAI_QCHAT,
  16534. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16535. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_2_QCHAT", SND_SOC_NOPM,
  16536. MSM_BACKEND_DAI_TX_CDC_DMA_TX_2, MSM_FRONTEND_DAI_QCHAT,
  16537. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16538. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3_QCHAT", SND_SOC_NOPM,
  16539. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, MSM_FRONTEND_DAI_QCHAT,
  16540. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16541. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_4_QCHAT", SND_SOC_NOPM,
  16542. MSM_BACKEND_DAI_TX_CDC_DMA_TX_4, MSM_FRONTEND_DAI_QCHAT,
  16543. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16544. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_5_QCHAT", SND_SOC_NOPM,
  16545. MSM_BACKEND_DAI_TX_CDC_DMA_TX_5, MSM_FRONTEND_DAI_QCHAT,
  16546. 1, 0, msm_routing_get_voice_mixer, msm_routing_put_voice_mixer),
  16547. };
  16548. static const struct snd_kcontrol_new int0_mi2s_rx_port_mixer_controls[] = {
  16549. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16550. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16551. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16552. msm_routing_put_port_mixer),
  16553. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16554. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16555. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16556. msm_routing_put_port_mixer),
  16557. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16558. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16559. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16560. msm_routing_put_port_mixer),
  16561. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16562. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16563. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16564. msm_routing_put_port_mixer),
  16565. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16566. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16567. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16568. msm_routing_put_port_mixer),
  16569. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16570. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16571. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16572. msm_routing_put_port_mixer),
  16573. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16574. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16575. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16576. msm_routing_put_port_mixer),
  16577. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16578. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16579. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16580. msm_routing_put_port_mixer),
  16581. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16582. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16583. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16584. msm_routing_put_port_mixer),
  16585. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16586. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16587. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16588. msm_routing_put_port_mixer),
  16589. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16590. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16591. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16592. msm_routing_put_port_mixer),
  16593. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16594. MSM_BACKEND_DAI_INT0_MI2S_RX,
  16595. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16596. msm_routing_put_port_mixer),
  16597. };
  16598. static const struct snd_kcontrol_new int4_mi2s_rx_port_mixer_controls[] = {
  16599. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16600. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16601. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16602. msm_routing_put_port_mixer),
  16603. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16604. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16605. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16606. msm_routing_put_port_mixer),
  16607. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16608. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16609. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16610. msm_routing_put_port_mixer),
  16611. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16612. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16613. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16614. msm_routing_put_port_mixer),
  16615. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16616. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16617. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16618. msm_routing_put_port_mixer),
  16619. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16620. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16621. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16622. msm_routing_put_port_mixer),
  16623. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  16624. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16625. MSM_BACKEND_DAI_INT3_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16626. msm_routing_put_port_mixer),
  16627. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16628. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16629. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16630. msm_routing_put_port_mixer),
  16631. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16632. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16633. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16634. msm_routing_put_port_mixer),
  16635. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16636. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16637. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16638. msm_routing_put_port_mixer),
  16639. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16640. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16641. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16642. msm_routing_put_port_mixer),
  16643. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16644. MSM_BACKEND_DAI_INT4_MI2S_RX,
  16645. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16646. msm_routing_put_port_mixer),
  16647. };
  16648. static const struct snd_kcontrol_new wsa_cdc_dma_rx_0_port_mixer_controls[] = {
  16649. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  16650. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16651. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0, 1, 0, msm_routing_get_port_mixer,
  16652. msm_routing_put_port_mixer),
  16653. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16654. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16655. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16656. msm_routing_put_port_mixer),
  16657. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16658. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16659. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16660. msm_routing_put_port_mixer),
  16661. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16662. MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0,
  16663. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16664. msm_routing_put_port_mixer),
  16665. };
  16666. static const struct snd_kcontrol_new rx_cdc_dma_rx_0_port_mixer_controls[] = {
  16667. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  16668. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16669. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3, 1, 0, msm_routing_get_port_mixer,
  16670. msm_routing_put_port_mixer),
  16671. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16672. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16673. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16674. msm_routing_put_port_mixer),
  16675. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16676. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16677. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16678. msm_routing_put_port_mixer),
  16679. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16680. MSM_BACKEND_DAI_RX_CDC_DMA_RX_0,
  16681. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16682. msm_routing_put_port_mixer),
  16683. };
  16684. static const struct snd_kcontrol_new sbus_0_rx_port_mixer_controls[] = {
  16685. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16686. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16687. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16688. msm_routing_put_port_mixer),
  16689. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16690. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16691. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16692. msm_routing_put_port_mixer),
  16693. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16694. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16695. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16696. msm_routing_put_port_mixer),
  16697. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16698. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16699. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16700. msm_routing_put_port_mixer),
  16701. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16702. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16703. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16704. msm_routing_put_port_mixer),
  16705. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16706. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16707. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16708. msm_routing_put_port_mixer),
  16709. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16710. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16711. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16712. msm_routing_put_port_mixer),
  16713. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16714. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16715. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16716. msm_routing_put_port_mixer),
  16717. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16718. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16719. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16720. msm_routing_put_port_mixer),
  16721. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16722. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16723. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16724. msm_routing_put_port_mixer),
  16725. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16726. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16727. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16728. msm_routing_put_port_mixer),
  16729. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16730. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16731. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16732. msm_routing_put_port_mixer),
  16733. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16734. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16735. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16736. msm_routing_put_port_mixer),
  16737. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16738. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16739. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16740. msm_routing_put_port_mixer),
  16741. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16742. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16743. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16744. msm_routing_put_port_mixer),
  16745. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16746. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16747. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16748. msm_routing_put_port_mixer),
  16749. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  16750. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16751. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16752. msm_routing_put_port_mixer),
  16753. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  16754. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16755. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16756. msm_routing_put_port_mixer),
  16757. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16758. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16759. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16760. msm_routing_put_port_mixer),
  16761. SOC_DOUBLE_EXT("PRI_MI2S_RX", SND_SOC_NOPM,
  16762. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16763. MSM_BACKEND_DAI_PRI_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16764. msm_routing_put_port_mixer),
  16765. SOC_DOUBLE_EXT("SEC_MI2S_RX", SND_SOC_NOPM,
  16766. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16767. MSM_BACKEND_DAI_SECONDARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16768. msm_routing_put_port_mixer),
  16769. SOC_DOUBLE_EXT("TERT_MI2S_RX", SND_SOC_NOPM,
  16770. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16771. MSM_BACKEND_DAI_TERTIARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16772. msm_routing_put_port_mixer),
  16773. SOC_DOUBLE_EXT("QUAT_MI2S_RX", SND_SOC_NOPM,
  16774. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16775. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16776. msm_routing_put_port_mixer),
  16777. SOC_DOUBLE_EXT("QUIN_MI2S_RX", SND_SOC_NOPM,
  16778. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16779. MSM_BACKEND_DAI_QUINARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16780. msm_routing_put_port_mixer),
  16781. SOC_DOUBLE_EXT("SEN_MI2S_RX", SND_SOC_NOPM,
  16782. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16783. MSM_BACKEND_DAI_SENARY_MI2S_RX, 1, 0, msm_routing_get_port_mixer,
  16784. msm_routing_put_port_mixer),
  16785. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16786. MSM_BACKEND_DAI_SLIMBUS_0_RX,
  16787. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16788. msm_routing_put_port_mixer),
  16789. };
  16790. static const struct snd_kcontrol_new aux_pcm_rx_port_mixer_controls[] = {
  16791. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16792. MSM_BACKEND_DAI_AUXPCM_RX,
  16793. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16794. msm_routing_put_port_mixer),
  16795. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16796. MSM_BACKEND_DAI_AUXPCM_RX,
  16797. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16798. msm_routing_put_port_mixer),
  16799. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16800. MSM_BACKEND_DAI_AUXPCM_RX,
  16801. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16802. msm_routing_put_port_mixer),
  16803. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16804. MSM_BACKEND_DAI_AUXPCM_RX,
  16805. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16806. msm_routing_put_port_mixer),
  16807. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  16808. MSM_BACKEND_DAI_AUXPCM_RX,
  16809. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16810. msm_routing_put_port_mixer),
  16811. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  16812. MSM_BACKEND_DAI_AUXPCM_RX,
  16813. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16814. msm_routing_put_port_mixer),
  16815. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  16816. MSM_BACKEND_DAI_AUXPCM_RX,
  16817. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0, msm_routing_get_port_mixer,
  16818. msm_routing_put_port_mixer),
  16819. };
  16820. static const struct snd_kcontrol_new sec_auxpcm_rx_port_mixer_controls[] = {
  16821. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16822. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16823. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16824. msm_routing_put_port_mixer),
  16825. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16826. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16827. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16828. msm_routing_put_port_mixer),
  16829. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16830. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16831. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16832. msm_routing_put_port_mixer),
  16833. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16834. MSM_BACKEND_DAI_SEC_AUXPCM_RX,
  16835. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16836. msm_routing_put_port_mixer),
  16837. };
  16838. static const struct snd_kcontrol_new tert_auxpcm_rx_port_mixer_controls[] = {
  16839. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16840. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16841. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16842. msm_routing_put_port_mixer),
  16843. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16844. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16845. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16846. msm_routing_put_port_mixer),
  16847. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16848. MSM_BACKEND_DAI_TERT_AUXPCM_RX,
  16849. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16850. msm_routing_put_port_mixer),
  16851. };
  16852. static const struct snd_kcontrol_new quat_auxpcm_rx_port_mixer_controls[] = {
  16853. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16854. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16855. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16856. msm_routing_put_port_mixer),
  16857. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16858. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16859. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16860. msm_routing_put_port_mixer),
  16861. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16862. MSM_BACKEND_DAI_QUAT_AUXPCM_RX,
  16863. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16864. msm_routing_put_port_mixer),
  16865. };
  16866. static const struct snd_kcontrol_new quin_auxpcm_rx_port_mixer_controls[] = {
  16867. SOC_DOUBLE_EXT("QUIN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16868. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16869. MSM_BACKEND_DAI_QUIN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16870. msm_routing_put_port_mixer),
  16871. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16872. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16873. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16874. msm_routing_put_port_mixer),
  16875. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16876. MSM_BACKEND_DAI_QUIN_AUXPCM_RX,
  16877. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16878. msm_routing_put_port_mixer),
  16879. };
  16880. static const struct snd_kcontrol_new sen_auxpcm_rx_port_mixer_controls[] = {
  16881. SOC_DOUBLE_EXT("SEN_AUXPCM_UL_TX", SND_SOC_NOPM,
  16882. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16883. MSM_BACKEND_DAI_SEN_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16884. msm_routing_put_port_mixer),
  16885. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16886. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16887. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16888. msm_routing_put_port_mixer),
  16889. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16890. MSM_BACKEND_DAI_SEN_AUXPCM_RX,
  16891. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16892. msm_routing_put_port_mixer),
  16893. };
  16894. static const struct snd_kcontrol_new sbus_1_rx_port_mixer_controls[] = {
  16895. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16896. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16897. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16898. msm_routing_put_port_mixer),
  16899. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  16900. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16901. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0, msm_routing_get_port_mixer,
  16902. msm_routing_put_port_mixer),
  16903. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16904. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16905. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16906. msm_routing_put_port_mixer),
  16907. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16908. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16909. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16910. msm_routing_put_port_mixer),
  16911. SOC_DOUBLE_EXT("TERT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16912. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16913. MSM_BACKEND_DAI_TERT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16914. msm_routing_put_port_mixer),
  16915. SOC_DOUBLE_EXT("QUAT_AUXPCM_UL_TX", SND_SOC_NOPM,
  16916. MSM_BACKEND_DAI_SLIMBUS_1_RX,
  16917. MSM_BACKEND_DAI_QUAT_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16918. msm_routing_put_port_mixer),
  16919. };
  16920. static const struct snd_kcontrol_new sbus_3_rx_port_mixer_controls[] = {
  16921. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_RX", SND_SOC_NOPM,
  16922. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16923. MSM_BACKEND_DAI_INT_BT_SCO_RX, 1, 0, msm_routing_get_port_mixer,
  16924. msm_routing_put_port_mixer),
  16925. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16926. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16927. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16928. msm_routing_put_port_mixer),
  16929. SOC_DOUBLE_EXT("AFE_PCM_RX", SND_SOC_NOPM,
  16930. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16931. MSM_BACKEND_DAI_AFE_PCM_RX, 1, 0, msm_routing_get_port_mixer,
  16932. msm_routing_put_port_mixer),
  16933. SOC_DOUBLE_EXT("AUX_PCM_RX", SND_SOC_NOPM,
  16934. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16935. MSM_BACKEND_DAI_AUXPCM_RX, 1, 0, msm_routing_get_port_mixer,
  16936. msm_routing_put_port_mixer),
  16937. SOC_DOUBLE_EXT("SLIM_0_RX", SND_SOC_NOPM,
  16938. MSM_BACKEND_DAI_SLIMBUS_3_RX,
  16939. MSM_BACKEND_DAI_SLIMBUS_0_RX, 1, 0, msm_routing_get_port_mixer,
  16940. msm_routing_put_port_mixer),
  16941. };
  16942. static const struct snd_kcontrol_new sbus_6_rx_port_mixer_controls[] = {
  16943. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  16944. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16945. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  16946. msm_routing_put_port_mixer),
  16947. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  16948. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16949. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  16950. msm_routing_put_port_mixer),
  16951. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16952. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16953. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  16954. msm_routing_put_port_mixer),
  16955. SOC_DOUBLE_EXT("SLIM_7_TX", SND_SOC_NOPM,
  16956. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16957. MSM_BACKEND_DAI_SLIMBUS_7_TX, 1, 0, msm_routing_get_port_mixer,
  16958. msm_routing_put_port_mixer),
  16959. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  16960. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16961. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  16962. msm_routing_put_port_mixer),
  16963. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  16964. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16965. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16966. msm_routing_put_port_mixer),
  16967. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  16968. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16969. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  16970. msm_routing_put_port_mixer),
  16971. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  16972. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16973. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16974. msm_routing_put_port_mixer),
  16975. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  16976. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16977. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16978. msm_routing_put_port_mixer),
  16979. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  16980. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16981. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16982. msm_routing_put_port_mixer),
  16983. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  16984. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16985. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  16986. msm_routing_put_port_mixer),
  16987. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  16988. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16989. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  16990. msm_routing_put_port_mixer),
  16991. SOC_DOUBLE_EXT("SLIM_9_TX", SND_SOC_NOPM,
  16992. MSM_BACKEND_DAI_SLIMBUS_6_RX,
  16993. MSM_BACKEND_DAI_SLIMBUS_9_TX, 1, 0, msm_routing_get_port_mixer,
  16994. msm_routing_put_port_mixer),
  16995. };
  16996. static const struct snd_kcontrol_new bt_sco_rx_port_mixer_controls[] = {
  16997. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  16998. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  16999. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17000. msm_routing_put_port_mixer),
  17001. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17002. MSM_BACKEND_DAI_INT_BT_SCO_RX,
  17003. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17004. msm_routing_put_port_mixer),
  17005. };
  17006. static const struct snd_kcontrol_new afe_pcm_rx_port_mixer_controls[] = {
  17007. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17008. MSM_BACKEND_DAI_AFE_PCM_RX,
  17009. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17010. msm_routing_put_port_mixer),
  17011. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17012. MSM_BACKEND_DAI_AFE_PCM_RX,
  17013. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17014. msm_routing_put_port_mixer),
  17015. };
  17016. static const struct snd_kcontrol_new hdmi_rx_port_mixer_controls[] = {
  17017. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17018. MSM_BACKEND_DAI_HDMI_RX,
  17019. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17020. msm_routing_put_port_mixer),
  17021. };
  17022. static const struct snd_kcontrol_new display_port_rx_port_mixer_controls[] = {
  17023. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17024. MSM_BACKEND_DAI_DISPLAY_PORT_RX,
  17025. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17026. msm_routing_put_port_mixer),
  17027. };
  17028. static const struct snd_kcontrol_new display_port_rx1_port_mixer_controls[] = {
  17029. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17030. MSM_BACKEND_DAI_DISPLAY_PORT_RX_1,
  17031. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17032. msm_routing_put_port_mixer),
  17033. };
  17034. static const struct snd_kcontrol_new sec_i2s_rx_port_mixer_controls[] = {
  17035. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17036. MSM_BACKEND_DAI_SEC_I2S_RX,
  17037. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17038. msm_routing_put_port_mixer),
  17039. };
  17040. static const struct snd_kcontrol_new mi2s_rx_port_mixer_controls[] = {
  17041. SOC_DOUBLE_EXT("SLIM_1_TX", SND_SOC_NOPM,
  17042. MSM_BACKEND_DAI_MI2S_RX,
  17043. MSM_BACKEND_DAI_SLIMBUS_1_TX, 1, 0, msm_routing_get_port_mixer,
  17044. msm_routing_put_port_mixer),
  17045. SOC_DOUBLE_EXT("MI2S_TX", SND_SOC_NOPM,
  17046. MSM_BACKEND_DAI_MI2S_RX,
  17047. MSM_BACKEND_DAI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17048. msm_routing_put_port_mixer),
  17049. };
  17050. static const struct snd_kcontrol_new primary_mi2s_rx_port_mixer_controls[] = {
  17051. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17052. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17053. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17054. msm_routing_put_port_mixer),
  17055. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17056. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17057. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17058. msm_routing_put_port_mixer),
  17059. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17060. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17061. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17062. msm_routing_put_port_mixer),
  17063. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17064. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17065. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17066. msm_routing_put_port_mixer),
  17067. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17068. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17069. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0, msm_routing_get_port_mixer,
  17070. msm_routing_put_port_mixer),
  17071. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17072. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17073. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17074. msm_routing_put_port_mixer),
  17075. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17076. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17077. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17078. msm_routing_put_port_mixer),
  17079. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17080. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17081. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17082. msm_routing_put_port_mixer),
  17083. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17084. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17085. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17086. msm_routing_put_port_mixer),
  17087. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17088. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17089. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17090. msm_routing_put_port_mixer),
  17091. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17092. MSM_BACKEND_DAI_PRI_MI2S_RX,
  17093. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17094. msm_routing_put_port_mixer),
  17095. };
  17096. static const struct snd_kcontrol_new usb_rx_port_mixer_controls[] = {
  17097. SOC_DOUBLE_EXT("USB_AUDIO_TX", SND_SOC_NOPM,
  17098. MSM_BACKEND_DAI_USB_RX,
  17099. MSM_BACKEND_DAI_USB_TX, 1, 0, msm_routing_get_port_mixer,
  17100. msm_routing_put_port_mixer),
  17101. };
  17102. static const struct snd_kcontrol_new quat_mi2s_rx_port_mixer_controls[] = {
  17103. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17104. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17105. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17106. msm_routing_put_port_mixer),
  17107. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17108. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17109. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17110. msm_routing_put_port_mixer),
  17111. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17112. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17113. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  17114. msm_routing_put_port_mixer),
  17115. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17116. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17117. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  17118. msm_routing_put_port_mixer),
  17119. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17120. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17121. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17122. msm_routing_put_port_mixer),
  17123. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17124. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17125. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17126. msm_routing_put_port_mixer),
  17127. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17128. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17129. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17130. msm_routing_put_port_mixer),
  17131. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17132. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17133. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17134. msm_routing_put_port_mixer),
  17135. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17136. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17137. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17138. msm_routing_put_port_mixer),
  17139. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17140. MSM_BACKEND_DAI_QUATERNARY_MI2S_RX,
  17141. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17142. msm_routing_put_port_mixer),
  17143. };
  17144. static const struct snd_kcontrol_new quin_mi2s_rx_port_mixer_controls[] = {
  17145. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17146. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17147. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17148. msm_routing_put_port_mixer),
  17149. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17150. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17151. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17152. msm_routing_put_port_mixer),
  17153. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17154. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17155. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17156. msm_routing_put_port_mixer),
  17157. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17158. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17159. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17160. msm_routing_put_port_mixer),
  17161. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17162. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17163. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17164. msm_routing_put_port_mixer),
  17165. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17166. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17167. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17168. msm_routing_put_port_mixer),
  17169. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17170. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17171. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17172. msm_routing_put_port_mixer),
  17173. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17174. MSM_BACKEND_DAI_QUINARY_MI2S_RX,
  17175. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17176. msm_routing_put_port_mixer),
  17177. };
  17178. static const struct snd_kcontrol_new sen_mi2s_rx_port_mixer_controls[] = {
  17179. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17180. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17181. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17182. msm_routing_put_port_mixer),
  17183. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  17184. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17185. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17186. msm_routing_put_port_mixer),
  17187. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  17188. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17189. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  17190. msm_routing_put_port_mixer),
  17191. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17192. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17193. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17194. msm_routing_put_port_mixer),
  17195. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  17196. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17197. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17198. msm_routing_put_port_mixer),
  17199. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  17200. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17201. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17202. msm_routing_put_port_mixer),
  17203. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17204. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17205. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  17206. msm_routing_put_port_mixer),
  17207. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  17208. MSM_BACKEND_DAI_SENARY_MI2S_RX,
  17209. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  17210. msm_routing_put_port_mixer),
  17211. };
  17212. static const struct snd_kcontrol_new pri_tdm_rx_0_port_mixer_controls[] = {
  17213. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17214. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17215. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17216. msm_routing_get_port_mixer,
  17217. msm_routing_put_port_mixer),
  17218. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17219. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17220. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17221. msm_routing_get_port_mixer,
  17222. msm_routing_put_port_mixer),
  17223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17224. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17226. msm_routing_get_port_mixer,
  17227. msm_routing_put_port_mixer),
  17228. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17229. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17230. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17231. msm_routing_get_port_mixer,
  17232. msm_routing_put_port_mixer),
  17233. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17234. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17235. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17236. msm_routing_get_port_mixer,
  17237. msm_routing_put_port_mixer),
  17238. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17239. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17240. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17241. msm_routing_get_port_mixer,
  17242. msm_routing_put_port_mixer),
  17243. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17244. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17245. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17246. msm_routing_get_port_mixer,
  17247. msm_routing_put_port_mixer),
  17248. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17249. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17250. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17251. msm_routing_get_port_mixer,
  17252. msm_routing_put_port_mixer),
  17253. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17254. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17255. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17256. msm_routing_get_port_mixer,
  17257. msm_routing_put_port_mixer),
  17258. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17259. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17260. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17261. msm_routing_get_port_mixer,
  17262. msm_routing_put_port_mixer),
  17263. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17264. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17265. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17266. msm_routing_get_port_mixer,
  17267. msm_routing_put_port_mixer),
  17268. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17269. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17270. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17271. msm_routing_get_port_mixer,
  17272. msm_routing_put_port_mixer),
  17273. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17274. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17275. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17276. msm_routing_get_port_mixer,
  17277. msm_routing_put_port_mixer),
  17278. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17279. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17280. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17281. msm_routing_get_port_mixer,
  17282. msm_routing_put_port_mixer),
  17283. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17284. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17285. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17286. msm_routing_get_port_mixer,
  17287. msm_routing_put_port_mixer),
  17288. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17289. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17290. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17291. msm_routing_get_port_mixer,
  17292. msm_routing_put_port_mixer),
  17293. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17294. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17295. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17296. msm_routing_get_port_mixer,
  17297. msm_routing_put_port_mixer),
  17298. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17299. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17300. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17301. msm_routing_get_port_mixer,
  17302. msm_routing_put_port_mixer),
  17303. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17304. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17305. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17306. msm_routing_get_port_mixer,
  17307. msm_routing_put_port_mixer),
  17308. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17309. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17310. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17311. msm_routing_get_port_mixer,
  17312. msm_routing_put_port_mixer),
  17313. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17314. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17315. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17316. msm_routing_get_port_mixer,
  17317. msm_routing_put_port_mixer),
  17318. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17319. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17320. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17321. msm_routing_get_port_mixer,
  17322. msm_routing_put_port_mixer),
  17323. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17324. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17325. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17326. msm_routing_get_port_mixer,
  17327. msm_routing_put_port_mixer),
  17328. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17329. MSM_BACKEND_DAI_PRI_TDM_RX_0,
  17330. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17331. msm_routing_get_port_mixer,
  17332. msm_routing_put_port_mixer),
  17333. };
  17334. static const struct snd_kcontrol_new pri_tdm_rx_1_port_mixer_controls[] = {
  17335. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17336. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17337. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17338. msm_routing_get_port_mixer,
  17339. msm_routing_put_port_mixer),
  17340. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17341. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17342. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17343. msm_routing_get_port_mixer,
  17344. msm_routing_put_port_mixer),
  17345. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17346. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17347. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17348. msm_routing_get_port_mixer,
  17349. msm_routing_put_port_mixer),
  17350. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17351. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17352. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17353. msm_routing_get_port_mixer,
  17354. msm_routing_put_port_mixer),
  17355. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17356. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17357. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17358. msm_routing_get_port_mixer,
  17359. msm_routing_put_port_mixer),
  17360. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17361. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17362. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17363. msm_routing_get_port_mixer,
  17364. msm_routing_put_port_mixer),
  17365. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17366. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17367. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17368. msm_routing_get_port_mixer,
  17369. msm_routing_put_port_mixer),
  17370. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17371. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17372. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17373. msm_routing_get_port_mixer,
  17374. msm_routing_put_port_mixer),
  17375. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17376. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17377. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17378. msm_routing_get_port_mixer,
  17379. msm_routing_put_port_mixer),
  17380. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17381. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17382. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17383. msm_routing_get_port_mixer,
  17384. msm_routing_put_port_mixer),
  17385. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17386. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17387. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17388. msm_routing_get_port_mixer,
  17389. msm_routing_put_port_mixer),
  17390. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17391. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17392. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17393. msm_routing_get_port_mixer,
  17394. msm_routing_put_port_mixer),
  17395. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17396. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17397. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17398. msm_routing_get_port_mixer,
  17399. msm_routing_put_port_mixer),
  17400. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17401. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17402. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17403. msm_routing_get_port_mixer,
  17404. msm_routing_put_port_mixer),
  17405. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17406. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17407. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17408. msm_routing_get_port_mixer,
  17409. msm_routing_put_port_mixer),
  17410. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17411. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17412. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17413. msm_routing_get_port_mixer,
  17414. msm_routing_put_port_mixer),
  17415. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17416. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17417. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17418. msm_routing_get_port_mixer,
  17419. msm_routing_put_port_mixer),
  17420. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17421. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17422. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17423. msm_routing_get_port_mixer,
  17424. msm_routing_put_port_mixer),
  17425. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17426. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17427. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17428. msm_routing_get_port_mixer,
  17429. msm_routing_put_port_mixer),
  17430. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17431. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17432. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17433. msm_routing_get_port_mixer,
  17434. msm_routing_put_port_mixer),
  17435. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17436. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17437. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17438. msm_routing_get_port_mixer,
  17439. msm_routing_put_port_mixer),
  17440. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17441. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17442. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17443. msm_routing_get_port_mixer,
  17444. msm_routing_put_port_mixer),
  17445. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17446. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17447. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17448. msm_routing_get_port_mixer,
  17449. msm_routing_put_port_mixer),
  17450. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17451. MSM_BACKEND_DAI_PRI_TDM_RX_1,
  17452. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17453. msm_routing_get_port_mixer,
  17454. msm_routing_put_port_mixer),
  17455. };
  17456. static const struct snd_kcontrol_new pri_tdm_rx_2_port_mixer_controls[] = {
  17457. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17458. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17459. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17460. msm_routing_get_port_mixer,
  17461. msm_routing_put_port_mixer),
  17462. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17463. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17464. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17465. msm_routing_get_port_mixer,
  17466. msm_routing_put_port_mixer),
  17467. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17468. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17469. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17470. msm_routing_get_port_mixer,
  17471. msm_routing_put_port_mixer),
  17472. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17473. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17474. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17475. msm_routing_get_port_mixer,
  17476. msm_routing_put_port_mixer),
  17477. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17478. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17479. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17480. msm_routing_get_port_mixer,
  17481. msm_routing_put_port_mixer),
  17482. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17483. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17484. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17485. msm_routing_get_port_mixer,
  17486. msm_routing_put_port_mixer),
  17487. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17488. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17489. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17490. msm_routing_get_port_mixer,
  17491. msm_routing_put_port_mixer),
  17492. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17493. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17494. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17495. msm_routing_get_port_mixer,
  17496. msm_routing_put_port_mixer),
  17497. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17498. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17499. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17500. msm_routing_get_port_mixer,
  17501. msm_routing_put_port_mixer),
  17502. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17503. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17504. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17505. msm_routing_get_port_mixer,
  17506. msm_routing_put_port_mixer),
  17507. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17508. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17509. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17510. msm_routing_get_port_mixer,
  17511. msm_routing_put_port_mixer),
  17512. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17513. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17514. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17515. msm_routing_get_port_mixer,
  17516. msm_routing_put_port_mixer),
  17517. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17518. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17519. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17520. msm_routing_get_port_mixer,
  17521. msm_routing_put_port_mixer),
  17522. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17523. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17524. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17525. msm_routing_get_port_mixer,
  17526. msm_routing_put_port_mixer),
  17527. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17528. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17529. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17530. msm_routing_get_port_mixer,
  17531. msm_routing_put_port_mixer),
  17532. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17533. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17534. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17535. msm_routing_get_port_mixer,
  17536. msm_routing_put_port_mixer),
  17537. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17538. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17539. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17540. msm_routing_get_port_mixer,
  17541. msm_routing_put_port_mixer),
  17542. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17543. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17544. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17545. msm_routing_get_port_mixer,
  17546. msm_routing_put_port_mixer),
  17547. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17548. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17549. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17550. msm_routing_get_port_mixer,
  17551. msm_routing_put_port_mixer),
  17552. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17553. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17554. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17555. msm_routing_get_port_mixer,
  17556. msm_routing_put_port_mixer),
  17557. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17558. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17559. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17560. msm_routing_get_port_mixer,
  17561. msm_routing_put_port_mixer),
  17562. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17563. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17564. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17565. msm_routing_get_port_mixer,
  17566. msm_routing_put_port_mixer),
  17567. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17568. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17569. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17570. msm_routing_get_port_mixer,
  17571. msm_routing_put_port_mixer),
  17572. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17573. MSM_BACKEND_DAI_PRI_TDM_RX_2,
  17574. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17575. msm_routing_get_port_mixer,
  17576. msm_routing_put_port_mixer),
  17577. };
  17578. static const struct snd_kcontrol_new pri_tdm_rx_3_port_mixer_controls[] = {
  17579. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17580. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17581. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17582. msm_routing_get_port_mixer,
  17583. msm_routing_put_port_mixer),
  17584. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17585. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17586. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17587. msm_routing_get_port_mixer,
  17588. msm_routing_put_port_mixer),
  17589. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17590. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17591. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17592. msm_routing_get_port_mixer,
  17593. msm_routing_put_port_mixer),
  17594. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17595. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17596. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17597. msm_routing_get_port_mixer,
  17598. msm_routing_put_port_mixer),
  17599. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17600. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17601. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17602. msm_routing_get_port_mixer,
  17603. msm_routing_put_port_mixer),
  17604. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17605. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17606. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17607. msm_routing_get_port_mixer,
  17608. msm_routing_put_port_mixer),
  17609. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17610. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17611. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17612. msm_routing_get_port_mixer,
  17613. msm_routing_put_port_mixer),
  17614. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17615. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17616. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17617. msm_routing_get_port_mixer,
  17618. msm_routing_put_port_mixer),
  17619. SOC_DOUBLE_EXT("PRI_TDM_TX_0", SND_SOC_NOPM,
  17620. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17621. MSM_BACKEND_DAI_PRI_TDM_TX_0, 1, 0,
  17622. msm_routing_get_port_mixer,
  17623. msm_routing_put_port_mixer),
  17624. SOC_DOUBLE_EXT("PRI_TDM_TX_1", SND_SOC_NOPM,
  17625. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17626. MSM_BACKEND_DAI_PRI_TDM_TX_1, 1, 0,
  17627. msm_routing_get_port_mixer,
  17628. msm_routing_put_port_mixer),
  17629. SOC_DOUBLE_EXT("PRI_TDM_TX_2", SND_SOC_NOPM,
  17630. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17631. MSM_BACKEND_DAI_PRI_TDM_TX_2, 1, 0,
  17632. msm_routing_get_port_mixer,
  17633. msm_routing_put_port_mixer),
  17634. SOC_DOUBLE_EXT("PRI_TDM_TX_3", SND_SOC_NOPM,
  17635. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17636. MSM_BACKEND_DAI_PRI_TDM_TX_3, 1, 0,
  17637. msm_routing_get_port_mixer,
  17638. msm_routing_put_port_mixer),
  17639. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17640. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17641. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17642. msm_routing_get_port_mixer,
  17643. msm_routing_put_port_mixer),
  17644. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17645. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17646. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17647. msm_routing_get_port_mixer,
  17648. msm_routing_put_port_mixer),
  17649. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17650. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17651. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17652. msm_routing_get_port_mixer,
  17653. msm_routing_put_port_mixer),
  17654. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17655. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17656. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17657. msm_routing_get_port_mixer,
  17658. msm_routing_put_port_mixer),
  17659. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17660. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17661. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17662. msm_routing_get_port_mixer,
  17663. msm_routing_put_port_mixer),
  17664. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17665. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17666. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17667. msm_routing_get_port_mixer,
  17668. msm_routing_put_port_mixer),
  17669. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17670. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17671. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17672. msm_routing_get_port_mixer,
  17673. msm_routing_put_port_mixer),
  17674. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17675. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17676. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17677. msm_routing_get_port_mixer,
  17678. msm_routing_put_port_mixer),
  17679. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17680. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17681. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17682. msm_routing_get_port_mixer,
  17683. msm_routing_put_port_mixer),
  17684. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17685. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17686. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17687. msm_routing_get_port_mixer,
  17688. msm_routing_put_port_mixer),
  17689. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17690. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17691. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17692. msm_routing_get_port_mixer,
  17693. msm_routing_put_port_mixer),
  17694. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17695. MSM_BACKEND_DAI_PRI_TDM_RX_3,
  17696. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17697. msm_routing_get_port_mixer,
  17698. msm_routing_put_port_mixer),
  17699. };
  17700. static const struct snd_kcontrol_new sec_tdm_rx_0_port_mixer_controls[] = {
  17701. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17702. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17703. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17704. msm_routing_get_port_mixer,
  17705. msm_routing_put_port_mixer),
  17706. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17707. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17708. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17709. msm_routing_get_port_mixer,
  17710. msm_routing_put_port_mixer),
  17711. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17712. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17713. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17714. msm_routing_get_port_mixer,
  17715. msm_routing_put_port_mixer),
  17716. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17717. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17718. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17719. msm_routing_get_port_mixer,
  17720. msm_routing_put_port_mixer),
  17721. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17722. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17723. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17724. msm_routing_get_port_mixer,
  17725. msm_routing_put_port_mixer),
  17726. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17727. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17728. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17729. msm_routing_get_port_mixer,
  17730. msm_routing_put_port_mixer),
  17731. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17732. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17733. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17734. msm_routing_get_port_mixer,
  17735. msm_routing_put_port_mixer),
  17736. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17737. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17738. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17739. msm_routing_get_port_mixer,
  17740. msm_routing_put_port_mixer),
  17741. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17742. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17743. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17744. msm_routing_get_port_mixer,
  17745. msm_routing_put_port_mixer),
  17746. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17747. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17748. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17749. msm_routing_get_port_mixer,
  17750. msm_routing_put_port_mixer),
  17751. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17752. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17753. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17754. msm_routing_get_port_mixer,
  17755. msm_routing_put_port_mixer),
  17756. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17757. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17758. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17759. msm_routing_get_port_mixer,
  17760. msm_routing_put_port_mixer),
  17761. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17762. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17763. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17764. msm_routing_get_port_mixer,
  17765. msm_routing_put_port_mixer),
  17766. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17767. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17768. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17769. msm_routing_get_port_mixer,
  17770. msm_routing_put_port_mixer),
  17771. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17772. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17773. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17774. msm_routing_get_port_mixer,
  17775. msm_routing_put_port_mixer),
  17776. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17777. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17778. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17779. msm_routing_get_port_mixer,
  17780. msm_routing_put_port_mixer),
  17781. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17782. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17783. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17784. msm_routing_get_port_mixer,
  17785. msm_routing_put_port_mixer),
  17786. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17787. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17788. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17789. msm_routing_get_port_mixer,
  17790. msm_routing_put_port_mixer),
  17791. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17792. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17793. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17794. msm_routing_get_port_mixer,
  17795. msm_routing_put_port_mixer),
  17796. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17797. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17798. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17799. msm_routing_get_port_mixer,
  17800. msm_routing_put_port_mixer),
  17801. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17802. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17803. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17804. msm_routing_get_port_mixer,
  17805. msm_routing_put_port_mixer),
  17806. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17807. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17808. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17809. msm_routing_get_port_mixer,
  17810. msm_routing_put_port_mixer),
  17811. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17812. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17813. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17814. msm_routing_get_port_mixer,
  17815. msm_routing_put_port_mixer),
  17816. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17817. MSM_BACKEND_DAI_SEC_TDM_RX_0,
  17818. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17819. msm_routing_get_port_mixer,
  17820. msm_routing_put_port_mixer),
  17821. };
  17822. static const struct snd_kcontrol_new sec_tdm_rx_1_port_mixer_controls[] = {
  17823. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17824. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17825. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17826. msm_routing_get_port_mixer,
  17827. msm_routing_put_port_mixer),
  17828. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17829. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17830. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17831. msm_routing_get_port_mixer,
  17832. msm_routing_put_port_mixer),
  17833. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17834. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17835. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17836. msm_routing_get_port_mixer,
  17837. msm_routing_put_port_mixer),
  17838. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17839. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17840. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17841. msm_routing_get_port_mixer,
  17842. msm_routing_put_port_mixer),
  17843. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17844. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17845. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17846. msm_routing_get_port_mixer,
  17847. msm_routing_put_port_mixer),
  17848. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17849. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17850. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17851. msm_routing_get_port_mixer,
  17852. msm_routing_put_port_mixer),
  17853. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17854. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17855. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17856. msm_routing_get_port_mixer,
  17857. msm_routing_put_port_mixer),
  17858. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17859. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17860. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17861. msm_routing_get_port_mixer,
  17862. msm_routing_put_port_mixer),
  17863. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17864. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17865. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17866. msm_routing_get_port_mixer,
  17867. msm_routing_put_port_mixer),
  17868. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17869. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17870. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17871. msm_routing_get_port_mixer,
  17872. msm_routing_put_port_mixer),
  17873. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17874. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17875. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17876. msm_routing_get_port_mixer,
  17877. msm_routing_put_port_mixer),
  17878. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  17879. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17880. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  17881. msm_routing_get_port_mixer,
  17882. msm_routing_put_port_mixer),
  17883. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  17884. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17885. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  17886. msm_routing_get_port_mixer,
  17887. msm_routing_put_port_mixer),
  17888. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  17889. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17890. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  17891. msm_routing_get_port_mixer,
  17892. msm_routing_put_port_mixer),
  17893. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  17894. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17895. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  17896. msm_routing_get_port_mixer,
  17897. msm_routing_put_port_mixer),
  17898. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  17899. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17900. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  17901. msm_routing_get_port_mixer,
  17902. msm_routing_put_port_mixer),
  17903. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  17904. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17905. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  17906. msm_routing_get_port_mixer,
  17907. msm_routing_put_port_mixer),
  17908. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  17909. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17910. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  17911. msm_routing_get_port_mixer,
  17912. msm_routing_put_port_mixer),
  17913. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  17914. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17915. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  17916. msm_routing_get_port_mixer,
  17917. msm_routing_put_port_mixer),
  17918. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  17919. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17920. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  17921. msm_routing_get_port_mixer,
  17922. msm_routing_put_port_mixer),
  17923. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  17924. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17925. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  17926. msm_routing_get_port_mixer,
  17927. msm_routing_put_port_mixer),
  17928. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  17929. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17930. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  17931. msm_routing_get_port_mixer,
  17932. msm_routing_put_port_mixer),
  17933. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  17934. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17935. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  17936. msm_routing_get_port_mixer,
  17937. msm_routing_put_port_mixer),
  17938. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  17939. MSM_BACKEND_DAI_SEC_TDM_RX_1,
  17940. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  17941. msm_routing_get_port_mixer,
  17942. msm_routing_put_port_mixer),
  17943. };
  17944. static const struct snd_kcontrol_new sec_tdm_rx_2_port_mixer_controls[] = {
  17945. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  17946. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17947. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  17948. msm_routing_get_port_mixer,
  17949. msm_routing_put_port_mixer),
  17950. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  17951. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17952. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  17953. msm_routing_get_port_mixer,
  17954. msm_routing_put_port_mixer),
  17955. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  17956. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17957. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  17958. msm_routing_get_port_mixer,
  17959. msm_routing_put_port_mixer),
  17960. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  17961. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17962. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  17963. msm_routing_get_port_mixer,
  17964. msm_routing_put_port_mixer),
  17965. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  17966. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17967. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  17968. msm_routing_get_port_mixer,
  17969. msm_routing_put_port_mixer),
  17970. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  17971. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17972. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  17973. msm_routing_get_port_mixer,
  17974. msm_routing_put_port_mixer),
  17975. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  17976. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17977. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  17978. msm_routing_get_port_mixer,
  17979. msm_routing_put_port_mixer),
  17980. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  17981. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17982. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  17983. msm_routing_get_port_mixer,
  17984. msm_routing_put_port_mixer),
  17985. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  17986. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17987. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  17988. msm_routing_get_port_mixer,
  17989. msm_routing_put_port_mixer),
  17990. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  17991. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17992. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  17993. msm_routing_get_port_mixer,
  17994. msm_routing_put_port_mixer),
  17995. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  17996. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  17997. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  17998. msm_routing_get_port_mixer,
  17999. msm_routing_put_port_mixer),
  18000. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18001. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18002. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18003. msm_routing_get_port_mixer,
  18004. msm_routing_put_port_mixer),
  18005. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18006. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18007. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18008. msm_routing_get_port_mixer,
  18009. msm_routing_put_port_mixer),
  18010. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18011. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18012. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18013. msm_routing_get_port_mixer,
  18014. msm_routing_put_port_mixer),
  18015. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18016. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18017. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18018. msm_routing_get_port_mixer,
  18019. msm_routing_put_port_mixer),
  18020. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18021. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18022. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18023. msm_routing_get_port_mixer,
  18024. msm_routing_put_port_mixer),
  18025. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18026. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18027. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18028. msm_routing_get_port_mixer,
  18029. msm_routing_put_port_mixer),
  18030. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18031. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18032. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18033. msm_routing_get_port_mixer,
  18034. msm_routing_put_port_mixer),
  18035. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18036. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18037. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18038. msm_routing_get_port_mixer,
  18039. msm_routing_put_port_mixer),
  18040. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18041. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18042. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18043. msm_routing_get_port_mixer,
  18044. msm_routing_put_port_mixer),
  18045. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18046. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18047. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18048. msm_routing_get_port_mixer,
  18049. msm_routing_put_port_mixer),
  18050. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18051. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18052. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18053. msm_routing_get_port_mixer,
  18054. msm_routing_put_port_mixer),
  18055. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18056. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18057. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18058. msm_routing_get_port_mixer,
  18059. msm_routing_put_port_mixer),
  18060. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18061. MSM_BACKEND_DAI_SEC_TDM_RX_2,
  18062. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18063. msm_routing_get_port_mixer,
  18064. msm_routing_put_port_mixer),
  18065. };
  18066. static const struct snd_kcontrol_new sec_tdm_rx_3_port_mixer_controls[] = {
  18067. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18068. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18069. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18070. msm_routing_get_port_mixer,
  18071. msm_routing_put_port_mixer),
  18072. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18073. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18074. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18075. msm_routing_get_port_mixer,
  18076. msm_routing_put_port_mixer),
  18077. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18078. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18079. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18080. msm_routing_get_port_mixer,
  18081. msm_routing_put_port_mixer),
  18082. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18083. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18084. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18085. msm_routing_get_port_mixer,
  18086. msm_routing_put_port_mixer),
  18087. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18088. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18089. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18090. msm_routing_get_port_mixer,
  18091. msm_routing_put_port_mixer),
  18092. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18093. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18094. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18095. msm_routing_get_port_mixer,
  18096. msm_routing_put_port_mixer),
  18097. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18098. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18099. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18100. msm_routing_get_port_mixer,
  18101. msm_routing_put_port_mixer),
  18102. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18103. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18104. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18105. msm_routing_get_port_mixer,
  18106. msm_routing_put_port_mixer),
  18107. SOC_DOUBLE_EXT("SEC_TDM_TX_0", SND_SOC_NOPM,
  18108. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18109. MSM_BACKEND_DAI_SEC_TDM_TX_0, 1, 0,
  18110. msm_routing_get_port_mixer,
  18111. msm_routing_put_port_mixer),
  18112. SOC_DOUBLE_EXT("SEC_TDM_TX_1", SND_SOC_NOPM,
  18113. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18114. MSM_BACKEND_DAI_SEC_TDM_TX_1, 1, 0,
  18115. msm_routing_get_port_mixer,
  18116. msm_routing_put_port_mixer),
  18117. SOC_DOUBLE_EXT("SEC_TDM_TX_2", SND_SOC_NOPM,
  18118. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18119. MSM_BACKEND_DAI_SEC_TDM_TX_2, 1, 0,
  18120. msm_routing_get_port_mixer,
  18121. msm_routing_put_port_mixer),
  18122. SOC_DOUBLE_EXT("SEC_TDM_TX_3", SND_SOC_NOPM,
  18123. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18124. MSM_BACKEND_DAI_SEC_TDM_TX_3, 1, 0,
  18125. msm_routing_get_port_mixer,
  18126. msm_routing_put_port_mixer),
  18127. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18128. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18129. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18130. msm_routing_get_port_mixer,
  18131. msm_routing_put_port_mixer),
  18132. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18133. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18134. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18135. msm_routing_get_port_mixer,
  18136. msm_routing_put_port_mixer),
  18137. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18138. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18139. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18140. msm_routing_get_port_mixer,
  18141. msm_routing_put_port_mixer),
  18142. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18143. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18144. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18145. msm_routing_get_port_mixer,
  18146. msm_routing_put_port_mixer),
  18147. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18148. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18149. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18150. msm_routing_get_port_mixer,
  18151. msm_routing_put_port_mixer),
  18152. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18153. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18154. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18155. msm_routing_get_port_mixer,
  18156. msm_routing_put_port_mixer),
  18157. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18158. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18159. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18160. msm_routing_get_port_mixer,
  18161. msm_routing_put_port_mixer),
  18162. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18163. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18164. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18165. msm_routing_get_port_mixer,
  18166. msm_routing_put_port_mixer),
  18167. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18168. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18169. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18170. msm_routing_get_port_mixer,
  18171. msm_routing_put_port_mixer),
  18172. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18173. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18174. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18175. msm_routing_get_port_mixer,
  18176. msm_routing_put_port_mixer),
  18177. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18178. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18179. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18180. msm_routing_get_port_mixer,
  18181. msm_routing_put_port_mixer),
  18182. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18183. MSM_BACKEND_DAI_SEC_TDM_RX_3,
  18184. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18185. msm_routing_get_port_mixer,
  18186. msm_routing_put_port_mixer),
  18187. };
  18188. static const struct snd_kcontrol_new sec_tdm_rx_7_port_mixer_controls[] = {
  18189. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  18190. MSM_BACKEND_DAI_SEC_TDM_RX_7,
  18191. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  18192. msm_routing_get_port_mixer,
  18193. msm_routing_put_port_mixer),
  18194. };
  18195. static const struct snd_kcontrol_new tert_tdm_rx_0_port_mixer_controls[] = {
  18196. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18197. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18198. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18199. msm_routing_get_port_mixer,
  18200. msm_routing_put_port_mixer),
  18201. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18202. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18203. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18204. msm_routing_get_port_mixer,
  18205. msm_routing_put_port_mixer),
  18206. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18207. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18208. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18209. msm_routing_get_port_mixer,
  18210. msm_routing_put_port_mixer),
  18211. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18212. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18213. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18214. msm_routing_get_port_mixer,
  18215. msm_routing_put_port_mixer),
  18216. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18217. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18218. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18219. msm_routing_get_port_mixer,
  18220. msm_routing_put_port_mixer),
  18221. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18222. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18223. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18224. msm_routing_get_port_mixer,
  18225. msm_routing_put_port_mixer),
  18226. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18227. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18228. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18229. msm_routing_get_port_mixer,
  18230. msm_routing_put_port_mixer),
  18231. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18232. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18233. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18234. msm_routing_get_port_mixer,
  18235. msm_routing_put_port_mixer),
  18236. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18237. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18238. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18239. msm_routing_get_port_mixer,
  18240. msm_routing_put_port_mixer),
  18241. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18242. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18243. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18244. msm_routing_get_port_mixer,
  18245. msm_routing_put_port_mixer),
  18246. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18247. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18248. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18249. msm_routing_get_port_mixer,
  18250. msm_routing_put_port_mixer),
  18251. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18252. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18253. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18254. msm_routing_get_port_mixer,
  18255. msm_routing_put_port_mixer),
  18256. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18257. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18258. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18259. msm_routing_get_port_mixer,
  18260. msm_routing_put_port_mixer),
  18261. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18262. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18263. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18264. msm_routing_get_port_mixer,
  18265. msm_routing_put_port_mixer),
  18266. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18267. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18268. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18269. msm_routing_get_port_mixer,
  18270. msm_routing_put_port_mixer),
  18271. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18272. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18273. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18274. msm_routing_get_port_mixer,
  18275. msm_routing_put_port_mixer),
  18276. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18277. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18278. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18279. msm_routing_get_port_mixer,
  18280. msm_routing_put_port_mixer),
  18281. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18282. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18283. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18284. msm_routing_get_port_mixer,
  18285. msm_routing_put_port_mixer),
  18286. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18287. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18288. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18289. msm_routing_get_port_mixer,
  18290. msm_routing_put_port_mixer),
  18291. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18292. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18293. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18294. msm_routing_get_port_mixer,
  18295. msm_routing_put_port_mixer),
  18296. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18297. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18298. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18299. msm_routing_get_port_mixer,
  18300. msm_routing_put_port_mixer),
  18301. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18302. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18303. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18304. msm_routing_get_port_mixer,
  18305. msm_routing_put_port_mixer),
  18306. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18307. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18308. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18309. msm_routing_get_port_mixer,
  18310. msm_routing_put_port_mixer),
  18311. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18312. MSM_BACKEND_DAI_TERT_TDM_RX_0,
  18313. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18314. msm_routing_get_port_mixer,
  18315. msm_routing_put_port_mixer),
  18316. };
  18317. static const struct snd_kcontrol_new tert_tdm_rx_1_port_mixer_controls[] = {
  18318. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18319. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18320. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18321. msm_routing_get_port_mixer,
  18322. msm_routing_put_port_mixer),
  18323. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18324. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18325. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18326. msm_routing_get_port_mixer,
  18327. msm_routing_put_port_mixer),
  18328. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18329. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18330. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18331. msm_routing_get_port_mixer,
  18332. msm_routing_put_port_mixer),
  18333. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18334. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18335. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18336. msm_routing_get_port_mixer,
  18337. msm_routing_put_port_mixer),
  18338. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18339. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18340. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18341. msm_routing_get_port_mixer,
  18342. msm_routing_put_port_mixer),
  18343. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18344. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18345. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18346. msm_routing_get_port_mixer,
  18347. msm_routing_put_port_mixer),
  18348. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18349. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18350. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18351. msm_routing_get_port_mixer,
  18352. msm_routing_put_port_mixer),
  18353. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18354. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18355. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18356. msm_routing_get_port_mixer,
  18357. msm_routing_put_port_mixer),
  18358. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18359. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18360. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18361. msm_routing_get_port_mixer,
  18362. msm_routing_put_port_mixer),
  18363. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18364. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18365. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18366. msm_routing_get_port_mixer,
  18367. msm_routing_put_port_mixer),
  18368. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18369. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18370. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18371. msm_routing_get_port_mixer,
  18372. msm_routing_put_port_mixer),
  18373. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18374. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18375. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18376. msm_routing_get_port_mixer,
  18377. msm_routing_put_port_mixer),
  18378. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18379. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18380. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18381. msm_routing_get_port_mixer,
  18382. msm_routing_put_port_mixer),
  18383. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18384. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18385. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18386. msm_routing_get_port_mixer,
  18387. msm_routing_put_port_mixer),
  18388. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18389. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18390. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18391. msm_routing_get_port_mixer,
  18392. msm_routing_put_port_mixer),
  18393. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18394. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18395. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18396. msm_routing_get_port_mixer,
  18397. msm_routing_put_port_mixer),
  18398. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18399. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18400. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18401. msm_routing_get_port_mixer,
  18402. msm_routing_put_port_mixer),
  18403. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18404. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18405. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18406. msm_routing_get_port_mixer,
  18407. msm_routing_put_port_mixer),
  18408. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18409. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18410. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18411. msm_routing_get_port_mixer,
  18412. msm_routing_put_port_mixer),
  18413. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18414. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18415. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18416. msm_routing_get_port_mixer,
  18417. msm_routing_put_port_mixer),
  18418. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18419. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18420. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18421. msm_routing_get_port_mixer,
  18422. msm_routing_put_port_mixer),
  18423. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18424. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18425. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18426. msm_routing_get_port_mixer,
  18427. msm_routing_put_port_mixer),
  18428. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18429. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18430. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18431. msm_routing_get_port_mixer,
  18432. msm_routing_put_port_mixer),
  18433. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18434. MSM_BACKEND_DAI_TERT_TDM_RX_1,
  18435. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18436. msm_routing_get_port_mixer,
  18437. msm_routing_put_port_mixer),
  18438. };
  18439. static const struct snd_kcontrol_new tert_tdm_rx_2_port_mixer_controls[] = {
  18440. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18441. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18442. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18443. msm_routing_get_port_mixer,
  18444. msm_routing_put_port_mixer),
  18445. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18446. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18447. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18448. msm_routing_get_port_mixer,
  18449. msm_routing_put_port_mixer),
  18450. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18451. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18452. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18453. msm_routing_get_port_mixer,
  18454. msm_routing_put_port_mixer),
  18455. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18456. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18457. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18458. msm_routing_get_port_mixer,
  18459. msm_routing_put_port_mixer),
  18460. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18461. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18462. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18463. msm_routing_get_port_mixer,
  18464. msm_routing_put_port_mixer),
  18465. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18466. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18467. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18468. msm_routing_get_port_mixer,
  18469. msm_routing_put_port_mixer),
  18470. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18471. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18472. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18473. msm_routing_get_port_mixer,
  18474. msm_routing_put_port_mixer),
  18475. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18476. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18477. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18478. msm_routing_get_port_mixer,
  18479. msm_routing_put_port_mixer),
  18480. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18481. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18482. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18483. msm_routing_get_port_mixer,
  18484. msm_routing_put_port_mixer),
  18485. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18486. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18487. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18488. msm_routing_get_port_mixer,
  18489. msm_routing_put_port_mixer),
  18490. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18491. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18492. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18493. msm_routing_get_port_mixer,
  18494. msm_routing_put_port_mixer),
  18495. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18496. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18497. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18498. msm_routing_get_port_mixer,
  18499. msm_routing_put_port_mixer),
  18500. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18501. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18502. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18503. msm_routing_get_port_mixer,
  18504. msm_routing_put_port_mixer),
  18505. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18506. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18507. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18508. msm_routing_get_port_mixer,
  18509. msm_routing_put_port_mixer),
  18510. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18511. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18512. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18513. msm_routing_get_port_mixer,
  18514. msm_routing_put_port_mixer),
  18515. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18516. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18517. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18518. msm_routing_get_port_mixer,
  18519. msm_routing_put_port_mixer),
  18520. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18521. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18522. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18523. msm_routing_get_port_mixer,
  18524. msm_routing_put_port_mixer),
  18525. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18526. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18527. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18528. msm_routing_get_port_mixer,
  18529. msm_routing_put_port_mixer),
  18530. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18531. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18532. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18533. msm_routing_get_port_mixer,
  18534. msm_routing_put_port_mixer),
  18535. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18536. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18537. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18538. msm_routing_get_port_mixer,
  18539. msm_routing_put_port_mixer),
  18540. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18541. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18542. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18543. msm_routing_get_port_mixer,
  18544. msm_routing_put_port_mixer),
  18545. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18546. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18547. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18548. msm_routing_get_port_mixer,
  18549. msm_routing_put_port_mixer),
  18550. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18551. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18552. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18553. msm_routing_get_port_mixer,
  18554. msm_routing_put_port_mixer),
  18555. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18556. MSM_BACKEND_DAI_TERT_TDM_RX_2,
  18557. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18558. msm_routing_get_port_mixer,
  18559. msm_routing_put_port_mixer),
  18560. };
  18561. static const struct snd_kcontrol_new tert_tdm_rx_3_port_mixer_controls[] = {
  18562. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18563. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18564. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18565. msm_routing_get_port_mixer,
  18566. msm_routing_put_port_mixer),
  18567. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18568. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18569. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18570. msm_routing_get_port_mixer,
  18571. msm_routing_put_port_mixer),
  18572. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  18573. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18574. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0,
  18575. msm_routing_get_port_mixer,
  18576. msm_routing_put_port_mixer),
  18577. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18578. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18579. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18580. msm_routing_get_port_mixer,
  18581. msm_routing_put_port_mixer),
  18582. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18583. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18584. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18585. msm_routing_get_port_mixer,
  18586. msm_routing_put_port_mixer),
  18587. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18588. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18589. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18590. msm_routing_get_port_mixer,
  18591. msm_routing_put_port_mixer),
  18592. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18593. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18594. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18595. msm_routing_get_port_mixer,
  18596. msm_routing_put_port_mixer),
  18597. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18598. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18599. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18600. msm_routing_get_port_mixer,
  18601. msm_routing_put_port_mixer),
  18602. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18603. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18604. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18605. msm_routing_get_port_mixer,
  18606. msm_routing_put_port_mixer),
  18607. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18608. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18609. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18610. msm_routing_get_port_mixer,
  18611. msm_routing_put_port_mixer),
  18612. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18613. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18614. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18615. msm_routing_get_port_mixer,
  18616. msm_routing_put_port_mixer),
  18617. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18618. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18619. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18620. msm_routing_get_port_mixer,
  18621. msm_routing_put_port_mixer),
  18622. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18623. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18624. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18625. msm_routing_get_port_mixer,
  18626. msm_routing_put_port_mixer),
  18627. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18628. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18629. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18630. msm_routing_get_port_mixer,
  18631. msm_routing_put_port_mixer),
  18632. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18633. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18634. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18635. msm_routing_get_port_mixer,
  18636. msm_routing_put_port_mixer),
  18637. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18638. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18639. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18640. msm_routing_get_port_mixer,
  18641. msm_routing_put_port_mixer),
  18642. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18643. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18644. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18645. msm_routing_get_port_mixer,
  18646. msm_routing_put_port_mixer),
  18647. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18648. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18649. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18650. msm_routing_get_port_mixer,
  18651. msm_routing_put_port_mixer),
  18652. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18653. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18654. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18655. msm_routing_get_port_mixer,
  18656. msm_routing_put_port_mixer),
  18657. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18658. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18659. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18660. msm_routing_get_port_mixer,
  18661. msm_routing_put_port_mixer),
  18662. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18663. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18664. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18665. msm_routing_get_port_mixer,
  18666. msm_routing_put_port_mixer),
  18667. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18668. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18669. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18670. msm_routing_get_port_mixer,
  18671. msm_routing_put_port_mixer),
  18672. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18673. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18674. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18675. msm_routing_get_port_mixer,
  18676. msm_routing_put_port_mixer),
  18677. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18678. MSM_BACKEND_DAI_TERT_TDM_RX_3,
  18679. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18680. msm_routing_get_port_mixer,
  18681. msm_routing_put_port_mixer),
  18682. };
  18683. static const struct snd_kcontrol_new quat_tdm_rx_0_port_mixer_controls[] = {
  18684. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18685. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18686. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18687. msm_routing_get_port_mixer,
  18688. msm_routing_put_port_mixer),
  18689. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18690. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18691. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18692. msm_routing_get_port_mixer,
  18693. msm_routing_put_port_mixer),
  18694. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18695. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18696. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18697. msm_routing_get_port_mixer,
  18698. msm_routing_put_port_mixer),
  18699. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18700. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18701. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18702. msm_routing_get_port_mixer,
  18703. msm_routing_put_port_mixer),
  18704. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18705. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18706. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18707. msm_routing_get_port_mixer,
  18708. msm_routing_put_port_mixer),
  18709. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18710. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18711. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18712. msm_routing_get_port_mixer,
  18713. msm_routing_put_port_mixer),
  18714. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18715. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18716. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18717. msm_routing_get_port_mixer,
  18718. msm_routing_put_port_mixer),
  18719. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18720. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18721. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18722. msm_routing_get_port_mixer,
  18723. msm_routing_put_port_mixer),
  18724. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18725. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18726. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18727. msm_routing_get_port_mixer,
  18728. msm_routing_put_port_mixer),
  18729. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18730. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18731. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18732. msm_routing_get_port_mixer,
  18733. msm_routing_put_port_mixer),
  18734. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18735. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18736. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18737. msm_routing_get_port_mixer,
  18738. msm_routing_put_port_mixer),
  18739. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18740. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18741. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18742. msm_routing_get_port_mixer,
  18743. msm_routing_put_port_mixer),
  18744. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18745. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18746. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18747. msm_routing_get_port_mixer,
  18748. msm_routing_put_port_mixer),
  18749. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18750. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18751. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18752. msm_routing_get_port_mixer,
  18753. msm_routing_put_port_mixer),
  18754. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18755. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18756. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18757. msm_routing_get_port_mixer,
  18758. msm_routing_put_port_mixer),
  18759. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18760. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18761. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18762. msm_routing_get_port_mixer,
  18763. msm_routing_put_port_mixer),
  18764. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18765. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18766. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18767. msm_routing_get_port_mixer,
  18768. msm_routing_put_port_mixer),
  18769. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18770. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18771. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18772. msm_routing_get_port_mixer,
  18773. msm_routing_put_port_mixer),
  18774. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18775. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18776. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18777. msm_routing_get_port_mixer,
  18778. msm_routing_put_port_mixer),
  18779. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18780. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18781. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18782. msm_routing_get_port_mixer,
  18783. msm_routing_put_port_mixer),
  18784. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18785. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18786. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18787. msm_routing_get_port_mixer,
  18788. msm_routing_put_port_mixer),
  18789. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18790. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18791. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18792. msm_routing_get_port_mixer,
  18793. msm_routing_put_port_mixer),
  18794. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18795. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18796. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18797. msm_routing_get_port_mixer,
  18798. msm_routing_put_port_mixer),
  18799. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18800. MSM_BACKEND_DAI_QUAT_TDM_RX_0,
  18801. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18802. msm_routing_get_port_mixer,
  18803. msm_routing_put_port_mixer),
  18804. };
  18805. static const struct snd_kcontrol_new quat_tdm_rx_1_port_mixer_controls[] = {
  18806. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18807. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18808. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18809. msm_routing_get_port_mixer,
  18810. msm_routing_put_port_mixer),
  18811. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18812. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18813. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18814. msm_routing_get_port_mixer,
  18815. msm_routing_put_port_mixer),
  18816. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18817. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18818. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18819. msm_routing_get_port_mixer,
  18820. msm_routing_put_port_mixer),
  18821. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18822. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18823. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18824. msm_routing_get_port_mixer,
  18825. msm_routing_put_port_mixer),
  18826. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18827. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18828. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18829. msm_routing_get_port_mixer,
  18830. msm_routing_put_port_mixer),
  18831. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18832. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18833. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18834. msm_routing_get_port_mixer,
  18835. msm_routing_put_port_mixer),
  18836. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18837. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18838. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18839. msm_routing_get_port_mixer,
  18840. msm_routing_put_port_mixer),
  18841. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18842. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18843. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18844. msm_routing_get_port_mixer,
  18845. msm_routing_put_port_mixer),
  18846. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18847. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18848. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18849. msm_routing_get_port_mixer,
  18850. msm_routing_put_port_mixer),
  18851. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18852. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18853. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18854. msm_routing_get_port_mixer,
  18855. msm_routing_put_port_mixer),
  18856. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18857. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18858. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18859. msm_routing_get_port_mixer,
  18860. msm_routing_put_port_mixer),
  18861. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18862. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18863. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18864. msm_routing_get_port_mixer,
  18865. msm_routing_put_port_mixer),
  18866. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18867. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18868. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18869. msm_routing_get_port_mixer,
  18870. msm_routing_put_port_mixer),
  18871. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18872. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18873. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18874. msm_routing_get_port_mixer,
  18875. msm_routing_put_port_mixer),
  18876. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18877. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18878. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  18879. msm_routing_get_port_mixer,
  18880. msm_routing_put_port_mixer),
  18881. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  18882. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18883. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  18884. msm_routing_get_port_mixer,
  18885. msm_routing_put_port_mixer),
  18886. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  18887. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18888. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  18889. msm_routing_get_port_mixer,
  18890. msm_routing_put_port_mixer),
  18891. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  18892. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18893. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  18894. msm_routing_get_port_mixer,
  18895. msm_routing_put_port_mixer),
  18896. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  18897. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18898. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  18899. msm_routing_get_port_mixer,
  18900. msm_routing_put_port_mixer),
  18901. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  18902. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18903. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  18904. msm_routing_get_port_mixer,
  18905. msm_routing_put_port_mixer),
  18906. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  18907. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18908. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  18909. msm_routing_get_port_mixer,
  18910. msm_routing_put_port_mixer),
  18911. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  18912. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18913. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  18914. msm_routing_get_port_mixer,
  18915. msm_routing_put_port_mixer),
  18916. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  18917. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18918. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  18919. msm_routing_get_port_mixer,
  18920. msm_routing_put_port_mixer),
  18921. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  18922. MSM_BACKEND_DAI_QUAT_TDM_RX_1,
  18923. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  18924. msm_routing_get_port_mixer,
  18925. msm_routing_put_port_mixer),
  18926. };
  18927. static const struct snd_kcontrol_new quat_tdm_rx_2_port_mixer_controls[] = {
  18928. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  18929. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18930. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  18931. msm_routing_get_port_mixer,
  18932. msm_routing_put_port_mixer),
  18933. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  18934. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18935. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  18936. msm_routing_get_port_mixer,
  18937. msm_routing_put_port_mixer),
  18938. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  18939. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18940. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  18941. msm_routing_get_port_mixer,
  18942. msm_routing_put_port_mixer),
  18943. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  18944. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18945. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  18946. msm_routing_get_port_mixer,
  18947. msm_routing_put_port_mixer),
  18948. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  18949. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18950. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  18951. msm_routing_get_port_mixer,
  18952. msm_routing_put_port_mixer),
  18953. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  18954. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18955. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  18956. msm_routing_get_port_mixer,
  18957. msm_routing_put_port_mixer),
  18958. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  18959. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18960. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  18961. msm_routing_get_port_mixer,
  18962. msm_routing_put_port_mixer),
  18963. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  18964. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18965. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  18966. msm_routing_get_port_mixer,
  18967. msm_routing_put_port_mixer),
  18968. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  18969. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18970. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  18971. msm_routing_get_port_mixer,
  18972. msm_routing_put_port_mixer),
  18973. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  18974. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18975. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  18976. msm_routing_get_port_mixer,
  18977. msm_routing_put_port_mixer),
  18978. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  18979. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18980. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  18981. msm_routing_get_port_mixer,
  18982. msm_routing_put_port_mixer),
  18983. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  18984. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18985. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  18986. msm_routing_get_port_mixer,
  18987. msm_routing_put_port_mixer),
  18988. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  18989. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18990. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  18991. msm_routing_get_port_mixer,
  18992. msm_routing_put_port_mixer),
  18993. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  18994. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  18995. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  18996. msm_routing_get_port_mixer,
  18997. msm_routing_put_port_mixer),
  18998. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  18999. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19000. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19001. msm_routing_get_port_mixer,
  19002. msm_routing_put_port_mixer),
  19003. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19004. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19005. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19006. msm_routing_get_port_mixer,
  19007. msm_routing_put_port_mixer),
  19008. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19009. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19010. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19011. msm_routing_get_port_mixer,
  19012. msm_routing_put_port_mixer),
  19013. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19014. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19015. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19016. msm_routing_get_port_mixer,
  19017. msm_routing_put_port_mixer),
  19018. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19019. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19020. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19021. msm_routing_get_port_mixer,
  19022. msm_routing_put_port_mixer),
  19023. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19024. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19025. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19026. msm_routing_get_port_mixer,
  19027. msm_routing_put_port_mixer),
  19028. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19029. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19030. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19031. msm_routing_get_port_mixer,
  19032. msm_routing_put_port_mixer),
  19033. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19034. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19035. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19036. msm_routing_get_port_mixer,
  19037. msm_routing_put_port_mixer),
  19038. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19039. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19040. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19041. msm_routing_get_port_mixer,
  19042. msm_routing_put_port_mixer),
  19043. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19044. MSM_BACKEND_DAI_QUAT_TDM_RX_2,
  19045. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19046. msm_routing_get_port_mixer,
  19047. msm_routing_put_port_mixer),
  19048. };
  19049. static const struct snd_kcontrol_new quat_tdm_rx_3_port_mixer_controls[] = {
  19050. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19051. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19052. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19053. msm_routing_get_port_mixer,
  19054. msm_routing_put_port_mixer),
  19055. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19056. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19057. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19058. msm_routing_get_port_mixer,
  19059. msm_routing_put_port_mixer),
  19060. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19061. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19062. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19063. msm_routing_get_port_mixer,
  19064. msm_routing_put_port_mixer),
  19065. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19066. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19067. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19068. msm_routing_get_port_mixer,
  19069. msm_routing_put_port_mixer),
  19070. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19071. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19072. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19073. msm_routing_get_port_mixer,
  19074. msm_routing_put_port_mixer),
  19075. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19076. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19077. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19078. msm_routing_get_port_mixer,
  19079. msm_routing_put_port_mixer),
  19080. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19081. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19082. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19083. msm_routing_get_port_mixer,
  19084. msm_routing_put_port_mixer),
  19085. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19086. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19087. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19088. msm_routing_get_port_mixer,
  19089. msm_routing_put_port_mixer),
  19090. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19091. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19092. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19093. msm_routing_get_port_mixer,
  19094. msm_routing_put_port_mixer),
  19095. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19096. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19097. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19098. msm_routing_get_port_mixer,
  19099. msm_routing_put_port_mixer),
  19100. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19101. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19102. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19103. msm_routing_get_port_mixer,
  19104. msm_routing_put_port_mixer),
  19105. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19106. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19107. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19108. msm_routing_get_port_mixer,
  19109. msm_routing_put_port_mixer),
  19110. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19111. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19112. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19113. msm_routing_get_port_mixer,
  19114. msm_routing_put_port_mixer),
  19115. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19116. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19117. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19118. msm_routing_get_port_mixer,
  19119. msm_routing_put_port_mixer),
  19120. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19121. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19122. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19123. msm_routing_get_port_mixer,
  19124. msm_routing_put_port_mixer),
  19125. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19126. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19127. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19128. msm_routing_get_port_mixer,
  19129. msm_routing_put_port_mixer),
  19130. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19131. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19132. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19133. msm_routing_get_port_mixer,
  19134. msm_routing_put_port_mixer),
  19135. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19136. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19137. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19138. msm_routing_get_port_mixer,
  19139. msm_routing_put_port_mixer),
  19140. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19141. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19142. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19143. msm_routing_get_port_mixer,
  19144. msm_routing_put_port_mixer),
  19145. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19146. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19147. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19148. msm_routing_get_port_mixer,
  19149. msm_routing_put_port_mixer),
  19150. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19151. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19152. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19153. msm_routing_get_port_mixer,
  19154. msm_routing_put_port_mixer),
  19155. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19156. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19157. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19158. msm_routing_get_port_mixer,
  19159. msm_routing_put_port_mixer),
  19160. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19161. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19162. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19163. msm_routing_get_port_mixer,
  19164. msm_routing_put_port_mixer),
  19165. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19166. MSM_BACKEND_DAI_QUAT_TDM_RX_3,
  19167. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19168. msm_routing_get_port_mixer,
  19169. msm_routing_put_port_mixer),
  19170. };
  19171. static const struct snd_kcontrol_new quat_tdm_rx_7_port_mixer_controls[] = {
  19172. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  19173. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19174. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  19175. msm_routing_get_port_mixer,
  19176. msm_routing_put_port_mixer),
  19177. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  19178. MSM_BACKEND_DAI_QUAT_TDM_RX_7,
  19179. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  19180. msm_routing_get_port_mixer,
  19181. msm_routing_put_port_mixer),
  19182. };
  19183. static const struct snd_kcontrol_new quin_tdm_rx_0_port_mixer_controls[] = {
  19184. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19185. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19186. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19187. msm_routing_get_port_mixer,
  19188. msm_routing_put_port_mixer),
  19189. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19190. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19191. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19192. msm_routing_get_port_mixer,
  19193. msm_routing_put_port_mixer),
  19194. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19195. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19196. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19197. msm_routing_get_port_mixer,
  19198. msm_routing_put_port_mixer),
  19199. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19200. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19201. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19202. msm_routing_get_port_mixer,
  19203. msm_routing_put_port_mixer),
  19204. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19205. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19206. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19207. msm_routing_get_port_mixer,
  19208. msm_routing_put_port_mixer),
  19209. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19210. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19211. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19212. msm_routing_get_port_mixer,
  19213. msm_routing_put_port_mixer),
  19214. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19215. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19216. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19217. msm_routing_get_port_mixer,
  19218. msm_routing_put_port_mixer),
  19219. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19220. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19221. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19222. msm_routing_get_port_mixer,
  19223. msm_routing_put_port_mixer),
  19224. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19225. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19226. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19227. msm_routing_get_port_mixer,
  19228. msm_routing_put_port_mixer),
  19229. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19230. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19231. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19232. msm_routing_get_port_mixer,
  19233. msm_routing_put_port_mixer),
  19234. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19235. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19236. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19237. msm_routing_get_port_mixer,
  19238. msm_routing_put_port_mixer),
  19239. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19240. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19241. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19242. msm_routing_get_port_mixer,
  19243. msm_routing_put_port_mixer),
  19244. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19245. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19246. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19247. msm_routing_get_port_mixer,
  19248. msm_routing_put_port_mixer),
  19249. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19250. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19251. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19252. msm_routing_get_port_mixer,
  19253. msm_routing_put_port_mixer),
  19254. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19255. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19256. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19257. msm_routing_get_port_mixer,
  19258. msm_routing_put_port_mixer),
  19259. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19260. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19261. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19262. msm_routing_get_port_mixer,
  19263. msm_routing_put_port_mixer),
  19264. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19265. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19266. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19267. msm_routing_get_port_mixer,
  19268. msm_routing_put_port_mixer),
  19269. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19270. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19271. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19272. msm_routing_get_port_mixer,
  19273. msm_routing_put_port_mixer),
  19274. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19275. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19276. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19277. msm_routing_get_port_mixer,
  19278. msm_routing_put_port_mixer),
  19279. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19280. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19281. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19282. msm_routing_get_port_mixer,
  19283. msm_routing_put_port_mixer),
  19284. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19285. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19286. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19287. msm_routing_get_port_mixer,
  19288. msm_routing_put_port_mixer),
  19289. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19290. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19291. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19292. msm_routing_get_port_mixer,
  19293. msm_routing_put_port_mixer),
  19294. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19295. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19296. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19297. msm_routing_get_port_mixer,
  19298. msm_routing_put_port_mixer),
  19299. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19300. MSM_BACKEND_DAI_QUIN_TDM_RX_0,
  19301. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19302. msm_routing_get_port_mixer,
  19303. msm_routing_put_port_mixer),
  19304. };
  19305. static const struct snd_kcontrol_new quin_tdm_rx_1_port_mixer_controls[] = {
  19306. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19307. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19308. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19309. msm_routing_get_port_mixer,
  19310. msm_routing_put_port_mixer),
  19311. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19312. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19313. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19314. msm_routing_get_port_mixer,
  19315. msm_routing_put_port_mixer),
  19316. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19317. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19318. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19319. msm_routing_get_port_mixer,
  19320. msm_routing_put_port_mixer),
  19321. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19322. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19323. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19324. msm_routing_get_port_mixer,
  19325. msm_routing_put_port_mixer),
  19326. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19327. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19328. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19329. msm_routing_get_port_mixer,
  19330. msm_routing_put_port_mixer),
  19331. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19332. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19333. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19334. msm_routing_get_port_mixer,
  19335. msm_routing_put_port_mixer),
  19336. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19337. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19338. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19339. msm_routing_get_port_mixer,
  19340. msm_routing_put_port_mixer),
  19341. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19342. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19343. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19344. msm_routing_get_port_mixer,
  19345. msm_routing_put_port_mixer),
  19346. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19347. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19348. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19349. msm_routing_get_port_mixer,
  19350. msm_routing_put_port_mixer),
  19351. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19352. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19353. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19354. msm_routing_get_port_mixer,
  19355. msm_routing_put_port_mixer),
  19356. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19357. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19358. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19359. msm_routing_get_port_mixer,
  19360. msm_routing_put_port_mixer),
  19361. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19362. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19363. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19364. msm_routing_get_port_mixer,
  19365. msm_routing_put_port_mixer),
  19366. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19367. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19368. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19369. msm_routing_get_port_mixer,
  19370. msm_routing_put_port_mixer),
  19371. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19372. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19373. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19374. msm_routing_get_port_mixer,
  19375. msm_routing_put_port_mixer),
  19376. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19377. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19378. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19379. msm_routing_get_port_mixer,
  19380. msm_routing_put_port_mixer),
  19381. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19382. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19383. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19384. msm_routing_get_port_mixer,
  19385. msm_routing_put_port_mixer),
  19386. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19387. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19388. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19389. msm_routing_get_port_mixer,
  19390. msm_routing_put_port_mixer),
  19391. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19392. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19393. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19394. msm_routing_get_port_mixer,
  19395. msm_routing_put_port_mixer),
  19396. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19397. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19398. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19399. msm_routing_get_port_mixer,
  19400. msm_routing_put_port_mixer),
  19401. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19402. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19403. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19404. msm_routing_get_port_mixer,
  19405. msm_routing_put_port_mixer),
  19406. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19407. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19408. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19409. msm_routing_get_port_mixer,
  19410. msm_routing_put_port_mixer),
  19411. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19412. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19413. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19414. msm_routing_get_port_mixer,
  19415. msm_routing_put_port_mixer),
  19416. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19417. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19418. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19419. msm_routing_get_port_mixer,
  19420. msm_routing_put_port_mixer),
  19421. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19422. MSM_BACKEND_DAI_QUIN_TDM_RX_1,
  19423. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19424. msm_routing_get_port_mixer,
  19425. msm_routing_put_port_mixer),
  19426. };
  19427. static const struct snd_kcontrol_new quin_tdm_rx_2_port_mixer_controls[] = {
  19428. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19429. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19430. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19431. msm_routing_get_port_mixer,
  19432. msm_routing_put_port_mixer),
  19433. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19434. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19435. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19436. msm_routing_get_port_mixer,
  19437. msm_routing_put_port_mixer),
  19438. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19439. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19440. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19441. msm_routing_get_port_mixer,
  19442. msm_routing_put_port_mixer),
  19443. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19444. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19445. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19446. msm_routing_get_port_mixer,
  19447. msm_routing_put_port_mixer),
  19448. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19449. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19450. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19451. msm_routing_get_port_mixer,
  19452. msm_routing_put_port_mixer),
  19453. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19454. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19455. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19456. msm_routing_get_port_mixer,
  19457. msm_routing_put_port_mixer),
  19458. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19459. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19460. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19461. msm_routing_get_port_mixer,
  19462. msm_routing_put_port_mixer),
  19463. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19464. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19465. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19466. msm_routing_get_port_mixer,
  19467. msm_routing_put_port_mixer),
  19468. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19469. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19470. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19471. msm_routing_get_port_mixer,
  19472. msm_routing_put_port_mixer),
  19473. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19474. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19475. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19476. msm_routing_get_port_mixer,
  19477. msm_routing_put_port_mixer),
  19478. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19479. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19480. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19481. msm_routing_get_port_mixer,
  19482. msm_routing_put_port_mixer),
  19483. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19484. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19485. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19486. msm_routing_get_port_mixer,
  19487. msm_routing_put_port_mixer),
  19488. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19489. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19490. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19491. msm_routing_get_port_mixer,
  19492. msm_routing_put_port_mixer),
  19493. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19494. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19495. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19496. msm_routing_get_port_mixer,
  19497. msm_routing_put_port_mixer),
  19498. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19499. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19500. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19501. msm_routing_get_port_mixer,
  19502. msm_routing_put_port_mixer),
  19503. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19504. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19505. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19506. msm_routing_get_port_mixer,
  19507. msm_routing_put_port_mixer),
  19508. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19509. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19510. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19511. msm_routing_get_port_mixer,
  19512. msm_routing_put_port_mixer),
  19513. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19514. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19515. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19516. msm_routing_get_port_mixer,
  19517. msm_routing_put_port_mixer),
  19518. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19519. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19520. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19521. msm_routing_get_port_mixer,
  19522. msm_routing_put_port_mixer),
  19523. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19524. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19525. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19526. msm_routing_get_port_mixer,
  19527. msm_routing_put_port_mixer),
  19528. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19529. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19530. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19531. msm_routing_get_port_mixer,
  19532. msm_routing_put_port_mixer),
  19533. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19534. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19535. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19536. msm_routing_get_port_mixer,
  19537. msm_routing_put_port_mixer),
  19538. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19539. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19540. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19541. msm_routing_get_port_mixer,
  19542. msm_routing_put_port_mixer),
  19543. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19544. MSM_BACKEND_DAI_QUIN_TDM_RX_2,
  19545. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19546. msm_routing_get_port_mixer,
  19547. msm_routing_put_port_mixer),
  19548. };
  19549. static const struct snd_kcontrol_new quin_tdm_rx_3_port_mixer_controls[] = {
  19550. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19551. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19552. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19553. msm_routing_get_port_mixer,
  19554. msm_routing_put_port_mixer),
  19555. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19556. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19557. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19558. msm_routing_get_port_mixer,
  19559. msm_routing_put_port_mixer),
  19560. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19561. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19562. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19563. msm_routing_get_port_mixer,
  19564. msm_routing_put_port_mixer),
  19565. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19566. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19567. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19568. msm_routing_get_port_mixer,
  19569. msm_routing_put_port_mixer),
  19570. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19571. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19572. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19573. msm_routing_get_port_mixer,
  19574. msm_routing_put_port_mixer),
  19575. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19576. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19577. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19578. msm_routing_get_port_mixer,
  19579. msm_routing_put_port_mixer),
  19580. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19581. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19582. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19583. msm_routing_get_port_mixer,
  19584. msm_routing_put_port_mixer),
  19585. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19586. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19587. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19588. msm_routing_get_port_mixer,
  19589. msm_routing_put_port_mixer),
  19590. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19591. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19592. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19593. msm_routing_get_port_mixer,
  19594. msm_routing_put_port_mixer),
  19595. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19596. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19597. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19598. msm_routing_get_port_mixer,
  19599. msm_routing_put_port_mixer),
  19600. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19601. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19602. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19603. msm_routing_get_port_mixer,
  19604. msm_routing_put_port_mixer),
  19605. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19606. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19607. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19608. msm_routing_get_port_mixer,
  19609. msm_routing_put_port_mixer),
  19610. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19611. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19612. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19613. msm_routing_get_port_mixer,
  19614. msm_routing_put_port_mixer),
  19615. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19616. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19617. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19618. msm_routing_get_port_mixer,
  19619. msm_routing_put_port_mixer),
  19620. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19621. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19622. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19623. msm_routing_get_port_mixer,
  19624. msm_routing_put_port_mixer),
  19625. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19626. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19627. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19628. msm_routing_get_port_mixer,
  19629. msm_routing_put_port_mixer),
  19630. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19631. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19632. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19633. msm_routing_get_port_mixer,
  19634. msm_routing_put_port_mixer),
  19635. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19636. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19637. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19638. msm_routing_get_port_mixer,
  19639. msm_routing_put_port_mixer),
  19640. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19641. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19642. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19643. msm_routing_get_port_mixer,
  19644. msm_routing_put_port_mixer),
  19645. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19646. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19647. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19648. msm_routing_get_port_mixer,
  19649. msm_routing_put_port_mixer),
  19650. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19651. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19652. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19653. msm_routing_get_port_mixer,
  19654. msm_routing_put_port_mixer),
  19655. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19656. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19657. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19658. msm_routing_get_port_mixer,
  19659. msm_routing_put_port_mixer),
  19660. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19661. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19662. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19663. msm_routing_get_port_mixer,
  19664. msm_routing_put_port_mixer),
  19665. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19666. MSM_BACKEND_DAI_QUIN_TDM_RX_3,
  19667. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19668. msm_routing_get_port_mixer,
  19669. msm_routing_put_port_mixer),
  19670. };
  19671. static const struct snd_kcontrol_new sen_tdm_rx_0_port_mixer_controls[] = {
  19672. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19673. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19674. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19675. msm_routing_get_port_mixer,
  19676. msm_routing_put_port_mixer),
  19677. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19678. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19679. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19680. msm_routing_get_port_mixer,
  19681. msm_routing_put_port_mixer),
  19682. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19683. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19684. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19685. msm_routing_get_port_mixer,
  19686. msm_routing_put_port_mixer),
  19687. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19688. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19689. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19690. msm_routing_get_port_mixer,
  19691. msm_routing_put_port_mixer),
  19692. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19693. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19694. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19695. msm_routing_get_port_mixer,
  19696. msm_routing_put_port_mixer),
  19697. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19698. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19699. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19700. msm_routing_get_port_mixer,
  19701. msm_routing_put_port_mixer),
  19702. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19703. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19704. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19705. msm_routing_get_port_mixer,
  19706. msm_routing_put_port_mixer),
  19707. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19708. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19709. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19710. msm_routing_get_port_mixer,
  19711. msm_routing_put_port_mixer),
  19712. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19713. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19714. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19715. msm_routing_get_port_mixer,
  19716. msm_routing_put_port_mixer),
  19717. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19718. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19719. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19720. msm_routing_get_port_mixer,
  19721. msm_routing_put_port_mixer),
  19722. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19723. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19724. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19725. msm_routing_get_port_mixer,
  19726. msm_routing_put_port_mixer),
  19727. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19728. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19729. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19730. msm_routing_get_port_mixer,
  19731. msm_routing_put_port_mixer),
  19732. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19733. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19734. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19735. msm_routing_get_port_mixer,
  19736. msm_routing_put_port_mixer),
  19737. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19738. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19739. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19740. msm_routing_get_port_mixer,
  19741. msm_routing_put_port_mixer),
  19742. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19743. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19744. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19745. msm_routing_get_port_mixer,
  19746. msm_routing_put_port_mixer),
  19747. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19748. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19749. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19750. msm_routing_get_port_mixer,
  19751. msm_routing_put_port_mixer),
  19752. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19753. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19754. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19755. msm_routing_get_port_mixer,
  19756. msm_routing_put_port_mixer),
  19757. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19758. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19759. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19760. msm_routing_get_port_mixer,
  19761. msm_routing_put_port_mixer),
  19762. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19763. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19764. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19765. msm_routing_get_port_mixer,
  19766. msm_routing_put_port_mixer),
  19767. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19768. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19769. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19770. msm_routing_get_port_mixer,
  19771. msm_routing_put_port_mixer),
  19772. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19773. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19774. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19775. msm_routing_get_port_mixer,
  19776. msm_routing_put_port_mixer),
  19777. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19778. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19779. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19780. msm_routing_get_port_mixer,
  19781. msm_routing_put_port_mixer),
  19782. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19783. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19784. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19785. msm_routing_get_port_mixer,
  19786. msm_routing_put_port_mixer),
  19787. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19788. MSM_BACKEND_DAI_SEN_TDM_RX_0,
  19789. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19790. msm_routing_get_port_mixer,
  19791. msm_routing_put_port_mixer),
  19792. };
  19793. static const struct snd_kcontrol_new sen_tdm_rx_1_port_mixer_controls[] = {
  19794. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19795. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19796. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19797. msm_routing_get_port_mixer,
  19798. msm_routing_put_port_mixer),
  19799. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19800. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19801. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19802. msm_routing_get_port_mixer,
  19803. msm_routing_put_port_mixer),
  19804. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19805. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19806. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19807. msm_routing_get_port_mixer,
  19808. msm_routing_put_port_mixer),
  19809. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19810. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19811. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19812. msm_routing_get_port_mixer,
  19813. msm_routing_put_port_mixer),
  19814. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19815. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19816. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19817. msm_routing_get_port_mixer,
  19818. msm_routing_put_port_mixer),
  19819. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19820. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19821. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19822. msm_routing_get_port_mixer,
  19823. msm_routing_put_port_mixer),
  19824. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19825. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19826. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19827. msm_routing_get_port_mixer,
  19828. msm_routing_put_port_mixer),
  19829. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19830. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19831. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19832. msm_routing_get_port_mixer,
  19833. msm_routing_put_port_mixer),
  19834. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19835. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19836. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19837. msm_routing_get_port_mixer,
  19838. msm_routing_put_port_mixer),
  19839. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19840. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19841. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19842. msm_routing_get_port_mixer,
  19843. msm_routing_put_port_mixer),
  19844. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19845. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19846. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19847. msm_routing_get_port_mixer,
  19848. msm_routing_put_port_mixer),
  19849. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19850. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19851. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19852. msm_routing_get_port_mixer,
  19853. msm_routing_put_port_mixer),
  19854. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19855. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19856. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19857. msm_routing_get_port_mixer,
  19858. msm_routing_put_port_mixer),
  19859. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19860. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19861. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19862. msm_routing_get_port_mixer,
  19863. msm_routing_put_port_mixer),
  19864. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19865. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19866. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19867. msm_routing_get_port_mixer,
  19868. msm_routing_put_port_mixer),
  19869. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19870. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19871. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19872. msm_routing_get_port_mixer,
  19873. msm_routing_put_port_mixer),
  19874. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19875. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19876. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19877. msm_routing_get_port_mixer,
  19878. msm_routing_put_port_mixer),
  19879. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  19880. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19881. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  19882. msm_routing_get_port_mixer,
  19883. msm_routing_put_port_mixer),
  19884. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  19885. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19886. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  19887. msm_routing_get_port_mixer,
  19888. msm_routing_put_port_mixer),
  19889. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  19890. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19891. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  19892. msm_routing_get_port_mixer,
  19893. msm_routing_put_port_mixer),
  19894. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  19895. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19896. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  19897. msm_routing_get_port_mixer,
  19898. msm_routing_put_port_mixer),
  19899. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  19900. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19901. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  19902. msm_routing_get_port_mixer,
  19903. msm_routing_put_port_mixer),
  19904. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  19905. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19906. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  19907. msm_routing_get_port_mixer,
  19908. msm_routing_put_port_mixer),
  19909. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  19910. MSM_BACKEND_DAI_SEN_TDM_RX_1,
  19911. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  19912. msm_routing_get_port_mixer,
  19913. msm_routing_put_port_mixer),
  19914. };
  19915. static const struct snd_kcontrol_new sen_tdm_rx_2_port_mixer_controls[] = {
  19916. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  19917. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19918. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  19919. msm_routing_get_port_mixer,
  19920. msm_routing_put_port_mixer),
  19921. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  19922. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19923. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  19924. msm_routing_get_port_mixer,
  19925. msm_routing_put_port_mixer),
  19926. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  19927. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19928. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  19929. msm_routing_get_port_mixer,
  19930. msm_routing_put_port_mixer),
  19931. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  19932. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19933. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  19934. msm_routing_get_port_mixer,
  19935. msm_routing_put_port_mixer),
  19936. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  19937. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19938. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  19939. msm_routing_get_port_mixer,
  19940. msm_routing_put_port_mixer),
  19941. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  19942. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19943. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  19944. msm_routing_get_port_mixer,
  19945. msm_routing_put_port_mixer),
  19946. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  19947. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19948. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  19949. msm_routing_get_port_mixer,
  19950. msm_routing_put_port_mixer),
  19951. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  19952. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19953. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  19954. msm_routing_get_port_mixer,
  19955. msm_routing_put_port_mixer),
  19956. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  19957. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19958. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  19959. msm_routing_get_port_mixer,
  19960. msm_routing_put_port_mixer),
  19961. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  19962. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19963. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  19964. msm_routing_get_port_mixer,
  19965. msm_routing_put_port_mixer),
  19966. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  19967. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19968. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  19969. msm_routing_get_port_mixer,
  19970. msm_routing_put_port_mixer),
  19971. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  19972. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19973. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  19974. msm_routing_get_port_mixer,
  19975. msm_routing_put_port_mixer),
  19976. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  19977. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19978. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  19979. msm_routing_get_port_mixer,
  19980. msm_routing_put_port_mixer),
  19981. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  19982. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19983. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  19984. msm_routing_get_port_mixer,
  19985. msm_routing_put_port_mixer),
  19986. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  19987. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19988. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  19989. msm_routing_get_port_mixer,
  19990. msm_routing_put_port_mixer),
  19991. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  19992. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19993. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  19994. msm_routing_get_port_mixer,
  19995. msm_routing_put_port_mixer),
  19996. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  19997. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  19998. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  19999. msm_routing_get_port_mixer,
  20000. msm_routing_put_port_mixer),
  20001. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20002. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20003. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20004. msm_routing_get_port_mixer,
  20005. msm_routing_put_port_mixer),
  20006. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20007. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20008. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20009. msm_routing_get_port_mixer,
  20010. msm_routing_put_port_mixer),
  20011. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20012. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20013. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20014. msm_routing_get_port_mixer,
  20015. msm_routing_put_port_mixer),
  20016. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20017. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20018. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20019. msm_routing_get_port_mixer,
  20020. msm_routing_put_port_mixer),
  20021. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20022. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20023. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20024. msm_routing_get_port_mixer,
  20025. msm_routing_put_port_mixer),
  20026. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20027. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20028. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20029. msm_routing_get_port_mixer,
  20030. msm_routing_put_port_mixer),
  20031. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20032. MSM_BACKEND_DAI_SEN_TDM_RX_2,
  20033. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20034. msm_routing_get_port_mixer,
  20035. msm_routing_put_port_mixer),
  20036. };
  20037. static const struct snd_kcontrol_new sen_tdm_rx_3_port_mixer_controls[] = {
  20038. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20039. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20040. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0,
  20041. msm_routing_get_port_mixer,
  20042. msm_routing_put_port_mixer),
  20043. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20044. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20045. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0,
  20046. msm_routing_get_port_mixer,
  20047. msm_routing_put_port_mixer),
  20048. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20049. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20050. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0,
  20051. msm_routing_get_port_mixer,
  20052. msm_routing_put_port_mixer),
  20053. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20054. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20055. MSM_BACKEND_DAI_INT_FM_TX, 1, 0,
  20056. msm_routing_get_port_mixer,
  20057. msm_routing_put_port_mixer),
  20058. SOC_DOUBLE_EXT("INTERNAL_BT_SCO_TX", SND_SOC_NOPM,
  20059. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20060. MSM_BACKEND_DAI_INT_BT_SCO_TX, 1, 0,
  20061. msm_routing_get_port_mixer,
  20062. msm_routing_put_port_mixer),
  20063. SOC_DOUBLE_EXT("AFE_PCM_TX", SND_SOC_NOPM,
  20064. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20065. MSM_BACKEND_DAI_AFE_PCM_TX, 1, 0,
  20066. msm_routing_get_port_mixer,
  20067. msm_routing_put_port_mixer),
  20068. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20069. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20070. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0,
  20071. msm_routing_get_port_mixer,
  20072. msm_routing_put_port_mixer),
  20073. SOC_DOUBLE_EXT("SEC_AUX_PCM_UL_TX", SND_SOC_NOPM,
  20074. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20075. MSM_BACKEND_DAI_SEC_AUXPCM_TX, 1, 0,
  20076. msm_routing_get_port_mixer,
  20077. msm_routing_put_port_mixer),
  20078. SOC_DOUBLE_EXT("TERT_TDM_TX_0", SND_SOC_NOPM,
  20079. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20080. MSM_BACKEND_DAI_TERT_TDM_TX_0, 1, 0,
  20081. msm_routing_get_port_mixer,
  20082. msm_routing_put_port_mixer),
  20083. SOC_DOUBLE_EXT("TERT_TDM_TX_1", SND_SOC_NOPM,
  20084. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20085. MSM_BACKEND_DAI_TERT_TDM_TX_1, 1, 0,
  20086. msm_routing_get_port_mixer,
  20087. msm_routing_put_port_mixer),
  20088. SOC_DOUBLE_EXT("TERT_TDM_TX_2", SND_SOC_NOPM,
  20089. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20090. MSM_BACKEND_DAI_TERT_TDM_TX_2, 1, 0,
  20091. msm_routing_get_port_mixer,
  20092. msm_routing_put_port_mixer),
  20093. SOC_DOUBLE_EXT("TERT_TDM_TX_3", SND_SOC_NOPM,
  20094. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20095. MSM_BACKEND_DAI_TERT_TDM_TX_3, 1, 0,
  20096. msm_routing_get_port_mixer,
  20097. msm_routing_put_port_mixer),
  20098. SOC_DOUBLE_EXT("QUAT_TDM_TX_0", SND_SOC_NOPM,
  20099. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20100. MSM_BACKEND_DAI_QUAT_TDM_TX_0, 1, 0,
  20101. msm_routing_get_port_mixer,
  20102. msm_routing_put_port_mixer),
  20103. SOC_DOUBLE_EXT("QUAT_TDM_TX_1", SND_SOC_NOPM,
  20104. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20105. MSM_BACKEND_DAI_QUAT_TDM_TX_1, 1, 0,
  20106. msm_routing_get_port_mixer,
  20107. msm_routing_put_port_mixer),
  20108. SOC_DOUBLE_EXT("QUAT_TDM_TX_2", SND_SOC_NOPM,
  20109. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20110. MSM_BACKEND_DAI_QUAT_TDM_TX_2, 1, 0,
  20111. msm_routing_get_port_mixer,
  20112. msm_routing_put_port_mixer),
  20113. SOC_DOUBLE_EXT("QUAT_TDM_TX_3", SND_SOC_NOPM,
  20114. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20115. MSM_BACKEND_DAI_QUAT_TDM_TX_3, 1, 0,
  20116. msm_routing_get_port_mixer,
  20117. msm_routing_put_port_mixer),
  20118. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20119. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20120. MSM_BACKEND_DAI_QUIN_TDM_TX_0, 1, 0,
  20121. msm_routing_get_port_mixer,
  20122. msm_routing_put_port_mixer),
  20123. SOC_DOUBLE_EXT("QUIN_TDM_TX_1", SND_SOC_NOPM,
  20124. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20125. MSM_BACKEND_DAI_QUIN_TDM_TX_1, 1, 0,
  20126. msm_routing_get_port_mixer,
  20127. msm_routing_put_port_mixer),
  20128. SOC_DOUBLE_EXT("QUIN_TDM_TX_2", SND_SOC_NOPM,
  20129. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20130. MSM_BACKEND_DAI_QUIN_TDM_TX_2, 1, 0,
  20131. msm_routing_get_port_mixer,
  20132. msm_routing_put_port_mixer),
  20133. SOC_DOUBLE_EXT("QUIN_TDM_TX_3", SND_SOC_NOPM,
  20134. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20135. MSM_BACKEND_DAI_QUIN_TDM_TX_3, 1, 0,
  20136. msm_routing_get_port_mixer,
  20137. msm_routing_put_port_mixer),
  20138. SOC_DOUBLE_EXT("SEN_TDM_TX_0", SND_SOC_NOPM,
  20139. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20140. MSM_BACKEND_DAI_SEN_TDM_TX_0, 1, 0,
  20141. msm_routing_get_port_mixer,
  20142. msm_routing_put_port_mixer),
  20143. SOC_DOUBLE_EXT("SEN_TDM_TX_1", SND_SOC_NOPM,
  20144. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20145. MSM_BACKEND_DAI_SEN_TDM_TX_1, 1, 0,
  20146. msm_routing_get_port_mixer,
  20147. msm_routing_put_port_mixer),
  20148. SOC_DOUBLE_EXT("SEN_TDM_TX_2", SND_SOC_NOPM,
  20149. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20150. MSM_BACKEND_DAI_SEN_TDM_TX_2, 1, 0,
  20151. msm_routing_get_port_mixer,
  20152. msm_routing_put_port_mixer),
  20153. SOC_DOUBLE_EXT("SEN_TDM_TX_3", SND_SOC_NOPM,
  20154. MSM_BACKEND_DAI_SEN_TDM_RX_3,
  20155. MSM_BACKEND_DAI_SEN_TDM_TX_3, 1, 0,
  20156. msm_routing_get_port_mixer,
  20157. msm_routing_put_port_mixer),
  20158. };
  20159. static const struct snd_kcontrol_new quin_tdm_rx_7_port_mixer_controls[] = {
  20160. SOC_DOUBLE_EXT("TERT_TDM_TX_7", SND_SOC_NOPM,
  20161. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20162. MSM_BACKEND_DAI_TERT_TDM_TX_7, 1, 0,
  20163. msm_routing_get_port_mixer,
  20164. msm_routing_put_port_mixer),
  20165. SOC_DOUBLE_EXT("QUAT_TDM_TX_7", SND_SOC_NOPM,
  20166. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20167. MSM_BACKEND_DAI_QUAT_TDM_TX_7, 1, 0,
  20168. msm_routing_get_port_mixer,
  20169. msm_routing_put_port_mixer),
  20170. SOC_DOUBLE_EXT("QUIN_TDM_TX_7", SND_SOC_NOPM,
  20171. MSM_BACKEND_DAI_QUIN_TDM_RX_7,
  20172. MSM_BACKEND_DAI_QUIN_TDM_TX_7, 1, 0,
  20173. msm_routing_get_port_mixer,
  20174. msm_routing_put_port_mixer),
  20175. };
  20176. static const struct snd_kcontrol_new tert_mi2s_rx_port_mixer_controls[] = {
  20177. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20178. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20179. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20180. msm_routing_put_port_mixer),
  20181. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20182. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20183. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20184. msm_routing_put_port_mixer),
  20185. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20186. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20187. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20188. msm_routing_put_port_mixer),
  20189. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20190. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20191. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20192. msm_routing_put_port_mixer),
  20193. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20194. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20195. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20196. msm_routing_put_port_mixer),
  20197. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20198. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20199. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20200. msm_routing_put_port_mixer),
  20201. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20202. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20203. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20204. msm_routing_put_port_mixer),
  20205. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20206. MSM_BACKEND_DAI_TERTIARY_MI2S_RX,
  20207. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20208. msm_routing_put_port_mixer),
  20209. };
  20210. static const struct snd_kcontrol_new sec_mi2s_rx_port_mixer_controls[] = {
  20211. SOC_DOUBLE_EXT("PRI_MI2S_TX", SND_SOC_NOPM,
  20212. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20213. MSM_BACKEND_DAI_PRI_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20214. msm_routing_put_port_mixer),
  20215. SOC_DOUBLE_EXT("SEC_MI2S_TX", SND_SOC_NOPM,
  20216. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20217. MSM_BACKEND_DAI_SECONDARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20218. msm_routing_put_port_mixer),
  20219. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20220. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20221. MSM_BACKEND_DAI_TERTIARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20222. msm_routing_put_port_mixer),
  20223. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20224. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20225. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20226. msm_routing_put_port_mixer),
  20227. SOC_DOUBLE_EXT("QUIN_MI2S_TX", SND_SOC_NOPM,
  20228. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20229. MSM_BACKEND_DAI_QUINARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20230. msm_routing_put_port_mixer),
  20231. SOC_DOUBLE_EXT("SENARY_MI2S_TX", SND_SOC_NOPM,
  20232. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20233. MSM_BACKEND_DAI_SENARY_MI2S_TX, 1, 0, msm_routing_get_port_mixer,
  20234. msm_routing_put_port_mixer),
  20235. SOC_DOUBLE_EXT("SLIM_0_TX", SND_SOC_NOPM,
  20236. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20237. MSM_BACKEND_DAI_SLIMBUS_0_TX, 1, 0, msm_routing_get_port_mixer,
  20238. msm_routing_put_port_mixer),
  20239. SOC_DOUBLE_EXT("INTERNAL_FM_TX", SND_SOC_NOPM,
  20240. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20241. MSM_BACKEND_DAI_INT_FM_TX, 1, 0, msm_routing_get_port_mixer,
  20242. msm_routing_put_port_mixer),
  20243. SOC_DOUBLE_EXT("SLIM_8_TX", SND_SOC_NOPM,
  20244. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20245. MSM_BACKEND_DAI_SLIMBUS_8_TX, 1, 0, msm_routing_get_port_mixer,
  20246. msm_routing_put_port_mixer),
  20247. SOC_DOUBLE_EXT("AUX_PCM_UL_TX", SND_SOC_NOPM,
  20248. MSM_BACKEND_DAI_SECONDARY_MI2S_RX,
  20249. MSM_BACKEND_DAI_AUXPCM_TX, 1, 0, msm_routing_get_port_mixer,
  20250. msm_routing_put_port_mixer),
  20251. };
  20252. static const struct snd_kcontrol_new lsm1_mixer_controls[] = {
  20253. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20254. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20255. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20256. msm_routing_put_listen_mixer),
  20257. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20258. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20259. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20260. msm_routing_put_listen_mixer),
  20261. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20262. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20263. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20264. msm_routing_put_listen_mixer),
  20265. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20266. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20267. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20268. msm_routing_put_listen_mixer),
  20269. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20270. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20271. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20272. msm_routing_put_listen_mixer),
  20273. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20274. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20275. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20276. msm_routing_put_listen_mixer),
  20277. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20278. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20279. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20280. msm_routing_put_listen_mixer),
  20281. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20282. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20283. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20284. msm_routing_put_listen_mixer),
  20285. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20286. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20287. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20288. msm_routing_put_listen_mixer),
  20289. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20290. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20291. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20292. msm_routing_put_listen_mixer),
  20293. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20294. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20295. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20296. msm_routing_put_listen_mixer),
  20297. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20298. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20299. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20300. msm_routing_put_listen_mixer),
  20301. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20302. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20303. MSM_FRONTEND_DAI_LSM1, 1, 0, msm_routing_get_listen_mixer,
  20304. msm_routing_put_listen_mixer),
  20305. };
  20306. static const struct snd_kcontrol_new lsm2_mixer_controls[] = {
  20307. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20308. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20309. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20310. msm_routing_put_listen_mixer),
  20311. SOC_DOUBLE_EXT("SLIMBUS_1_TX",
  20312. SND_SOC_NOPM,
  20313. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20314. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20315. msm_routing_put_listen_mixer),
  20316. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20317. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20318. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20319. msm_routing_put_listen_mixer),
  20320. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20321. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20322. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20323. msm_routing_put_listen_mixer),
  20324. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20325. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20326. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20327. msm_routing_put_listen_mixer),
  20328. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20329. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20330. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20331. msm_routing_put_listen_mixer),
  20332. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20333. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20334. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20335. msm_routing_put_listen_mixer),
  20336. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20337. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20338. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20339. msm_routing_put_listen_mixer),
  20340. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20341. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20342. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20343. msm_routing_put_listen_mixer),
  20344. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20345. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20346. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20347. msm_routing_put_listen_mixer),
  20348. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20349. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20350. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20351. msm_routing_put_listen_mixer),
  20352. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20353. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20354. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20355. msm_routing_put_listen_mixer),
  20356. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20357. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20358. MSM_FRONTEND_DAI_LSM2, 1, 0, msm_routing_get_listen_mixer,
  20359. msm_routing_put_listen_mixer),
  20360. };
  20361. static const struct snd_kcontrol_new lsm3_mixer_controls[] = {
  20362. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20363. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20364. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20365. msm_routing_put_listen_mixer),
  20366. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20367. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20368. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20369. msm_routing_put_listen_mixer),
  20370. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20371. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20372. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20373. msm_routing_put_listen_mixer),
  20374. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20375. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20376. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20377. msm_routing_put_listen_mixer),
  20378. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20379. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20380. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20381. msm_routing_put_listen_mixer),
  20382. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20383. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20384. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20385. msm_routing_put_listen_mixer),
  20386. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20387. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20388. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20389. msm_routing_put_listen_mixer),
  20390. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20391. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20392. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20393. msm_routing_put_listen_mixer),
  20394. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20395. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20396. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20397. msm_routing_put_listen_mixer),
  20398. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20399. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20400. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20401. msm_routing_put_listen_mixer),
  20402. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20403. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20404. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20405. msm_routing_put_listen_mixer),
  20406. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20407. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20408. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20409. msm_routing_put_listen_mixer),
  20410. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20411. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20412. MSM_FRONTEND_DAI_LSM3, 1, 0, msm_routing_get_listen_mixer,
  20413. msm_routing_put_listen_mixer),
  20414. };
  20415. static const struct snd_kcontrol_new lsm4_mixer_controls[] = {
  20416. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20417. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20418. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20419. msm_routing_put_listen_mixer),
  20420. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20421. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20422. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20423. msm_routing_put_listen_mixer),
  20424. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20425. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20426. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20427. msm_routing_put_listen_mixer),
  20428. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20429. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20430. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20431. msm_routing_put_listen_mixer),
  20432. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20433. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20434. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20435. msm_routing_put_listen_mixer),
  20436. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20437. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20438. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20439. msm_routing_put_listen_mixer),
  20440. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20441. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20442. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20443. msm_routing_put_listen_mixer),
  20444. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20445. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20446. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20447. msm_routing_put_listen_mixer),
  20448. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20449. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20450. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20451. msm_routing_put_listen_mixer),
  20452. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20453. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20454. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20455. msm_routing_put_listen_mixer),
  20456. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20457. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20458. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20459. msm_routing_put_listen_mixer),
  20460. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20461. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20462. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20463. msm_routing_put_listen_mixer),
  20464. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20465. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20466. MSM_FRONTEND_DAI_LSM4, 1, 0, msm_routing_get_listen_mixer,
  20467. msm_routing_put_listen_mixer),
  20468. };
  20469. static const struct snd_kcontrol_new lsm5_mixer_controls[] = {
  20470. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20471. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20472. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20473. msm_routing_put_listen_mixer),
  20474. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20475. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20476. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20477. msm_routing_put_listen_mixer),
  20478. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20479. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20480. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20481. msm_routing_put_listen_mixer),
  20482. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20483. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20484. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20485. msm_routing_put_listen_mixer),
  20486. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20487. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20488. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20489. msm_routing_put_listen_mixer),
  20490. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20491. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20492. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20493. msm_routing_put_listen_mixer),
  20494. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20495. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20496. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20497. msm_routing_put_listen_mixer),
  20498. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20499. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20500. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20501. msm_routing_put_listen_mixer),
  20502. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20503. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20504. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20505. msm_routing_put_listen_mixer),
  20506. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20507. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20508. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20509. msm_routing_put_listen_mixer),
  20510. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20511. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20512. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20513. msm_routing_put_listen_mixer),
  20514. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20515. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20516. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20517. msm_routing_put_listen_mixer),
  20518. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20519. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20520. MSM_FRONTEND_DAI_LSM5, 1, 0, msm_routing_get_listen_mixer,
  20521. msm_routing_put_listen_mixer),
  20522. };
  20523. static const struct snd_kcontrol_new lsm6_mixer_controls[] = {
  20524. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20525. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20526. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20527. msm_routing_put_listen_mixer),
  20528. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20529. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20530. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20531. msm_routing_put_listen_mixer),
  20532. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20533. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20534. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20535. msm_routing_put_listen_mixer),
  20536. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20537. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20538. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20539. msm_routing_put_listen_mixer),
  20540. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20541. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20542. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20543. msm_routing_put_listen_mixer),
  20544. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20545. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20546. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20547. msm_routing_put_listen_mixer),
  20548. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20549. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20550. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20551. msm_routing_put_listen_mixer),
  20552. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20553. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20554. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20555. msm_routing_put_listen_mixer),
  20556. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20557. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20558. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20559. msm_routing_put_listen_mixer),
  20560. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20561. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20562. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20563. msm_routing_put_listen_mixer),
  20564. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20565. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20566. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20567. msm_routing_put_listen_mixer),
  20568. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20569. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20570. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20571. msm_routing_put_listen_mixer),
  20572. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20573. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20574. MSM_FRONTEND_DAI_LSM6, 1, 0, msm_routing_get_listen_mixer,
  20575. msm_routing_put_listen_mixer),
  20576. };
  20577. static const struct snd_kcontrol_new lsm7_mixer_controls[] = {
  20578. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20579. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20580. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20581. msm_routing_put_listen_mixer),
  20582. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20583. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20584. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20585. msm_routing_put_listen_mixer),
  20586. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20587. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20588. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20589. msm_routing_put_listen_mixer),
  20590. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20591. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20592. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20593. msm_routing_put_listen_mixer),
  20594. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20595. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20596. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20597. msm_routing_put_listen_mixer),
  20598. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20599. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20600. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20601. msm_routing_put_listen_mixer),
  20602. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20603. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20604. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20605. msm_routing_put_listen_mixer),
  20606. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20607. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20608. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20609. msm_routing_put_listen_mixer),
  20610. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20611. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20612. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20613. msm_routing_put_listen_mixer),
  20614. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20615. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20616. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20617. msm_routing_put_listen_mixer),
  20618. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20619. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20620. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20621. msm_routing_put_listen_mixer),
  20622. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20623. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20624. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20625. msm_routing_put_listen_mixer),
  20626. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20627. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20628. MSM_FRONTEND_DAI_LSM7, 1, 0, msm_routing_get_listen_mixer,
  20629. msm_routing_put_listen_mixer),
  20630. };
  20631. static const struct snd_kcontrol_new lsm8_mixer_controls[] = {
  20632. SOC_DOUBLE_EXT("SLIMBUS_0_TX", SND_SOC_NOPM,
  20633. MSM_BACKEND_DAI_SLIMBUS_0_TX,
  20634. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20635. msm_routing_put_listen_mixer),
  20636. SOC_DOUBLE_EXT("SLIMBUS_1_TX", SND_SOC_NOPM,
  20637. MSM_BACKEND_DAI_SLIMBUS_1_TX,
  20638. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20639. msm_routing_put_listen_mixer),
  20640. SOC_DOUBLE_EXT("SLIMBUS_3_TX", SND_SOC_NOPM,
  20641. MSM_BACKEND_DAI_SLIMBUS_3_TX,
  20642. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20643. msm_routing_put_listen_mixer),
  20644. SOC_DOUBLE_EXT("SLIMBUS_4_TX", SND_SOC_NOPM,
  20645. MSM_BACKEND_DAI_SLIMBUS_4_TX,
  20646. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20647. msm_routing_put_listen_mixer),
  20648. SOC_DOUBLE_EXT("SLIMBUS_5_TX", SND_SOC_NOPM,
  20649. MSM_BACKEND_DAI_SLIMBUS_5_TX,
  20650. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20651. msm_routing_put_listen_mixer),
  20652. SOC_DOUBLE_EXT("TERT_MI2S_TX", SND_SOC_NOPM,
  20653. MSM_BACKEND_DAI_TERTIARY_MI2S_TX,
  20654. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20655. msm_routing_put_listen_mixer),
  20656. SOC_DOUBLE_EXT("QUAT_MI2S_TX", SND_SOC_NOPM,
  20657. MSM_BACKEND_DAI_QUATERNARY_MI2S_TX,
  20658. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20659. msm_routing_put_listen_mixer),
  20660. SOC_DOUBLE_EXT("INT3_MI2S_TX", SND_SOC_NOPM,
  20661. MSM_BACKEND_DAI_INT3_MI2S_TX,
  20662. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20663. msm_routing_put_listen_mixer),
  20664. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_0", SND_SOC_NOPM,
  20665. MSM_BACKEND_DAI_VA_CDC_DMA_TX_0,
  20666. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20667. msm_routing_put_listen_mixer),
  20668. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_1", SND_SOC_NOPM,
  20669. MSM_BACKEND_DAI_VA_CDC_DMA_TX_1,
  20670. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20671. msm_routing_put_listen_mixer),
  20672. SOC_DOUBLE_EXT("VA_CDC_DMA_TX_2", SND_SOC_NOPM,
  20673. MSM_BACKEND_DAI_VA_CDC_DMA_TX_2,
  20674. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20675. msm_routing_put_listen_mixer),
  20676. SOC_DOUBLE_EXT("TX_CDC_DMA_TX_3", SND_SOC_NOPM,
  20677. MSM_BACKEND_DAI_TX_CDC_DMA_TX_3,
  20678. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20679. msm_routing_put_listen_mixer),
  20680. SOC_DOUBLE_EXT("QUIN_TDM_TX_0", SND_SOC_NOPM,
  20681. MSM_BACKEND_DAI_QUIN_TDM_TX_0,
  20682. MSM_FRONTEND_DAI_LSM8, 1, 0, msm_routing_get_listen_mixer,
  20683. msm_routing_put_listen_mixer),
  20684. };
  20685. static const struct snd_kcontrol_new slim_fm_switch_mixer_controls =
  20686. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20687. 0, 1, 0, msm_routing_get_switch_mixer,
  20688. msm_routing_put_switch_mixer);
  20689. static const struct snd_kcontrol_new slim1_fm_switch_mixer_controls =
  20690. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20691. 0, 1, 0, msm_routing_get_switch_mixer,
  20692. msm_routing_put_switch_mixer);
  20693. static const struct snd_kcontrol_new slim3_fm_switch_mixer_controls =
  20694. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20695. 0, 1, 0, msm_routing_get_switch_mixer,
  20696. msm_routing_put_switch_mixer);
  20697. static const struct snd_kcontrol_new slim4_fm_switch_mixer_controls =
  20698. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20699. 0, 1, 0, msm_routing_get_switch_mixer,
  20700. msm_routing_put_switch_mixer);
  20701. static const struct snd_kcontrol_new cdc_dma_wsa_switch_mixer_controls =
  20702. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20703. 0, 1, 0, msm_routing_get_switch_mixer,
  20704. msm_routing_put_switch_mixer);
  20705. static const struct snd_kcontrol_new cdc_dma_rx_switch_mixer_controls =
  20706. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20707. 0, 1, 0, msm_routing_get_switch_mixer,
  20708. msm_routing_put_switch_mixer);
  20709. static const struct snd_kcontrol_new slim6_fm_switch_mixer_controls =
  20710. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20711. 0, 1, 0, msm_routing_get_switch_mixer,
  20712. msm_routing_put_switch_mixer);
  20713. static const struct snd_kcontrol_new pcm_rx_switch_mixer_controls =
  20714. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20715. 0, 1, 0, msm_routing_get_fm_pcmrx_switch_mixer,
  20716. msm_routing_put_fm_pcmrx_switch_mixer);
  20717. static const struct snd_kcontrol_new int0_mi2s_rx_switch_mixer_controls =
  20718. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20719. 0, 1, 0, msm_routing_get_int0_mi2s_switch_mixer,
  20720. msm_routing_put_int0_mi2s_switch_mixer);
  20721. static const struct snd_kcontrol_new int4_mi2s_rx_switch_mixer_controls =
  20722. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20723. 0, 1, 0, msm_routing_get_int4_mi2s_switch_mixer,
  20724. msm_routing_put_int4_mi2s_switch_mixer);
  20725. static const struct snd_kcontrol_new pri_mi2s_rx_switch_mixer_controls =
  20726. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20727. 0, 1, 0, msm_routing_get_pri_mi2s_switch_mixer,
  20728. msm_routing_put_pri_mi2s_switch_mixer);
  20729. static const struct snd_kcontrol_new sec_mi2s_rx_switch_mixer_controls =
  20730. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20731. 0, 1, 0, msm_routing_get_sec_mi2s_switch_mixer,
  20732. msm_routing_put_sec_mi2s_switch_mixer);
  20733. static const struct snd_kcontrol_new tert_mi2s_rx_switch_mixer_controls =
  20734. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20735. 0, 1, 0, msm_routing_get_tert_mi2s_switch_mixer,
  20736. msm_routing_put_tert_mi2s_switch_mixer);
  20737. static const struct snd_kcontrol_new quat_mi2s_rx_switch_mixer_controls =
  20738. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20739. 0, 1, 0, msm_routing_get_quat_mi2s_switch_mixer,
  20740. msm_routing_put_quat_mi2s_switch_mixer);
  20741. static const struct snd_kcontrol_new quin_mi2s_rx_switch_mixer_controls =
  20742. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20743. 0, 1, 0, msm_routing_get_quin_mi2s_switch_mixer,
  20744. msm_routing_put_quin_mi2s_switch_mixer);
  20745. static const struct snd_kcontrol_new sen_mi2s_rx_switch_mixer_controls =
  20746. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20747. 0, 1, 0, msm_routing_get_sen_mi2s_switch_mixer,
  20748. msm_routing_put_sen_mi2s_switch_mixer);
  20749. static const struct snd_kcontrol_new hfp_pri_aux_switch_mixer_controls =
  20750. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20751. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20752. msm_routing_put_hfp_switch_mixer);
  20753. static const struct snd_kcontrol_new hfp_aux_switch_mixer_controls =
  20754. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20755. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20756. msm_routing_put_hfp_switch_mixer);
  20757. static const struct snd_kcontrol_new hfp_int_switch_mixer_controls =
  20758. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20759. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20760. msm_routing_put_hfp_switch_mixer);
  20761. static const struct snd_kcontrol_new hfp_slim7_switch_mixer_controls =
  20762. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20763. 0, 1, 0, msm_routing_get_hfp_switch_mixer,
  20764. msm_routing_put_hfp_switch_mixer);
  20765. static const struct snd_kcontrol_new usb_switch_mixer_controls =
  20766. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20767. 0, 1, 0, msm_routing_get_usb_switch_mixer,
  20768. msm_routing_put_usb_switch_mixer);
  20769. static const struct snd_kcontrol_new a2dp_slim7_switch_mixer_controls =
  20770. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20771. 0, 1, 0, msm_routing_a2dp_switch_mixer_get,
  20772. msm_routing_a2dp_switch_mixer_put);
  20773. static const struct snd_kcontrol_new sco_slim7_switch_mixer_controls =
  20774. SOC_SINGLE_EXT("Switch", SND_SOC_NOPM,
  20775. 0, 1, 0, msm_routing_sco_switch_mixer_get,
  20776. msm_routing_sco_switch_mixer_put);
  20777. static const struct soc_enum lsm_port_enum =
  20778. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_port_text), lsm_port_text);
  20779. static const char * const lsm_func_text[] = {
  20780. "None", "AUDIO", "BEACON", "ULTRASOUND", "SWAUDIO",
  20781. };
  20782. static const struct soc_enum lsm_func_enum =
  20783. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(lsm_func_text), lsm_func_text);
  20784. static const struct snd_kcontrol_new lsm_controls[] = {
  20785. /* kcontrol of lsm_function */
  20786. SOC_ENUM_EXT(SLIMBUS_0_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20787. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20788. SOC_ENUM_EXT(SLIMBUS_1_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20789. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20790. SOC_ENUM_EXT(SLIMBUS_2_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20791. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20792. SOC_ENUM_EXT(SLIMBUS_3_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20793. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20794. SOC_ENUM_EXT(SLIMBUS_4_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20795. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20796. SOC_ENUM_EXT(SLIMBUS_5_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20797. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20798. SOC_ENUM_EXT(TERT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20799. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20800. SOC_ENUM_EXT(QUAT_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20801. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20802. SOC_ENUM_EXT(INT3_MI2S_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20803. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20804. SOC_ENUM_EXT(TX_CDC_DMA_TX_3_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20805. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20806. SOC_ENUM_EXT(QUIN_TDM_TX_TEXT" "LSM_FUNCTION_TEXT, lsm_func_enum,
  20807. msm_routing_lsm_func_get, msm_routing_lsm_func_put),
  20808. /* kcontrol of lsm_port */
  20809. SOC_ENUM_EXT("LSM1 Port", lsm_port_enum,
  20810. msm_routing_lsm_port_get,
  20811. msm_routing_lsm_port_put),
  20812. SOC_ENUM_EXT("LSM2 Port", lsm_port_enum,
  20813. msm_routing_lsm_port_get,
  20814. msm_routing_lsm_port_put),
  20815. SOC_ENUM_EXT("LSM3 Port", lsm_port_enum,
  20816. msm_routing_lsm_port_get,
  20817. msm_routing_lsm_port_put),
  20818. SOC_ENUM_EXT("LSM4 Port", lsm_port_enum,
  20819. msm_routing_lsm_port_get,
  20820. msm_routing_lsm_port_put),
  20821. SOC_ENUM_EXT("LSM5 Port", lsm_port_enum,
  20822. msm_routing_lsm_port_get,
  20823. msm_routing_lsm_port_put),
  20824. SOC_ENUM_EXT("LSM6 Port", lsm_port_enum,
  20825. msm_routing_lsm_port_get,
  20826. msm_routing_lsm_port_put),
  20827. SOC_ENUM_EXT("LSM7 Port", lsm_port_enum,
  20828. msm_routing_lsm_port_get,
  20829. msm_routing_lsm_port_put),
  20830. SOC_ENUM_EXT("LSM8 Port", lsm_port_enum,
  20831. msm_routing_lsm_port_get,
  20832. msm_routing_lsm_port_put),
  20833. };
  20834. static const char * const aanc_slim_0_rx_text[] = {
  20835. "ZERO", "SLIMBUS_0_TX", "SLIMBUS_1_TX", "SLIMBUS_2_TX", "SLIMBUS_3_TX",
  20836. "SLIMBUS_4_TX", "SLIMBUS_5_TX", "SLIMBUS_6_TX"
  20837. };
  20838. static const struct soc_enum aanc_slim_0_rx_enum =
  20839. SOC_ENUM_SINGLE_EXT(ARRAY_SIZE(aanc_slim_0_rx_text),
  20840. aanc_slim_0_rx_text);
  20841. static const struct snd_kcontrol_new aanc_slim_0_rx_mux[] = {
  20842. SOC_ENUM_EXT("AANC_SLIM_0_RX MUX", aanc_slim_0_rx_enum,
  20843. msm_routing_slim_0_rx_aanc_mux_get,
  20844. msm_routing_slim_0_rx_aanc_mux_put)
  20845. };
  20846. static int msm_routing_aanc_noise_level_get(struct snd_kcontrol *kcontrol,
  20847. struct snd_ctl_elem_value *ucontrol)
  20848. {
  20849. ucontrol->value.integer.value[0] = aanc_level;
  20850. return 0;
  20851. }
  20852. static int msm_routing_aanc_noise_level_put(struct snd_kcontrol *kcontrol,
  20853. struct snd_ctl_elem_value *ucontrol)
  20854. {
  20855. int ret = 0;
  20856. mutex_lock(&routing_lock);
  20857. aanc_level = ucontrol->value.integer.value[0];
  20858. pr_debug("%s: value: %ld\n",
  20859. __func__, ucontrol->value.integer.value[0]);
  20860. ret = afe_set_aanc_noise_level(aanc_level);
  20861. mutex_unlock(&routing_lock);
  20862. return ret;
  20863. }
  20864. static const struct snd_kcontrol_new aanc_noise_level[] = {
  20865. SOC_SINGLE_EXT("AANC Noise Level", SND_SOC_NOPM, 0, 255,
  20866. 0, msm_routing_aanc_noise_level_get, msm_routing_aanc_noise_level_put)
  20867. };
  20868. static int msm_routing_get_stereo_to_custom_stereo_control(
  20869. struct snd_kcontrol *kcontrol,
  20870. struct snd_ctl_elem_value *ucontrol)
  20871. {
  20872. ucontrol->value.integer.value[0] = is_custom_stereo_on;
  20873. return 0;
  20874. }
  20875. static int msm_routing_put_stereo_to_custom_stereo_control(
  20876. struct snd_kcontrol *kcontrol,
  20877. struct snd_ctl_elem_value *ucontrol)
  20878. {
  20879. int flag = 0, i = 0, rc = 0, idx = 0;
  20880. int be_index = 0, port_id, topo_id;
  20881. unsigned int session_id = 0;
  20882. uint16_t op_FL_ip_FL_weight = 0;
  20883. uint16_t op_FL_ip_FR_weight = 0;
  20884. uint16_t op_FR_ip_FL_weight = 0;
  20885. uint16_t op_FR_ip_FR_weight = 0;
  20886. flag = ucontrol->value.integer.value[0];
  20887. pr_debug("%s E flag %d\n", __func__, flag);
  20888. if ((is_custom_stereo_on && flag) || (!is_custom_stereo_on && !flag)) {
  20889. pr_err("%s: is_custom_stereo_on %d, flag %d\n",
  20890. __func__, is_custom_stereo_on, flag);
  20891. return 0;
  20892. }
  20893. is_custom_stereo_on = flag ? true : false;
  20894. pr_debug("%s:is_custom_stereo_on %d\n", __func__, is_custom_stereo_on);
  20895. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  20896. port_id = msm_bedais[be_index].port_id;
  20897. if (!msm_bedais[be_index].active)
  20898. continue;
  20899. if ((port_id != SLIMBUS_0_RX) &&
  20900. (port_id != RT_PROXY_PORT_001_RX) &&
  20901. (port_id != AFE_PORT_ID_PRIMARY_MI2S_RX) &&
  20902. (port_id != AFE_PORT_ID_INT4_MI2S_RX))
  20903. continue;
  20904. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  20905. MSM_FRONTEND_DAI_MM_SIZE) {
  20906. if (fe_dai_map[i][SESSION_TYPE_RX].perf_mode !=
  20907. LEGACY_PCM_MODE)
  20908. goto skip_send_custom_stereo;
  20909. session_id =
  20910. fe_dai_map[i][SESSION_TYPE_RX].strm_id;
  20911. if (is_custom_stereo_on) {
  20912. op_FL_ip_FL_weight =
  20913. Q14_GAIN_ZERO_POINT_FIVE;
  20914. op_FL_ip_FR_weight =
  20915. Q14_GAIN_ZERO_POINT_FIVE;
  20916. op_FR_ip_FL_weight =
  20917. Q14_GAIN_ZERO_POINT_FIVE;
  20918. op_FR_ip_FR_weight =
  20919. Q14_GAIN_ZERO_POINT_FIVE;
  20920. } else {
  20921. op_FL_ip_FL_weight = Q14_GAIN_UNITY;
  20922. op_FL_ip_FR_weight = 0;
  20923. op_FR_ip_FL_weight = 0;
  20924. op_FR_ip_FR_weight = Q14_GAIN_UNITY;
  20925. }
  20926. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  20927. unsigned long copp =
  20928. session_copp_map[i]
  20929. [SESSION_TYPE_RX][be_index];
  20930. if (!test_bit(idx, &copp))
  20931. goto skip_send_custom_stereo;
  20932. topo_id = adm_get_topology_for_port_copp_idx(
  20933. msm_bedais[be_index].port_id, idx);
  20934. if (topo_id < 0)
  20935. pr_debug("%s:Err:custom stereo topo %d",
  20936. __func__, topo_id);
  20937. pr_debug("idx %d\n", idx);
  20938. if (topo_id == DS2_ADM_COPP_TOPOLOGY_ID)
  20939. rc = msm_ds2_dap_set_custom_stereo_onoff
  20940. (msm_bedais[be_index].port_id,
  20941. idx, is_custom_stereo_on);
  20942. else if (topo_id == DOLBY_ADM_COPP_TOPOLOGY_ID)
  20943. rc = dolby_dap_set_custom_stereo_onoff(
  20944. msm_bedais[be_index].port_id,
  20945. idx, is_custom_stereo_on);
  20946. else
  20947. rc = msm_qti_pp_send_stereo_to_custom_stereo_cmd
  20948. (msm_bedais[be_index].port_id,
  20949. idx, session_id,
  20950. op_FL_ip_FL_weight,
  20951. op_FL_ip_FR_weight,
  20952. op_FR_ip_FL_weight,
  20953. op_FR_ip_FR_weight);
  20954. if (rc < 0)
  20955. skip_send_custom_stereo:
  20956. pr_err("%s: err setting custom stereo\n",
  20957. __func__);
  20958. }
  20959. }
  20960. }
  20961. return 0;
  20962. }
  20963. static const struct snd_kcontrol_new stereo_to_custom_stereo_controls[] = {
  20964. SOC_SINGLE_EXT("Set Custom Stereo OnOff", SND_SOC_NOPM, 0,
  20965. 1, 0, msm_routing_get_stereo_to_custom_stereo_control,
  20966. msm_routing_put_stereo_to_custom_stereo_control),
  20967. };
  20968. static int msm_routing_get_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20969. struct snd_ctl_elem_value *ucontrol)
  20970. {
  20971. return 0;
  20972. }
  20973. static int msm_routing_put_app_type_cfg_control(struct snd_kcontrol *kcontrol,
  20974. struct snd_ctl_elem_value *ucontrol)
  20975. {
  20976. int i = 0, j;
  20977. int num_app_types = ucontrol->value.integer.value[i++];
  20978. pr_debug("%s\n", __func__);
  20979. memset(app_type_cfg, 0, MAX_APP_TYPES*
  20980. sizeof(struct msm_pcm_routing_app_type_data));
  20981. if (num_app_types > MAX_APP_TYPES) {
  20982. pr_err("%s: number of app types exceed the max supported\n",
  20983. __func__);
  20984. return -EINVAL;
  20985. }
  20986. for (j = 0; j < num_app_types; j++) {
  20987. app_type_cfg[j].app_type =
  20988. ucontrol->value.integer.value[i++];
  20989. app_type_cfg[j].sample_rate =
  20990. ucontrol->value.integer.value[i++];
  20991. app_type_cfg[j].bit_width =
  20992. ucontrol->value.integer.value[i++];
  20993. }
  20994. return 0;
  20995. }
  20996. static int msm_routing_put_app_type_gain_control(struct snd_kcontrol *kcontrol,
  20997. struct snd_ctl_elem_value *ucontrol)
  20998. {
  20999. int j, fe_id, be_id, port_type;
  21000. int ret = 0;
  21001. unsigned long copp;
  21002. struct msm_pcm_routing_bdai_data *bedai;
  21003. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21004. SESSION_TYPE_RX;
  21005. int app_type = ucontrol->value.integer.value[1];
  21006. int gain = (ucontrol->value.integer.value[2] +
  21007. ucontrol->value.integer.value[3])/2;
  21008. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21009. MSM_AFE_PORT_TYPE_TX;
  21010. mutex_lock(&routing_lock);
  21011. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21012. if (is_be_dai_extproc(be_id))
  21013. continue;
  21014. bedai = &msm_bedais[be_id];
  21015. if (afe_get_port_type(bedai->port_id) != port_type)
  21016. continue;
  21017. if (!bedai->active)
  21018. continue;
  21019. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21020. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21021. continue;
  21022. if (app_type !=
  21023. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21024. continue;
  21025. copp = session_copp_map[fe_id][dir][be_id];
  21026. for (j = 0; j < MAX_COPPS_PER_PORT; j++) {
  21027. if (!test_bit(j, &copp))
  21028. continue;
  21029. ret |= adm_set_volume(bedai->port_id, j, gain);
  21030. }
  21031. }
  21032. }
  21033. mutex_unlock(&routing_lock);
  21034. return ret ? -EINVAL : 0;
  21035. }
  21036. static const struct snd_kcontrol_new app_type_cfg_controls[] = {
  21037. SOC_SINGLE_MULTI_EXT("App Type Config", SND_SOC_NOPM, 0,
  21038. 0x7FFFFFFF, 0, 128, msm_routing_get_app_type_cfg_control,
  21039. msm_routing_put_app_type_cfg_control),
  21040. SOC_SINGLE_MULTI_EXT("App Type Gain", SND_SOC_NOPM, 0,
  21041. 0x2000, 0, 4, NULL, msm_routing_put_app_type_gain_control)
  21042. };
  21043. static int msm_routing_put_module_cfg_control(struct snd_kcontrol *kcontrol,
  21044. struct snd_ctl_elem_value *ucontrol)
  21045. {
  21046. int copp_idx, fe_id, be_id, port_type;
  21047. int ret = 0;
  21048. unsigned long copp;
  21049. struct msm_pcm_routing_bdai_data *bedai;
  21050. u8 *packed_params = NULL;
  21051. struct param_hdr_v3 param_hdr;
  21052. u32 packed_param_size = (sizeof(struct param_hdr_v3) +
  21053. sizeof(uint32_t));
  21054. int dir = ucontrol->value.integer.value[0] ? SESSION_TYPE_TX :
  21055. SESSION_TYPE_RX;
  21056. int app_type = ucontrol->value.integer.value[1];
  21057. int module_id = ucontrol->value.integer.value[2];
  21058. int instance_id = ucontrol->value.integer.value[3];
  21059. int param_id = ucontrol->value.integer.value[4];
  21060. int param_value = ucontrol->value.integer.value[5];
  21061. port_type = (dir == SESSION_TYPE_RX) ? MSM_AFE_PORT_TYPE_RX :
  21062. MSM_AFE_PORT_TYPE_TX;
  21063. pr_debug("%s app_type:%d mod_id:%d instance_id:%d param_id:%d value:%d\n",
  21064. __func__, app_type, module_id,
  21065. instance_id, param_id, param_value);
  21066. packed_params = kzalloc(packed_param_size, GFP_KERNEL);
  21067. if (!packed_params)
  21068. return -ENOMEM;
  21069. memset(&param_hdr, 0, sizeof(param_hdr));
  21070. param_hdr.module_id = module_id;
  21071. param_hdr.instance_id = instance_id;
  21072. param_hdr.param_id = param_id;
  21073. param_hdr.param_size = sizeof(uint32_t);
  21074. packed_param_size = 0;
  21075. mutex_lock(&routing_lock);
  21076. for (be_id = 0; be_id < MSM_BACKEND_DAI_MAX; be_id++) {
  21077. if (is_be_dai_extproc(be_id))
  21078. continue;
  21079. bedai = &msm_bedais[be_id];
  21080. if (afe_get_port_type(bedai->port_id) != port_type)
  21081. continue;
  21082. if (!bedai->active)
  21083. continue;
  21084. for (fe_id = 0; fe_id < MSM_FRONTEND_DAI_MAX; fe_id++) {
  21085. if (!test_bit(fe_id, &bedai->fe_sessions[0]))
  21086. continue;
  21087. if (app_type !=
  21088. fe_dai_app_type_cfg[fe_id][dir][be_id].app_type)
  21089. continue;
  21090. copp = session_copp_map[fe_id][dir][be_id];
  21091. for (copp_idx = 0; copp_idx < MAX_COPPS_PER_PORT;
  21092. copp_idx++) {
  21093. if (!test_bit(copp_idx, &copp))
  21094. continue;
  21095. ret = q6common_pack_pp_params(packed_params,
  21096. &param_hdr,
  21097. (u8 *) &param_value,
  21098. &packed_param_size);
  21099. if (ret) {
  21100. pr_err("%s: Failed to pack params, error %d\n",
  21101. __func__, ret);
  21102. goto done;
  21103. }
  21104. ret = adm_set_pp_params(bedai->port_id,
  21105. copp_idx, NULL,
  21106. packed_params,
  21107. packed_param_size);
  21108. if (ret) {
  21109. pr_err("%s: Setting param failed with err=%d\n",
  21110. __func__, ret);
  21111. ret = -EINVAL;
  21112. goto done;
  21113. }
  21114. }
  21115. }
  21116. }
  21117. done:
  21118. mutex_unlock(&routing_lock);
  21119. kfree(packed_params);
  21120. return ret;
  21121. }
  21122. static const struct snd_kcontrol_new module_cfg_controls[] = {
  21123. SOC_SINGLE_MULTI_EXT("Audio Effect", SND_SOC_NOPM, 0,
  21124. 0x2000, 0, 6, NULL, msm_routing_put_module_cfg_control)
  21125. };
  21126. static int msm_routing_get_lsm_app_type_cfg_control(
  21127. struct snd_kcontrol *kcontrol,
  21128. struct snd_ctl_elem_value *ucontrol)
  21129. {
  21130. int shift = ((struct soc_multi_mixer_control *)
  21131. kcontrol->private_value)->shift;
  21132. int i = 0, j = 0;
  21133. ucontrol->value.integer.value[i] = num_app_cfg_types;
  21134. for (j = 0; j < num_app_cfg_types; ++j) {
  21135. ucontrol->value.integer.value[++i] =
  21136. lsm_app_type_cfg[j].app_type;
  21137. ucontrol->value.integer.value[++i] =
  21138. lsm_app_type_cfg[j].sample_rate;
  21139. ucontrol->value.integer.value[++i] =
  21140. lsm_app_type_cfg[j].bit_width;
  21141. if (shift == 1)
  21142. ucontrol->value.integer.value[++i] =
  21143. lsm_app_type_cfg[j].num_out_channels;
  21144. }
  21145. return 0;
  21146. }
  21147. static int msm_routing_put_lsm_app_type_cfg_control(
  21148. struct snd_kcontrol *kcontrol,
  21149. struct snd_ctl_elem_value *ucontrol)
  21150. {
  21151. int shift = ((struct soc_multi_mixer_control *)
  21152. kcontrol->private_value)->shift;
  21153. int i = 0, j;
  21154. if (ucontrol->value.integer.value[0] > MAX_APP_TYPES) {
  21155. pr_err("%s: number of app types exceed the max supported\n",
  21156. __func__);
  21157. return -EINVAL;
  21158. }
  21159. num_app_cfg_types = ucontrol->value.integer.value[i++];
  21160. memset(lsm_app_type_cfg, 0, MAX_APP_TYPES*
  21161. sizeof(struct msm_pcm_routing_app_type_data));
  21162. for (j = 0; j < num_app_cfg_types; j++) {
  21163. lsm_app_type_cfg[j].app_type =
  21164. ucontrol->value.integer.value[i++];
  21165. lsm_app_type_cfg[j].sample_rate =
  21166. ucontrol->value.integer.value[i++];
  21167. lsm_app_type_cfg[j].bit_width =
  21168. ucontrol->value.integer.value[i++];
  21169. /* Shift of 1 indicates this is V2 mixer control */
  21170. if (shift == 1)
  21171. lsm_app_type_cfg[j].num_out_channels =
  21172. ucontrol->value.integer.value[i++];
  21173. }
  21174. return 0;
  21175. }
  21176. static const struct snd_kcontrol_new lsm_app_type_cfg_controls[] = {
  21177. SOC_SINGLE_MULTI_EXT("Listen App Type Config", SND_SOC_NOPM, 0,
  21178. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21179. msm_routing_put_lsm_app_type_cfg_control),
  21180. SOC_SINGLE_MULTI_EXT("Listen App Type Config V2", SND_SOC_NOPM, 1,
  21181. 0xFFFFFFFF, 0, 128, msm_routing_get_lsm_app_type_cfg_control,
  21182. msm_routing_put_lsm_app_type_cfg_control),
  21183. };
  21184. static int msm_routing_get_use_ds1_or_ds2_control(
  21185. struct snd_kcontrol *kcontrol,
  21186. struct snd_ctl_elem_value *ucontrol)
  21187. {
  21188. ucontrol->value.integer.value[0] = is_ds2_on;
  21189. return 0;
  21190. }
  21191. static int msm_routing_put_use_ds1_or_ds2_control(
  21192. struct snd_kcontrol *kcontrol,
  21193. struct snd_ctl_elem_value *ucontrol)
  21194. {
  21195. is_ds2_on = ucontrol->value.integer.value[0];
  21196. return 0;
  21197. }
  21198. static const struct snd_kcontrol_new use_ds1_or_ds2_controls[] = {
  21199. SOC_SINGLE_EXT("DS2 OnOff", SND_SOC_NOPM, 0,
  21200. 1, 0, msm_routing_get_use_ds1_or_ds2_control,
  21201. msm_routing_put_use_ds1_or_ds2_control),
  21202. };
  21203. static int msm_routing_get_hifi_filter_control(
  21204. struct snd_kcontrol *kcontrol,
  21205. struct snd_ctl_elem_value *ucontrol)
  21206. {
  21207. ucontrol->value.integer.value[0] = hifi_filter_enabled;
  21208. return 0;
  21209. }
  21210. static int msm_routing_put_hifi_filter_control(
  21211. struct snd_kcontrol *kcontrol,
  21212. struct snd_ctl_elem_value *ucontrol)
  21213. {
  21214. hifi_filter_enabled = ucontrol->value.integer.value[0];
  21215. return 0;
  21216. }
  21217. static const struct snd_kcontrol_new hifi_filter_controls[] = {
  21218. SOC_SINGLE_EXT("HiFi Filter", SND_SOC_NOPM, 0,
  21219. 1, 0, msm_routing_get_hifi_filter_control,
  21220. msm_routing_put_hifi_filter_control),
  21221. };
  21222. int msm_routing_get_rms_value_control(struct snd_kcontrol *kcontrol,
  21223. struct snd_ctl_elem_value *ucontrol) {
  21224. int rc = 0;
  21225. int be_idx = 0;
  21226. char *param_value;
  21227. int *update_param_value;
  21228. uint32_t param_size = (RMS_PAYLOAD_LEN + 1) * sizeof(uint32_t);
  21229. struct param_hdr_v3 param_hdr;
  21230. param_value = kzalloc(param_size, GFP_KERNEL);
  21231. if (!param_value)
  21232. return -ENOMEM;
  21233. memset(&param_hdr, 0, sizeof(param_hdr));
  21234. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++)
  21235. if (msm_bedais[be_idx].port_id == SLIMBUS_0_TX)
  21236. break;
  21237. if ((be_idx < MSM_BACKEND_DAI_MAX) && msm_bedais[be_idx].active) {
  21238. param_hdr.module_id = RMS_MODULEID_APPI_PASSTHRU;
  21239. param_hdr.instance_id = INSTANCE_ID_0;
  21240. param_hdr.param_id = RMS_PARAM_FIRST_SAMPLE;
  21241. param_hdr.param_size = param_size;
  21242. rc = adm_get_pp_params(SLIMBUS_0_TX, 0, ADM_CLIENT_ID_DEFAULT,
  21243. NULL, &param_hdr, (u8 *) param_value);
  21244. if (rc) {
  21245. pr_err("%s: get parameters failed:%d\n", __func__, rc);
  21246. kfree(param_value);
  21247. return -EINVAL;
  21248. }
  21249. update_param_value = (int *)param_value;
  21250. ucontrol->value.integer.value[0] = update_param_value[0];
  21251. pr_debug("%s: FROM DSP value[0] 0x%x\n",
  21252. __func__, update_param_value[0]);
  21253. }
  21254. kfree(param_value);
  21255. return 0;
  21256. }
  21257. static int msm_voc_session_id_put(struct snd_kcontrol *kcontrol,
  21258. struct snd_ctl_elem_value *ucontrol)
  21259. {
  21260. voc_session_id = ucontrol->value.integer.value[0];
  21261. pr_debug("%s: voc_session_id=%u\n", __func__, voc_session_id);
  21262. return 0;
  21263. }
  21264. static int msm_voc_session_id_get(struct snd_kcontrol *kcontrol,
  21265. struct snd_ctl_elem_value *ucontrol)
  21266. {
  21267. ucontrol->value.integer.value[0] = voc_session_id;
  21268. return 0;
  21269. }
  21270. static struct snd_kcontrol_new msm_voc_session_controls[] = {
  21271. SOC_SINGLE_MULTI_EXT("Voc VSID", SND_SOC_NOPM, 0,
  21272. 0xFFFFFFFF, 0, 1, msm_voc_session_id_get,
  21273. msm_voc_session_id_put),
  21274. };
  21275. static int msm_sound_focus_info(struct snd_kcontrol *kcontrol,
  21276. struct snd_ctl_elem_info *uinfo)
  21277. {
  21278. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21279. uinfo->count = sizeof(struct sound_focus_param);
  21280. return 0;
  21281. }
  21282. static int msm_voice_sound_focus_put(struct snd_kcontrol *kcontrol,
  21283. struct snd_ctl_elem_value *ucontrol)
  21284. {
  21285. int ret = 0;
  21286. struct sound_focus_param soundFocusData;
  21287. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21288. sizeof(struct sound_focus_param));
  21289. ret = voc_set_sound_focus(soundFocusData);
  21290. if (ret) {
  21291. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21292. __func__, ret);
  21293. ret = -EINVAL;
  21294. }
  21295. return ret;
  21296. }
  21297. static int msm_voice_sound_focus_get(struct snd_kcontrol *kcontrol,
  21298. struct snd_ctl_elem_value *ucontrol)
  21299. {
  21300. int ret = 0;
  21301. struct sound_focus_param soundFocusData;
  21302. memset(&soundFocusData, 0, sizeof(struct sound_focus_param));
  21303. ret = voc_get_sound_focus(&soundFocusData);
  21304. if (ret) {
  21305. pr_debug("%s: Error getting Sound Focus Params, err=%d\n",
  21306. __func__, ret);
  21307. ret = -EINVAL;
  21308. goto done;
  21309. }
  21310. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21311. sizeof(struct sound_focus_param));
  21312. done:
  21313. return ret;
  21314. }
  21315. static int msm_source_tracking_info(struct snd_kcontrol *kcontrol,
  21316. struct snd_ctl_elem_info *uinfo)
  21317. {
  21318. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21319. uinfo->count = sizeof(struct source_tracking_param);
  21320. return 0;
  21321. }
  21322. static int msm_voice_source_tracking_get(struct snd_kcontrol *kcontrol,
  21323. struct snd_ctl_elem_value *ucontrol)
  21324. {
  21325. int ret = 0;
  21326. struct source_tracking_param sourceTrackingData;
  21327. memset(&sourceTrackingData, 0, sizeof(struct source_tracking_param));
  21328. ret = voc_get_source_tracking(&sourceTrackingData);
  21329. if (ret) {
  21330. pr_debug("%s: Error getting Source Tracking Params, err=%d\n",
  21331. __func__, ret);
  21332. ret = -EINVAL;
  21333. goto done;
  21334. }
  21335. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21336. sizeof(struct source_tracking_param));
  21337. done:
  21338. return ret;
  21339. }
  21340. static int msm_audio_get_copp_idx_from_port_id(int port_id, int session_type,
  21341. int *copp_idx)
  21342. {
  21343. int i, idx, be_idx;
  21344. int ret = 0;
  21345. unsigned long copp;
  21346. pr_debug("%s: Enter, port_id=%d\n", __func__, port_id);
  21347. ret = q6audio_validate_port(port_id);
  21348. if (ret < 0) {
  21349. pr_err("%s: port validation failed id 0x%x ret %d\n",
  21350. __func__, port_id, ret);
  21351. ret = -EINVAL;
  21352. goto done;
  21353. }
  21354. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  21355. if (msm_bedais[be_idx].port_id == port_id)
  21356. break;
  21357. }
  21358. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  21359. pr_err("%s: Invalid be id %d\n", __func__, be_idx);
  21360. ret = -EINVAL;
  21361. goto done;
  21362. }
  21363. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  21364. MSM_FRONTEND_DAI_MAX) {
  21365. if (!(is_mm_lsm_fe_id(i) &&
  21366. route_check_fe_id_adm_support(i)))
  21367. continue;
  21368. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  21369. copp = session_copp_map[i]
  21370. [session_type][be_idx];
  21371. if (test_bit(idx, &copp))
  21372. break;
  21373. }
  21374. if (idx >= MAX_COPPS_PER_PORT)
  21375. continue;
  21376. else
  21377. break;
  21378. }
  21379. if (i >= MSM_FRONTEND_DAI_MAX) {
  21380. pr_debug("%s: Invalid FE, exiting\n", __func__);
  21381. ret = -EINVAL;
  21382. goto done;
  21383. }
  21384. *copp_idx = idx;
  21385. pr_debug("%s: copp_idx=%d\n", __func__, *copp_idx);
  21386. done:
  21387. return ret;
  21388. }
  21389. static int msm_audio_sound_focus_derive_port_id(struct snd_kcontrol *kcontrol,
  21390. const char *prefix, int *port_id)
  21391. {
  21392. int ret = 0;
  21393. pr_debug("%s: Enter, prefix:%s\n", __func__, prefix);
  21394. /*
  21395. * Mixer control name will be like "Sound Focus Audio Tx SLIMBUS_0"
  21396. * where the prefix is "Sound Focus Audio Tx ". Skip the prefix
  21397. * and compare the string with the backend name to derive the port id.
  21398. */
  21399. if (!strcmp(kcontrol->id.name + strlen(prefix),
  21400. "SLIMBUS_0")) {
  21401. *port_id = SLIMBUS_0_TX;
  21402. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21403. "TERT_MI2S")) {
  21404. *port_id = AFE_PORT_ID_TERTIARY_MI2S_TX;
  21405. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21406. "INT3_MI2S")) {
  21407. *port_id = AFE_PORT_ID_INT3_MI2S_TX;
  21408. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21409. "VA_CDC_DMA_TX_0")) {
  21410. *port_id = AFE_PORT_ID_VA_CODEC_DMA_TX_0;
  21411. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21412. "TX_CDC_DMA_TX_3")) {
  21413. *port_id = AFE_PORT_ID_TX_CODEC_DMA_TX_3;
  21414. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21415. "QUIN_TDM_TX_0")) {
  21416. *port_id = AFE_PORT_ID_QUINARY_TDM_TX;
  21417. } else if (!strcmp(kcontrol->id.name + strlen(prefix),
  21418. "PRIMARY_TDM")) {
  21419. *port_id = AFE_PORT_ID_PRIMARY_TDM_TX;
  21420. } else {
  21421. pr_err("%s: mixer ctl name=%s, could not derive valid port id\n",
  21422. __func__, kcontrol->id.name);
  21423. ret = -EINVAL;
  21424. goto done;
  21425. }
  21426. pr_debug("%s: mixer ctl name=%s, derived port_id=%d\n",
  21427. __func__, kcontrol->id.name, *port_id);
  21428. done:
  21429. return ret;
  21430. }
  21431. static int msm_audio_sound_focus_put(struct snd_kcontrol *kcontrol,
  21432. struct snd_ctl_elem_value *ucontrol)
  21433. {
  21434. int ret = 0;
  21435. struct sound_focus_param soundFocusData;
  21436. int port_id, copp_idx;
  21437. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21438. "Sound Focus Audio Tx ", &port_id);
  21439. if (ret != 0) {
  21440. pr_err("%s: Error in deriving port id, err=%d\n",
  21441. __func__, ret);
  21442. ret = -EINVAL;
  21443. goto done;
  21444. }
  21445. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21446. &copp_idx);
  21447. if (ret) {
  21448. pr_err("%s: Could not get copp idx for port_id=%d\n",
  21449. __func__, port_id);
  21450. ret = -EINVAL;
  21451. goto done;
  21452. }
  21453. memcpy((void *)&soundFocusData, ucontrol->value.bytes.data,
  21454. sizeof(struct sound_focus_param));
  21455. ret = adm_set_sound_focus(port_id, copp_idx, soundFocusData);
  21456. if (ret) {
  21457. pr_err("%s: Error setting Sound Focus Params, err=%d\n",
  21458. __func__, ret);
  21459. ret = -EINVAL;
  21460. goto done;
  21461. }
  21462. done:
  21463. return ret;
  21464. }
  21465. static int msm_audio_sound_focus_get(struct snd_kcontrol *kcontrol,
  21466. struct snd_ctl_elem_value *ucontrol)
  21467. {
  21468. int ret = 0;
  21469. struct sound_focus_param soundFocusData;
  21470. int port_id, copp_idx;
  21471. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21472. "Sound Focus Audio Tx ", &port_id);
  21473. if (ret) {
  21474. pr_err("%s: Error in deriving port id, err=%d\n",
  21475. __func__, ret);
  21476. ret = -EINVAL;
  21477. goto done;
  21478. }
  21479. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21480. &copp_idx);
  21481. if (ret) {
  21482. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21483. __func__, port_id);
  21484. ret = -EINVAL;
  21485. goto done;
  21486. }
  21487. ret = adm_get_sound_focus(port_id, copp_idx, &soundFocusData);
  21488. if (ret) {
  21489. pr_err("%s: Error getting Sound Focus Params, err=%d\n",
  21490. __func__, ret);
  21491. ret = -EINVAL;
  21492. goto done;
  21493. }
  21494. memcpy(ucontrol->value.bytes.data, (void *)&soundFocusData,
  21495. sizeof(struct sound_focus_param));
  21496. done:
  21497. return ret;
  21498. }
  21499. static int msm_audio_source_tracking_get(struct snd_kcontrol *kcontrol,
  21500. struct snd_ctl_elem_value *ucontrol)
  21501. {
  21502. int ret = 0;
  21503. struct source_tracking_param sourceTrackingData;
  21504. int port_id, copp_idx;
  21505. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21506. "Source Tracking Audio Tx ", &port_id);
  21507. if (ret) {
  21508. pr_err("%s: Error in deriving port id, err=%d\n",
  21509. __func__, ret);
  21510. ret = -EINVAL;
  21511. goto done;
  21512. }
  21513. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21514. &copp_idx);
  21515. if (ret) {
  21516. pr_debug("%s: Could not get copp idx for port_id=%d\n",
  21517. __func__, port_id);
  21518. ret = -EINVAL;
  21519. goto done;
  21520. }
  21521. ret = adm_get_source_tracking(port_id, copp_idx, &sourceTrackingData);
  21522. if (ret) {
  21523. pr_err("%s: Error getting Source Tracking Params, err=%d\n",
  21524. __func__, ret);
  21525. ret = -EINVAL;
  21526. goto done;
  21527. }
  21528. memcpy(ucontrol->value.bytes.data, (void *)&sourceTrackingData,
  21529. sizeof(struct source_tracking_param));
  21530. done:
  21531. return ret;
  21532. }
  21533. static int msm_doa_tracking_mon_info(struct snd_kcontrol *kcontrol,
  21534. struct snd_ctl_elem_info *uinfo)
  21535. {
  21536. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  21537. uinfo->count = sizeof(struct doa_tracking_mon_param);
  21538. return 0;
  21539. }
  21540. static int msm_doa_tracking_mon_get(struct snd_kcontrol *kcontrol,
  21541. struct snd_ctl_elem_value *ucontrol)
  21542. {
  21543. int ret = 0;
  21544. struct doa_tracking_mon_param doa_tracking_data;
  21545. int port_id, copp_idx;
  21546. memset(&doa_tracking_data, 0, sizeof(struct doa_tracking_mon_param));
  21547. ret = msm_audio_sound_focus_derive_port_id(kcontrol,
  21548. "Doa Tracking Monitor Listen ", &port_id);
  21549. if (ret) {
  21550. pr_err("%s: Error in deriving port id, err=%d\n",
  21551. __func__, ret);
  21552. ret = -EINVAL;
  21553. goto done;
  21554. }
  21555. /*
  21556. * If copp id exists for given port id, query adm to get doa data.
  21557. * Else query afe for doa tracking params.
  21558. * This is to support in cases where LSM directly connects to
  21559. * AFE for FFNS.
  21560. */
  21561. ret = msm_audio_get_copp_idx_from_port_id(port_id, SESSION_TYPE_TX,
  21562. &copp_idx);
  21563. if (!ret)
  21564. ret = adm_get_doa_tracking_mon(port_id, copp_idx,
  21565. &doa_tracking_data);
  21566. else
  21567. ret = afe_get_doa_tracking_mon(port_id, &doa_tracking_data);
  21568. if (ret) {
  21569. pr_err("%s: Error getting Doa Tracking Params, err=%d\n",
  21570. __func__, ret);
  21571. ret = -EINVAL;
  21572. goto done;
  21573. }
  21574. memcpy(ucontrol->value.bytes.data, (void *)&doa_tracking_data,
  21575. sizeof(struct doa_tracking_mon_param));
  21576. done:
  21577. return ret;
  21578. }
  21579. static const struct snd_kcontrol_new msm_source_tracking_controls[] = {
  21580. {
  21581. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21582. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21583. .name = "Sound Focus Voice Tx SLIMBUS_0",
  21584. .info = msm_sound_focus_info,
  21585. .get = msm_voice_sound_focus_get,
  21586. .put = msm_voice_sound_focus_put,
  21587. },
  21588. {
  21589. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21590. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21591. .name = "Source Tracking Voice Tx SLIMBUS_0",
  21592. .info = msm_source_tracking_info,
  21593. .get = msm_voice_source_tracking_get,
  21594. },
  21595. {
  21596. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21597. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21598. .name = "Sound Focus Audio Tx SLIMBUS_0",
  21599. .info = msm_sound_focus_info,
  21600. .get = msm_audio_sound_focus_get,
  21601. .put = msm_audio_sound_focus_put,
  21602. },
  21603. {
  21604. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21605. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21606. .name = "Source Tracking Audio Tx SLIMBUS_0",
  21607. .info = msm_source_tracking_info,
  21608. .get = msm_audio_source_tracking_get,
  21609. },
  21610. {
  21611. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21612. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21613. .name = "Sound Focus Voice Tx TERT_MI2S",
  21614. .info = msm_sound_focus_info,
  21615. .get = msm_voice_sound_focus_get,
  21616. .put = msm_voice_sound_focus_put,
  21617. },
  21618. {
  21619. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21620. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21621. .name = "Source Tracking Voice Tx TERT_MI2S",
  21622. .info = msm_source_tracking_info,
  21623. .get = msm_voice_source_tracking_get,
  21624. },
  21625. {
  21626. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21627. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21628. .name = "Sound Focus Audio Tx TERT_MI2S",
  21629. .info = msm_sound_focus_info,
  21630. .get = msm_audio_sound_focus_get,
  21631. .put = msm_audio_sound_focus_put,
  21632. },
  21633. {
  21634. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21635. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21636. .name = "Source Tracking Audio Tx TERT_MI2S",
  21637. .info = msm_source_tracking_info,
  21638. .get = msm_audio_source_tracking_get,
  21639. },
  21640. {
  21641. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21642. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21643. .name = "Sound Focus Voice Tx INT3_MI2S",
  21644. .info = msm_sound_focus_info,
  21645. .get = msm_voice_sound_focus_get,
  21646. .put = msm_voice_sound_focus_put,
  21647. },
  21648. {
  21649. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21650. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21651. .name = "Source Tracking Voice Tx INT3_MI2S",
  21652. .info = msm_source_tracking_info,
  21653. .get = msm_voice_source_tracking_get,
  21654. },
  21655. {
  21656. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21657. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21658. .name = "Sound Focus Audio Tx INT3_MI2S",
  21659. .info = msm_sound_focus_info,
  21660. .get = msm_audio_sound_focus_get,
  21661. .put = msm_audio_sound_focus_put,
  21662. },
  21663. {
  21664. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21665. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21666. .name = "Source Tracking Audio Tx INT3_MI2S",
  21667. .info = msm_source_tracking_info,
  21668. .get = msm_audio_source_tracking_get,
  21669. },
  21670. {
  21671. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21672. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21673. .name = "Sound Focus Voice Tx VA_CDC_DMA_TX_0",
  21674. .info = msm_sound_focus_info,
  21675. .get = msm_voice_sound_focus_get,
  21676. .put = msm_voice_sound_focus_put,
  21677. },
  21678. {
  21679. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21680. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21681. .name = "Source Tracking Voice Tx VA_CDC_DMA_TX_0",
  21682. .info = msm_source_tracking_info,
  21683. .get = msm_voice_source_tracking_get,
  21684. },
  21685. {
  21686. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21687. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21688. .name = "Sound Focus Audio Tx VA_CDC_DMA_TX_0",
  21689. .info = msm_sound_focus_info,
  21690. .get = msm_audio_sound_focus_get,
  21691. .put = msm_audio_sound_focus_put,
  21692. },
  21693. {
  21694. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21695. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21696. .name = "Source Tracking Audio Tx VA_CDC_DMA_TX_0",
  21697. .info = msm_source_tracking_info,
  21698. .get = msm_audio_source_tracking_get,
  21699. },
  21700. {
  21701. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21702. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21703. .name = "Sound Focus Voice Tx TX_CDC_DMA_TX_3",
  21704. .info = msm_sound_focus_info,
  21705. .get = msm_voice_sound_focus_get,
  21706. .put = msm_voice_sound_focus_put,
  21707. },
  21708. {
  21709. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21710. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21711. .name = "Source Tracking Voice Tx TX_CDC_DMA_TX_3",
  21712. .info = msm_source_tracking_info,
  21713. .get = msm_voice_source_tracking_get,
  21714. },
  21715. {
  21716. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21717. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21718. .name = "Sound Focus Audio Tx TX_CDC_DMA_TX_3",
  21719. .info = msm_sound_focus_info,
  21720. .get = msm_audio_sound_focus_get,
  21721. .put = msm_audio_sound_focus_put,
  21722. },
  21723. {
  21724. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21725. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21726. .name = "Source Tracking Audio Tx TX_CDC_DMA_TX_3",
  21727. .info = msm_source_tracking_info,
  21728. .get = msm_audio_source_tracking_get,
  21729. },
  21730. {
  21731. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21732. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21733. .name = "Sound Focus Voice Tx QUIN_TDM_TX_0",
  21734. .info = msm_sound_focus_info,
  21735. .get = msm_voice_sound_focus_get,
  21736. .put = msm_voice_sound_focus_put,
  21737. },
  21738. {
  21739. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21740. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21741. .name = "Source Tracking Voice Tx QUIN_TDM_TX_0",
  21742. .info = msm_source_tracking_info,
  21743. .get = msm_voice_source_tracking_get,
  21744. },
  21745. {
  21746. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21747. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21748. .name = "Sound Focus Audio Tx QUIN_TDM_TX_0",
  21749. .info = msm_sound_focus_info,
  21750. .get = msm_audio_sound_focus_get,
  21751. .put = msm_audio_sound_focus_put,
  21752. },
  21753. {
  21754. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21755. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21756. .name = "Source Tracking Audio Tx QUIN_TDM_TX_0",
  21757. .info = msm_source_tracking_info,
  21758. .get = msm_audio_source_tracking_get,
  21759. },
  21760. {
  21761. .access = SNDRV_CTL_ELEM_ACCESS_READWRITE,
  21762. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21763. .name = "Sound Focus Audio Tx PRIMARY_TDM",
  21764. .info = msm_sound_focus_info,
  21765. .get = msm_audio_sound_focus_get,
  21766. .put = msm_audio_sound_focus_put,
  21767. },
  21768. {
  21769. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21770. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21771. .name = "Source Tracking Audio Tx PRIMARY_TDM",
  21772. .info = msm_source_tracking_info,
  21773. .get = msm_audio_source_tracking_get,
  21774. },
  21775. {
  21776. .access = SNDRV_CTL_ELEM_ACCESS_READ,
  21777. .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
  21778. .name = "Doa Tracking Monitor Listen VA_CDC_DMA_TX_0",
  21779. .info = msm_doa_tracking_mon_info,
  21780. .get = msm_doa_tracking_mon_get,
  21781. },
  21782. };
  21783. static int spkr_prot_put_vi_lch_port(struct snd_kcontrol *kcontrol,
  21784. struct snd_ctl_elem_value *ucontrol)
  21785. {
  21786. int ret = 0;
  21787. int item;
  21788. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21789. pr_debug("%s item is %d\n", __func__,
  21790. ucontrol->value.enumerated.item[0]);
  21791. mutex_lock(&routing_lock);
  21792. item = ucontrol->value.enumerated.item[0];
  21793. if (item < e->items) {
  21794. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21795. __func__, e->shift_l, e->values[item]);
  21796. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21797. e->values[item] < MSM_BACKEND_DAI_MAX)
  21798. /* Enable feedback TX path */
  21799. ret = afe_spk_prot_feed_back_cfg(
  21800. msm_bedais[e->values[item]].port_id,
  21801. msm_bedais[e->shift_l].port_id, 1, 0, 1);
  21802. else {
  21803. pr_debug("%s values are out of range item %d\n",
  21804. __func__, e->values[item]);
  21805. /* Disable feedback TX path */
  21806. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21807. ret = afe_spk_prot_feed_back_cfg(0, 0, 0, 0, 0);
  21808. else
  21809. ret = -EINVAL;
  21810. }
  21811. } else {
  21812. pr_err("%s item value is out of range item\n", __func__);
  21813. ret = -EINVAL;
  21814. }
  21815. mutex_unlock(&routing_lock);
  21816. return ret;
  21817. }
  21818. static int spkr_prot_put_vi_rch_port(struct snd_kcontrol *kcontrol,
  21819. struct snd_ctl_elem_value *ucontrol)
  21820. {
  21821. int ret = 0;
  21822. int item;
  21823. struct soc_enum *e = (struct soc_enum *)kcontrol->private_value;
  21824. pr_debug("%s item is %d\n", __func__,
  21825. ucontrol->value.enumerated.item[0]);
  21826. mutex_lock(&routing_lock);
  21827. item = ucontrol->value.enumerated.item[0];
  21828. if (item < e->items) {
  21829. pr_debug("%s RX DAI ID %d TX DAI id %d\n",
  21830. __func__, e->shift_l, e->values[item]);
  21831. if (e->shift_l < MSM_BACKEND_DAI_MAX &&
  21832. e->values[item] < MSM_BACKEND_DAI_MAX)
  21833. /* Enable feedback TX path */
  21834. ret = afe_spk_prot_feed_back_cfg(
  21835. msm_bedais[e->values[item]].port_id,
  21836. msm_bedais[e->shift_l].port_id,
  21837. 1, 1, 1);
  21838. else {
  21839. pr_debug("%s values are out of range item %d\n",
  21840. __func__, e->values[item]);
  21841. /* Disable feedback TX path */
  21842. if (e->values[item] == MSM_BACKEND_DAI_MAX)
  21843. ret = afe_spk_prot_feed_back_cfg(0,
  21844. 0, 0, 0, 0);
  21845. else
  21846. ret = -EINVAL;
  21847. }
  21848. } else {
  21849. pr_err("%s item value is out of range item\n", __func__);
  21850. ret = -EINVAL;
  21851. }
  21852. mutex_unlock(&routing_lock);
  21853. return ret;
  21854. }
  21855. static int spkr_prot_get_vi_lch_port(struct snd_kcontrol *kcontrol,
  21856. struct snd_ctl_elem_value *ucontrol)
  21857. {
  21858. pr_debug("%s\n", __func__);
  21859. return 0;
  21860. }
  21861. static int spkr_prot_get_vi_rch_port(struct snd_kcontrol *kcontrol,
  21862. struct snd_ctl_elem_value *ucontrol)
  21863. {
  21864. pr_debug("%s\n", __func__);
  21865. ucontrol->value.enumerated.item[0] = 0;
  21866. return 0;
  21867. }
  21868. static const char * const slim0_rx_vi_fb_tx_lch_mux_text[] = {
  21869. "ZERO", "SLIM4_TX"
  21870. };
  21871. static const char * const slim0_rx_vi_fb_tx_rch_mux_text[] = {
  21872. "ZERO", "SLIM4_TX"
  21873. };
  21874. static const char * const wsa_rx_0_vi_fb_tx_lch_mux_text[] = {
  21875. "ZERO", "WSA_CDC_DMA_TX_0"
  21876. };
  21877. static const char * const wsa_rx_0_vi_fb_tx_rch_mux_text[] = {
  21878. "ZERO", "WSA_CDC_DMA_TX_0"
  21879. };
  21880. static const char * const mi2s_rx_vi_fb_tx_mux_text[] = {
  21881. "ZERO", "SENARY_TX"
  21882. };
  21883. static const char * const int4_mi2s_rx_vi_fb_tx_mono_mux_text[] = {
  21884. "ZERO", "INT5_MI2S_TX"
  21885. };
  21886. static const char * const int4_mi2s_rx_vi_fb_tx_stereo_mux_text[] = {
  21887. "ZERO", "INT5_MI2S_TX"
  21888. };
  21889. static const int slim0_rx_vi_fb_tx_lch_value[] = {
  21890. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21891. };
  21892. static const int slim0_rx_vi_fb_tx_rch_value[] = {
  21893. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SLIMBUS_4_TX
  21894. };
  21895. static const int wsa_rx_0_vi_fb_tx_lch_value[] = {
  21896. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21897. };
  21898. static const int wsa_rx_0_vi_fb_tx_rch_value[] = {
  21899. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_WSA_CDC_DMA_TX_0
  21900. };
  21901. static const int mi2s_rx_vi_fb_tx_value[] = {
  21902. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_SENARY_MI2S_TX
  21903. };
  21904. static const int int4_mi2s_rx_vi_fb_tx_mono_ch_value[] = {
  21905. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21906. };
  21907. static const int int4_mi2s_rx_vi_fb_tx_stereo_ch_value[] = {
  21908. MSM_BACKEND_DAI_MAX, MSM_BACKEND_DAI_INT5_MI2S_TX
  21909. };
  21910. static const struct soc_enum slim0_rx_vi_fb_lch_mux_enum =
  21911. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21912. ARRAY_SIZE(slim0_rx_vi_fb_tx_lch_mux_text),
  21913. slim0_rx_vi_fb_tx_lch_mux_text, slim0_rx_vi_fb_tx_lch_value);
  21914. static const struct soc_enum slim0_rx_vi_fb_rch_mux_enum =
  21915. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_SLIMBUS_0_RX, 0, 0,
  21916. ARRAY_SIZE(slim0_rx_vi_fb_tx_rch_mux_text),
  21917. slim0_rx_vi_fb_tx_rch_mux_text, slim0_rx_vi_fb_tx_rch_value);
  21918. static const struct soc_enum wsa_rx_0_vi_fb_lch_mux_enum =
  21919. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21920. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_lch_mux_text),
  21921. wsa_rx_0_vi_fb_tx_lch_mux_text, wsa_rx_0_vi_fb_tx_lch_value);
  21922. static const struct soc_enum wsa_rx_0_vi_fb_rch_mux_enum =
  21923. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_WSA_CDC_DMA_RX_0, 0, 0,
  21924. ARRAY_SIZE(wsa_rx_0_vi_fb_tx_rch_mux_text),
  21925. wsa_rx_0_vi_fb_tx_rch_mux_text, wsa_rx_0_vi_fb_tx_rch_value);
  21926. static const struct soc_enum mi2s_rx_vi_fb_mux_enum =
  21927. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_PRI_MI2S_RX, 0, 0,
  21928. ARRAY_SIZE(mi2s_rx_vi_fb_tx_mux_text),
  21929. mi2s_rx_vi_fb_tx_mux_text, mi2s_rx_vi_fb_tx_value);
  21930. static const struct soc_enum int4_mi2s_rx_vi_fb_mono_ch_mux_enum =
  21931. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21932. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_mono_mux_text),
  21933. int4_mi2s_rx_vi_fb_tx_mono_mux_text,
  21934. int4_mi2s_rx_vi_fb_tx_mono_ch_value);
  21935. static const struct soc_enum int4_mi2s_rx_vi_fb_stereo_ch_mux_enum =
  21936. SOC_VALUE_ENUM_DOUBLE(0, MSM_BACKEND_DAI_INT4_MI2S_RX, 0, 0,
  21937. ARRAY_SIZE(int4_mi2s_rx_vi_fb_tx_stereo_mux_text),
  21938. int4_mi2s_rx_vi_fb_tx_stereo_mux_text,
  21939. int4_mi2s_rx_vi_fb_tx_stereo_ch_value);
  21940. static const struct snd_kcontrol_new slim0_rx_vi_fb_lch_mux =
  21941. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_LCH_MUX",
  21942. slim0_rx_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21943. spkr_prot_put_vi_lch_port);
  21944. static const struct snd_kcontrol_new slim0_rx_vi_fb_rch_mux =
  21945. SOC_DAPM_ENUM_EXT("SLIM0_RX_VI_FB_RCH_MUX",
  21946. slim0_rx_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21947. spkr_prot_put_vi_rch_port);
  21948. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_lch_mux =
  21949. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_LCH_MUX",
  21950. wsa_rx_0_vi_fb_lch_mux_enum, spkr_prot_get_vi_lch_port,
  21951. spkr_prot_put_vi_lch_port);
  21952. static const struct snd_kcontrol_new wsa_rx_0_vi_fb_rch_mux =
  21953. SOC_DAPM_ENUM_EXT("WSA_RX_0_VI_FB_RCH_MUX",
  21954. wsa_rx_0_vi_fb_rch_mux_enum, spkr_prot_get_vi_rch_port,
  21955. spkr_prot_put_vi_rch_port);
  21956. static const struct snd_kcontrol_new mi2s_rx_vi_fb_mux =
  21957. SOC_DAPM_ENUM_EXT("PRI_MI2S_RX_VI_FB_MUX",
  21958. mi2s_rx_vi_fb_mux_enum, spkr_prot_get_vi_lch_port,
  21959. spkr_prot_put_vi_lch_port);
  21960. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_mono_ch_mux =
  21961. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_MONO_CH_MUX",
  21962. int4_mi2s_rx_vi_fb_mono_ch_mux_enum, spkr_prot_get_vi_lch_port,
  21963. spkr_prot_put_vi_lch_port);
  21964. static const struct snd_kcontrol_new int4_mi2s_rx_vi_fb_stereo_ch_mux =
  21965. SOC_DAPM_ENUM_EXT("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX",
  21966. int4_mi2s_rx_vi_fb_stereo_ch_mux_enum, spkr_prot_get_vi_rch_port,
  21967. spkr_prot_put_vi_rch_port);
  21968. static const struct snd_soc_dapm_widget msm_qdsp6_widgets[] = {
  21969. /* Frontend AIF */
  21970. /* Widget name equals to Front-End DAI name<Need confirmation>,
  21971. * Stream name must contains substring of front-end dai name
  21972. */
  21973. SND_SOC_DAPM_AIF_IN("MM_DL1", "MultiMedia1 Playback", 0, 0, 0, 0),
  21974. SND_SOC_DAPM_AIF_IN("MM_DL2", "MultiMedia2 Playback", 0, 0, 0, 0),
  21975. SND_SOC_DAPM_AIF_IN("MM_DL3", "MultiMedia3 Playback", 0, 0, 0, 0),
  21976. SND_SOC_DAPM_AIF_IN("MM_DL4", "MultiMedia4 Playback", 0, 0, 0, 0),
  21977. SND_SOC_DAPM_AIF_IN("MM_DL5", "MultiMedia5 Playback", 0, 0, 0, 0),
  21978. SND_SOC_DAPM_AIF_IN("MM_DL6", "MultiMedia6 Playback", 0, 0, 0, 0),
  21979. SND_SOC_DAPM_AIF_IN("MM_DL7", "MultiMedia7 Playback", 0, 0, 0, 0),
  21980. SND_SOC_DAPM_AIF_IN("MM_DL8", "MultiMedia8 Playback", 0, 0, 0, 0),
  21981. SND_SOC_DAPM_AIF_IN("MM_DL9", "MultiMedia9 Playback", 0, 0, 0, 0),
  21982. SND_SOC_DAPM_AIF_IN("MM_DL10", "MultiMedia10 Playback", 0, 0, 0, 0),
  21983. SND_SOC_DAPM_AIF_IN("MM_DL11", "MultiMedia11 Playback", 0, 0, 0, 0),
  21984. SND_SOC_DAPM_AIF_IN("MM_DL12", "MultiMedia12 Playback", 0, 0, 0, 0),
  21985. SND_SOC_DAPM_AIF_IN("MM_DL13", "MultiMedia13 Playback", 0, 0, 0, 0),
  21986. SND_SOC_DAPM_AIF_IN("MM_DL14", "MultiMedia14 Playback", 0, 0, 0, 0),
  21987. SND_SOC_DAPM_AIF_IN("MM_DL15", "MultiMedia15 Playback", 0, 0, 0, 0),
  21988. SND_SOC_DAPM_AIF_IN("MM_DL16", "MultiMedia16 Playback", 0, 0, 0, 0),
  21989. SND_SOC_DAPM_AIF_IN("MM_DL20", "MultiMedia20 Playback", 0, 0, 0, 0),
  21990. SND_SOC_DAPM_AIF_IN("MM_DL21", "MultiMedia21 Playback", 0, 0, 0, 0),
  21991. SND_SOC_DAPM_AIF_IN("MM_DL22", "MultiMedia22 Playback", 0, 0, 0, 0),
  21992. SND_SOC_DAPM_AIF_IN("MM_DL26", "MultiMedia26 Playback", 0, 0, 0, 0),
  21993. SND_SOC_DAPM_AIF_IN("VOIP_DL", "VoIP Playback", 0, 0, 0, 0),
  21994. SND_SOC_DAPM_AIF_OUT("MM_UL1", "MultiMedia1 Capture", 0, 0, 0, 0),
  21995. SND_SOC_DAPM_AIF_OUT("MM_UL2", "MultiMedia2 Capture", 0, 0, 0, 0),
  21996. SND_SOC_DAPM_AIF_OUT("MM_UL3", "MultiMedia3 Capture", 0, 0, 0, 0),
  21997. SND_SOC_DAPM_AIF_OUT("MM_UL4", "MultiMedia4 Capture", 0, 0, 0, 0),
  21998. SND_SOC_DAPM_AIF_OUT("MM_UL5", "MultiMedia5 Capture", 0, 0, 0, 0),
  21999. SND_SOC_DAPM_AIF_OUT("MM_UL6", "MultiMedia6 Capture", 0, 0, 0, 0),
  22000. SND_SOC_DAPM_AIF_OUT("MM_UL8", "MultiMedia8 Capture", 0, 0, 0, 0),
  22001. SND_SOC_DAPM_AIF_OUT("MM_UL9", "MultiMedia9 Capture", 0, 0, 0, 0),
  22002. SND_SOC_DAPM_AIF_OUT("MM_UL10", "MultiMedia10 Capture", 0, 0, 0, 0),
  22003. SND_SOC_DAPM_AIF_OUT("MM_UL16", "MultiMedia16 Capture", 0, 0, 0, 0),
  22004. SND_SOC_DAPM_AIF_OUT("MM_UL17", "MultiMedia17 Capture", 0, 0, 0, 0),
  22005. SND_SOC_DAPM_AIF_OUT("MM_UL18", "MultiMedia18 Capture", 0, 0, 0, 0),
  22006. SND_SOC_DAPM_AIF_OUT("MM_UL19", "MultiMedia19 Capture", 0, 0, 0, 0),
  22007. SND_SOC_DAPM_AIF_OUT("MM_UL20", "MultiMedia20 Capture", 0, 0, 0, 0),
  22008. SND_SOC_DAPM_AIF_OUT("MM_UL21", "MultiMedia21 Capture", 0, 0, 0, 0),
  22009. SND_SOC_DAPM_AIF_OUT("MM_UL22", "MultiMedia22 Capture", 0, 0, 0, 0),
  22010. SND_SOC_DAPM_AIF_OUT("MM_UL27", "MultiMedia27 Capture", 0, 0, 0, 0),
  22011. SND_SOC_DAPM_AIF_OUT("MM_UL28", "MultiMedia28 Capture", 0, 0, 0, 0),
  22012. SND_SOC_DAPM_AIF_OUT("MM_UL29", "MultiMedia29 Capture", 0, 0, 0, 0),
  22013. SND_SOC_DAPM_AIF_OUT("MM_UL30", "MultiMedia30 Capture", 0, 0, 0, 0),
  22014. SND_SOC_DAPM_AIF_OUT("VOIP_UL", "VoIP Capture", 0, 0, 0, 0),
  22015. SND_SOC_DAPM_AIF_IN("VOICEMMODE1_DL",
  22016. "VoiceMMode1 Playback", 0, 0, 0, 0),
  22017. SND_SOC_DAPM_AIF_OUT("VOICEMMODE1_UL",
  22018. "VoiceMMode1 Capture", 0, 0, 0, 0),
  22019. SND_SOC_DAPM_AIF_IN("VOICEMMODE2_DL",
  22020. "VoiceMMode2 Playback", 0, 0, 0, 0),
  22021. SND_SOC_DAPM_AIF_OUT("VOICEMMODE2_UL",
  22022. "VoiceMMode2 Capture", 0, 0, 0, 0),
  22023. SND_SOC_DAPM_AIF_IN("SLIM0_DL_HL", "SLIMBUS0_HOSTLESS Playback",
  22024. 0, 0, 0, 0),
  22025. SND_SOC_DAPM_AIF_OUT("SLIM0_UL_HL", "SLIMBUS0_HOSTLESS Capture",
  22026. 0, 0, 0, 0),
  22027. SND_SOC_DAPM_AIF_IN("CDC_DMA_DL_HL", "CDC_DMA_HOSTLESS Playback",
  22028. 0, 0, 0, 0),
  22029. SND_SOC_DAPM_AIF_OUT("CDC_DMA_UL_HL", "CDC_DMA_HOSTLESS Capture",
  22030. 0, 0, 0, 0),
  22031. SND_SOC_DAPM_AIF_OUT("TX3_CDC_DMA_UL_HL",
  22032. "TX3_CDC_DMA_HOSTLESS Capture", 0, 0, 0, 0),
  22033. SND_SOC_DAPM_AIF_OUT("CPE_LSM_UL_HL", "CPE LSM capture",
  22034. 0, 0, 0, 0),
  22035. SND_SOC_DAPM_AIF_IN("SLIM1_DL_HL", "SLIMBUS1_HOSTLESS Playback",
  22036. 0, 0, 0, 0),
  22037. SND_SOC_DAPM_AIF_OUT("SLIM1_UL_HL", "SLIMBUS1_HOSTLESS Capture",
  22038. 0, 0, 0, 0),
  22039. SND_SOC_DAPM_AIF_IN("SLIM3_DL_HL", "SLIMBUS3_HOSTLESS Playback",
  22040. 0, 0, 0, 0),
  22041. SND_SOC_DAPM_AIF_OUT("SLIM3_UL_HL", "SLIMBUS3_HOSTLESS Capture",
  22042. 0, 0, 0, 0),
  22043. SND_SOC_DAPM_AIF_IN("SLIM4_DL_HL", "SLIMBUS4_HOSTLESS Playback",
  22044. 0, 0, 0, 0),
  22045. SND_SOC_DAPM_AIF_OUT("SLIM4_UL_HL", "SLIMBUS4_HOSTLESS Capture",
  22046. 0, 0, 0, 0),
  22047. SND_SOC_DAPM_AIF_IN("SLIM6_DL_HL", "SLIMBUS6_HOSTLESS Playback",
  22048. 0, 0, 0, 0),
  22049. SND_SOC_DAPM_AIF_OUT("SLIM6_UL_HL", "SLIMBUS6_HOSTLESS Capture",
  22050. 0, 0, 0, 0),
  22051. SND_SOC_DAPM_AIF_IN("SLIM7_DL_HL", "SLIMBUS7_HOSTLESS Playback",
  22052. 0, 0, 0, 0),
  22053. SND_SOC_DAPM_AIF_OUT("SLIM7_UL_HL", "SLIMBUS7_HOSTLESS Capture",
  22054. 0, 0, 0, 0),
  22055. SND_SOC_DAPM_AIF_IN("SLIM8_DL_HL", "SLIMBUS8_HOSTLESS Playback",
  22056. 0, 0, 0, 0),
  22057. SND_SOC_DAPM_AIF_OUT("SLIM8_UL_HL", "SLIMBUS8_HOSTLESS Capture",
  22058. 0, 0, 0, 0),
  22059. SND_SOC_DAPM_AIF_IN("INTFM_DL_HL", "INT_FM_HOSTLESS Playback",
  22060. 0, 0, 0, 0),
  22061. SND_SOC_DAPM_AIF_OUT("INTFM_UL_HL", "INT_FM_HOSTLESS Capture",
  22062. 0, 0, 0, 0),
  22063. SND_SOC_DAPM_AIF_IN("INTHFP_DL_HL", "INT_HFP_BT_HOSTLESS Playback",
  22064. 0, 0, 0, 0),
  22065. SND_SOC_DAPM_AIF_OUT("INTHFP_UL_HL", "INT_HFP_BT_HOSTLESS Capture",
  22066. 0, 0, 0, 0),
  22067. SND_SOC_DAPM_AIF_IN("USBAUDIO_DL_HL", "USBAUDIO_HOSTLESS Playback",
  22068. 0, 0, 0, 0),
  22069. SND_SOC_DAPM_AIF_OUT("USBAUDIO_UL_HL", "USBAUDIO_HOSTLESS Capture",
  22070. 0, 0, 0, 0),
  22071. SND_SOC_DAPM_AIF_IN("HDMI_DL_HL", "HDMI_HOSTLESS Playback", 0, 0, 0, 0),
  22072. SND_SOC_DAPM_AIF_IN("SEC_I2S_DL_HL", "SEC_I2S_RX_HOSTLESS Playback",
  22073. 0, 0, 0, 0),
  22074. SND_SOC_DAPM_AIF_IN("INT0_MI2S_DL_HL",
  22075. "INT0 MI2S_RX Hostless Playback",
  22076. 0, 0, 0, 0),
  22077. SND_SOC_DAPM_AIF_IN("INT4_MI2S_DL_HL",
  22078. "INT4 MI2S_RX Hostless Playback",
  22079. 0, 0, 0, 0),
  22080. SND_SOC_DAPM_AIF_IN("PRI_MI2S_DL_HL",
  22081. "Primary MI2S_RX Hostless Playback",
  22082. 0, 0, 0, 0),
  22083. SND_SOC_DAPM_AIF_IN("SEC_MI2S_DL_HL",
  22084. "Secondary MI2S_RX Hostless Playback",
  22085. 0, 0, 0, 0),
  22086. SND_SOC_DAPM_AIF_IN("TERT_MI2S_DL_HL",
  22087. "Tertiary MI2S_RX Hostless Playback",
  22088. 0, 0, 0, 0),
  22089. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_DL_HL",
  22090. "Quaternary MI2S_RX Hostless Playback",
  22091. 0, 0, 0, 0),
  22092. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_DL_HL",
  22093. "Quinary MI2S_RX Hostless Playback",
  22094. 0, 0, 0, 0),
  22095. SND_SOC_DAPM_AIF_IN("SEN_MI2S_DL_HL",
  22096. "Senary MI2S_RX Hostless Playback",
  22097. 0, 0, 0, 0),
  22098. SND_SOC_DAPM_AIF_IN("AUXPCM_DL_HL", "AUXPCM_HOSTLESS Playback",
  22099. 0, 0, 0, 0),
  22100. SND_SOC_DAPM_AIF_OUT("AUXPCM_UL_HL", "AUXPCM_HOSTLESS Capture",
  22101. 0, 0, 0, 0),
  22102. SND_SOC_DAPM_AIF_IN("SEC_AUXPCM_DL_HL", "SEC_AUXPCM_HOSTLESS Playback",
  22103. 0, 0, 0, 0),
  22104. SND_SOC_DAPM_AIF_OUT("SEC_AUXPCM_UL_HL", "SEC_AUXPCM_HOSTLESS Capture",
  22105. 0, 0, 0, 0),
  22106. SND_SOC_DAPM_AIF_OUT("MI2S_UL_HL", "MI2S_TX_HOSTLESS Capture",
  22107. 0, 0, 0, 0),
  22108. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_UL_HL",
  22109. "INT3 MI2S_TX Hostless Capture",
  22110. 0, 0, 0, 0),
  22111. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_UL_HL",
  22112. "Tertiary MI2S_TX Hostless Capture",
  22113. 0, 0, 0, 0),
  22114. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_UL_HL",
  22115. "Secondary MI2S_TX Hostless Capture",
  22116. 0, 0, 0, 0),
  22117. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_UL_HL",
  22118. "Primary MI2S_TX Hostless Capture",
  22119. 0, 0, 0, 0),
  22120. SND_SOC_DAPM_AIF_OUT("MI2S_DL_HL", "MI2S_RX_HOSTLESS Playback",
  22121. 0, 0, 0, 0),
  22122. SND_SOC_DAPM_AIF_IN("DTMF_DL_HL", "DTMF_RX_HOSTLESS Playback",
  22123. 0, 0, 0, 0),
  22124. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_UL_HL",
  22125. "Quaternary MI2S_TX Hostless Capture",
  22126. 0, 0, 0, 0),
  22127. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_UL_HL",
  22128. "Quinary MI2S_TX Hostless Capture",
  22129. 0, 0, 0, 0),
  22130. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_UL_HL",
  22131. "Senary MI2S_TX Hostless Capture",
  22132. 0, 0, 0, 0),
  22133. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_0_DL_HL",
  22134. "Primary TDM0 Hostless Playback",
  22135. 0, 0, 0, 0),
  22136. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_0_UL_HL",
  22137. "Primary TDM0 Hostless Capture",
  22138. 0, 0, 0, 0),
  22139. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_1_DL_HL",
  22140. "Primary TDM1 Hostless Playback",
  22141. 0, 0, 0, 0),
  22142. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_1_UL_HL",
  22143. "Primary TDM1 Hostless Capture",
  22144. 0, 0, 0, 0),
  22145. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_2_DL_HL",
  22146. "Primary TDM2 Hostless Playback",
  22147. 0, 0, 0, 0),
  22148. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_2_UL_HL",
  22149. "Primary TDM2 Hostless Capture",
  22150. 0, 0, 0, 0),
  22151. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_3_DL_HL",
  22152. "Primary TDM3 Hostless Playback",
  22153. 0, 0, 0, 0),
  22154. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_3_UL_HL",
  22155. "Primary TDM3 Hostless Capture",
  22156. 0, 0, 0, 0),
  22157. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_4_DL_HL",
  22158. "Primary TDM4 Hostless Playback",
  22159. 0, 0, 0, 0),
  22160. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_4_UL_HL",
  22161. "Primary TDM4 Hostless Capture",
  22162. 0, 0, 0, 0),
  22163. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_5_DL_HL",
  22164. "Primary TDM5 Hostless Playback",
  22165. 0, 0, 0, 0),
  22166. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_5_UL_HL",
  22167. "Primary TDM5 Hostless Capture",
  22168. 0, 0, 0, 0),
  22169. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_6_DL_HL",
  22170. "Primary TDM6 Hostless Playback",
  22171. 0, 0, 0, 0),
  22172. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_6_UL_HL",
  22173. "Primary TDM6 Hostless Capture",
  22174. 0, 0, 0, 0),
  22175. SND_SOC_DAPM_AIF_IN("PRI_TDM_RX_7_DL_HL",
  22176. "Primary TDM7 Hostless Playback",
  22177. 0, 0, 0, 0),
  22178. SND_SOC_DAPM_AIF_OUT("PRI_TDM_TX_7_UL_HL",
  22179. "Primary TDM7 Hostless Capture",
  22180. 0, 0, 0, 0),
  22181. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_0_DL_HL",
  22182. "Secondary TDM0 Hostless Playback",
  22183. 0, 0, 0, 0),
  22184. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_0_UL_HL",
  22185. "Secondary TDM0 Hostless Capture",
  22186. 0, 0, 0, 0),
  22187. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_1_DL_HL",
  22188. "Secondary TDM1 Hostless Playback",
  22189. 0, 0, 0, 0),
  22190. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_1_UL_HL",
  22191. "Secondary TDM1 Hostless Capture",
  22192. 0, 0, 0, 0),
  22193. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_2_DL_HL",
  22194. "Secondary TDM2 Hostless Playback",
  22195. 0, 0, 0, 0),
  22196. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_2_UL_HL",
  22197. "Secondary TDM2 Hostless Capture",
  22198. 0, 0, 0, 0),
  22199. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_3_DL_HL",
  22200. "Secondary TDM3 Hostless Playback",
  22201. 0, 0, 0, 0),
  22202. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_3_UL_HL",
  22203. "Secondary TDM3 Hostless Capture",
  22204. 0, 0, 0, 0),
  22205. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_4_DL_HL",
  22206. "Secondary TDM4 Hostless Playback",
  22207. 0, 0, 0, 0),
  22208. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_4_UL_HL",
  22209. "Secondary TDM4 Hostless Capture",
  22210. 0, 0, 0, 0),
  22211. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_5_DL_HL",
  22212. "Secondary TDM5 Hostless Playback",
  22213. 0, 0, 0, 0),
  22214. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_5_UL_HL",
  22215. "Secondary TDM5 Hostless Capture",
  22216. 0, 0, 0, 0),
  22217. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_6_DL_HL",
  22218. "Secondary TDM6 Hostless Playback",
  22219. 0, 0, 0, 0),
  22220. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_6_UL_HL",
  22221. "Secondary TDM6 Hostless Capture",
  22222. 0, 0, 0, 0),
  22223. SND_SOC_DAPM_AIF_IN("SEC_TDM_RX_7_DL_HL",
  22224. "Secondary TDM7 Hostless Playback",
  22225. 0, 0, 0, 0),
  22226. SND_SOC_DAPM_AIF_OUT("SEC_TDM_TX_7_UL_HL",
  22227. "Secondary TDM7 Hostless Capture",
  22228. 0, 0, 0, 0),
  22229. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_0_DL_HL",
  22230. "Tertiary TDM0 Hostless Playback",
  22231. 0, 0, 0, 0),
  22232. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_0_UL_HL",
  22233. "Tertiary TDM0 Hostless Capture",
  22234. 0, 0, 0, 0),
  22235. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_1_DL_HL",
  22236. "Tertiary TDM1 Hostless Playback",
  22237. 0, 0, 0, 0),
  22238. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_1_UL_HL",
  22239. "Tertiary TDM1 Hostless Capture",
  22240. 0, 0, 0, 0),
  22241. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_2_DL_HL",
  22242. "Tertiary TDM2 Hostless Playback",
  22243. 0, 0, 0, 0),
  22244. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_2_UL_HL",
  22245. "Tertiary TDM2 Hostless Capture",
  22246. 0, 0, 0, 0),
  22247. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_3_DL_HL",
  22248. "Tertiary TDM3 Hostless Playback",
  22249. 0, 0, 0, 0),
  22250. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_3_UL_HL",
  22251. "Tertiary TDM3 Hostless Capture",
  22252. 0, 0, 0, 0),
  22253. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_4_DL_HL",
  22254. "Tertiary TDM4 Hostless Playback",
  22255. 0, 0, 0, 0),
  22256. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_4_UL_HL",
  22257. "Tertiary TDM4 Hostless Capture",
  22258. 0, 0, 0, 0),
  22259. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_5_DL_HL",
  22260. "Tertiary TDM5 Hostless Playback",
  22261. 0, 0, 0, 0),
  22262. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_5_UL_HL",
  22263. "Tertiary TDM5 Hostless Capture",
  22264. 0, 0, 0, 0),
  22265. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_6_DL_HL",
  22266. "Tertiary TDM6 Hostless Playback",
  22267. 0, 0, 0, 0),
  22268. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_6_UL_HL",
  22269. "Tertiary TDM6 Hostless Capture",
  22270. 0, 0, 0, 0),
  22271. SND_SOC_DAPM_AIF_IN("TERT_TDM_RX_7_DL_HL",
  22272. "Tertiary TDM7 Hostless Playback",
  22273. 0, 0, 0, 0),
  22274. SND_SOC_DAPM_AIF_OUT("TERT_TDM_TX_7_UL_HL",
  22275. "Tertiary TDM7 Hostless Capture",
  22276. 0, 0, 0, 0),
  22277. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_0_DL_HL",
  22278. "Quaternary TDM0 Hostless Playback",
  22279. 0, 0, 0, 0),
  22280. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_0_UL_HL",
  22281. "Quaternary TDM0 Hostless Capture",
  22282. 0, 0, 0, 0),
  22283. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_1_DL_HL",
  22284. "Quaternary TDM1 Hostless Playback",
  22285. 0, 0, 0, 0),
  22286. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_1_UL_HL",
  22287. "Quaternary TDM1 Hostless Capture",
  22288. 0, 0, 0, 0),
  22289. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_2_DL_HL",
  22290. "Quaternary TDM2 Hostless Playback",
  22291. 0, 0, 0, 0),
  22292. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_2_UL_HL",
  22293. "Quaternary TDM2 Hostless Capture",
  22294. 0, 0, 0, 0),
  22295. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_3_DL_HL",
  22296. "Quaternary TDM3 Hostless Playback",
  22297. 0, 0, 0, 0),
  22298. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_3_UL_HL",
  22299. "Quaternary TDM3 Hostless Capture",
  22300. 0, 0, 0, 0),
  22301. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_4_DL_HL",
  22302. "Quaternary TDM4 Hostless Playback",
  22303. 0, 0, 0, 0),
  22304. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_4_UL_HL",
  22305. "Quaternary TDM4 Hostless Capture",
  22306. 0, 0, 0, 0),
  22307. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_5_DL_HL",
  22308. "Quaternary TDM5 Hostless Playback",
  22309. 0, 0, 0, 0),
  22310. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_5_UL_HL",
  22311. "Quaternary TDM5 Hostless Capture",
  22312. 0, 0, 0, 0),
  22313. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_6_DL_HL",
  22314. "Quaternary TDM6 Hostless Playback",
  22315. 0, 0, 0, 0),
  22316. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_6_UL_HL",
  22317. "Quaternary TDM6 Hostless Capture",
  22318. 0, 0, 0, 0),
  22319. SND_SOC_DAPM_AIF_IN("QUAT_TDM_RX_7_DL_HL",
  22320. "Quaternary TDM7 Hostless Playback",
  22321. 0, 0, 0, 0),
  22322. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_TX_7_UL_HL",
  22323. "Quaternary TDM7 Hostless Capture",
  22324. 0, 0, 0, 0),
  22325. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_0_DL_HL",
  22326. "Quinary TDM0 Hostless Playback",
  22327. 0, 0, 0, 0),
  22328. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_0_UL_HL",
  22329. "Quinary TDM0 Hostless Capture",
  22330. 0, 0, 0, 0),
  22331. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_1_DL_HL",
  22332. "Quinary TDM1 Hostless Playback",
  22333. 0, 0, 0, 0),
  22334. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_1_UL_HL",
  22335. "Quinary TDM1 Hostless Capture",
  22336. 0, 0, 0, 0),
  22337. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_2_DL_HL",
  22338. "Quinary TDM2 Hostless Playback",
  22339. 0, 0, 0, 0),
  22340. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_2_UL_HL",
  22341. "Quinary TDM2 Hostless Capture",
  22342. 0, 0, 0, 0),
  22343. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_3_DL_HL",
  22344. "Quinary TDM3 Hostless Playback",
  22345. 0, 0, 0, 0),
  22346. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_3_UL_HL",
  22347. "Quinary TDM3 Hostless Capture",
  22348. 0, 0, 0, 0),
  22349. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_4_DL_HL",
  22350. "Quinary TDM4 Hostless Playback",
  22351. 0, 0, 0, 0),
  22352. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_4_UL_HL",
  22353. "Quinary TDM4 Hostless Capture",
  22354. 0, 0, 0, 0),
  22355. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_5_DL_HL",
  22356. "Quinary TDM5 Hostless Playback",
  22357. 0, 0, 0, 0),
  22358. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_5_UL_HL",
  22359. "Quinary TDM5 Hostless Capture",
  22360. 0, 0, 0, 0),
  22361. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_6_DL_HL",
  22362. "Quinary TDM6 Hostless Playback",
  22363. 0, 0, 0, 0),
  22364. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_6_UL_HL",
  22365. "Quinary TDM6 Hostless Capture",
  22366. 0, 0, 0, 0),
  22367. SND_SOC_DAPM_AIF_IN("QUIN_TDM_RX_7_DL_HL",
  22368. "Quinary TDM7 Hostless Playback",
  22369. 0, 0, 0, 0),
  22370. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_TX_7_UL_HL",
  22371. "Quinary TDM7 Hostless Capture",
  22372. 0, 0, 0, 0),
  22373. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_0_DL_HL",
  22374. "Senary TDM0 Hostless Playback",
  22375. 0, 0, 0, 0),
  22376. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_0_UL_HL",
  22377. "Senary TDM0 Hostless Capture",
  22378. 0, 0, 0, 0),
  22379. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_1_DL_HL",
  22380. "Senary TDM1 Hostless Playback",
  22381. 0, 0, 0, 0),
  22382. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_1_UL_HL",
  22383. "Senary TDM1 Hostless Capture",
  22384. 0, 0, 0, 0),
  22385. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_2_DL_HL",
  22386. "Senary TDM2 Hostless Playback",
  22387. 0, 0, 0, 0),
  22388. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_2_UL_HL",
  22389. "Senary TDM2 Hostless Capture",
  22390. 0, 0, 0, 0),
  22391. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_3_DL_HL",
  22392. "Senary TDM3 Hostless Playback",
  22393. 0, 0, 0, 0),
  22394. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_3_UL_HL",
  22395. "Senary TDM3 Hostless Capture",
  22396. 0, 0, 0, 0),
  22397. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_4_DL_HL",
  22398. "Senary TDM4 Hostless Playback",
  22399. 0, 0, 0, 0),
  22400. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_4_UL_HL",
  22401. "Senary TDM4 Hostless Capture",
  22402. 0, 0, 0, 0),
  22403. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_5_DL_HL",
  22404. "Senary TDM5 Hostless Playback",
  22405. 0, 0, 0, 0),
  22406. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_5_UL_HL",
  22407. "Senary TDM5 Hostless Capture",
  22408. 0, 0, 0, 0),
  22409. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_6_DL_HL",
  22410. "Senary TDM6 Hostless Playback",
  22411. 0, 0, 0, 0),
  22412. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_6_UL_HL",
  22413. "Senary TDM6 Hostless Capture",
  22414. 0, 0, 0, 0),
  22415. SND_SOC_DAPM_AIF_IN("SEN_TDM_RX_7_DL_HL",
  22416. "Senary TDM7 Hostless Playback",
  22417. 0, 0, 0, 0),
  22418. SND_SOC_DAPM_AIF_OUT("SEN_TDM_TX_7_UL_HL",
  22419. "Senary TDM7 Hostless Capture",
  22420. 0, 0, 0, 0),
  22421. /* LSM */
  22422. SND_SOC_DAPM_AIF_OUT("LSM1_UL_HL", "Listen 1 Audio Service Capture",
  22423. 0, 0, 0, 0),
  22424. SND_SOC_DAPM_AIF_OUT("LSM2_UL_HL", "Listen 2 Audio Service Capture",
  22425. 0, 0, 0, 0),
  22426. SND_SOC_DAPM_AIF_OUT("LSM3_UL_HL", "Listen 3 Audio Service Capture",
  22427. 0, 0, 0, 0),
  22428. SND_SOC_DAPM_AIF_OUT("LSM4_UL_HL", "Listen 4 Audio Service Capture",
  22429. 0, 0, 0, 0),
  22430. SND_SOC_DAPM_AIF_OUT("LSM5_UL_HL", "Listen 5 Audio Service Capture",
  22431. 0, 0, 0, 0),
  22432. SND_SOC_DAPM_AIF_OUT("LSM6_UL_HL", "Listen 6 Audio Service Capture",
  22433. 0, 0, 0, 0),
  22434. SND_SOC_DAPM_AIF_OUT("LSM7_UL_HL", "Listen 7 Audio Service Capture",
  22435. 0, 0, 0, 0),
  22436. SND_SOC_DAPM_AIF_OUT("LSM8_UL_HL", "Listen 8 Audio Service Capture",
  22437. 0, 0, 0, 0),
  22438. SND_SOC_DAPM_AIF_IN("QCHAT_DL", "QCHAT Playback", 0, 0, 0, 0),
  22439. SND_SOC_DAPM_AIF_OUT("QCHAT_UL", "QCHAT Capture", 0, 0, 0, 0),
  22440. /* Backend AIF */
  22441. /* Stream name equals to backend dai link stream name */
  22442. SND_SOC_DAPM_AIF_OUT("PRI_I2S_RX", "Primary I2S Playback", 0, 0, 0, 0),
  22443. SND_SOC_DAPM_AIF_OUT("SEC_I2S_RX", "Secondary I2S Playback",
  22444. 0, 0, 0, 0),
  22445. SND_SOC_DAPM_AIF_OUT("PRI_SPDIF_RX", "Primary SPDIF Playback",
  22446. 0, 0, 0, 0),
  22447. SND_SOC_DAPM_AIF_IN("PRI_SPDIF_TX", "Primary SPDIF Capture",
  22448. 0, 0, 0, 0),
  22449. SND_SOC_DAPM_AIF_OUT("SEC_SPDIF_RX", "Secondary SPDIF Playback",
  22450. 0, 0, 0, 0),
  22451. SND_SOC_DAPM_AIF_IN("SEC_SPDIF_TX", "Secondary SPDIF Capture",
  22452. 0, 0, 0, 0),
  22453. SND_SOC_DAPM_AIF_OUT("SLIMBUS_0_RX", "Slimbus Playback", 0, 0, 0, 0),
  22454. SND_SOC_DAPM_AIF_OUT("SLIMBUS_2_RX", "Slimbus2 Playback", 0, 0, 0, 0),
  22455. SND_SOC_DAPM_AIF_OUT("SLIMBUS_5_RX", "Slimbus5 Playback", 0, 0, 0, 0),
  22456. SND_SOC_DAPM_AIF_OUT("HDMI", "HDMI Playback", 0, 0, 0, 0),
  22457. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT", "Display Port Playback",
  22458. 0, 0, 0, 0),
  22459. SND_SOC_DAPM_AIF_OUT("DISPLAY_PORT1", "Display Port1 Playback",
  22460. 0, 0, 0, 0),
  22461. SND_SOC_DAPM_AIF_OUT("MI2S_RX", "MI2S Playback", 0, 0, 0, 0),
  22462. SND_SOC_DAPM_AIF_OUT("QUAT_MI2S_RX", "Quaternary MI2S Playback",
  22463. 0, 0, 0, 0),
  22464. SND_SOC_DAPM_AIF_OUT("TERT_MI2S_RX", "Tertiary MI2S Playback",
  22465. 0, 0, 0, 0),
  22466. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX", "Secondary MI2S Playback",
  22467. 0, 0, 0, 0),
  22468. SND_SOC_DAPM_AIF_OUT("SEC_MI2S_RX_SD1",
  22469. "Secondary MI2S Playback SD1",
  22470. 0, 0, 0, 0),
  22471. SND_SOC_DAPM_AIF_OUT("PRI_MI2S_RX", "Primary MI2S Playback",
  22472. 0, 0, 0, 0),
  22473. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_RX", "INT0 MI2S Playback",
  22474. 0, 0, 0, 0),
  22475. SND_SOC_DAPM_AIF_OUT("INT2_MI2S_RX", "INT2 MI2S Playback",
  22476. 0, 0, 0, 0),
  22477. SND_SOC_DAPM_AIF_OUT("INT3_MI2S_RX", "INT3 MI2S Playback",
  22478. 0, 0, 0, 0),
  22479. SND_SOC_DAPM_AIF_OUT("INT5_MI2S_RX", "INT5 MI2S Playback",
  22480. 0, 0, 0, 0),
  22481. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_RX", "INT4 MI2S Playback",
  22482. 0, 0, 0, 0),
  22483. SND_SOC_DAPM_AIF_OUT("INT4_MI2S_TX", "INT4 MI2S Capture",
  22484. 0, 0, 0, 0),
  22485. SND_SOC_DAPM_AIF_OUT("QUIN_MI2S_RX", "Quinary MI2S Playback",
  22486. 0, 0, 0, 0),
  22487. SND_SOC_DAPM_AIF_OUT("SEN_MI2S_RX", "Senary MI2S Playback",
  22488. 0, 0, 0, 0),
  22489. SND_SOC_DAPM_AIF_IN("PRI_I2S_TX", "Primary I2S Capture", 0, 0, 0, 0),
  22490. SND_SOC_DAPM_AIF_IN("MI2S_TX", "MI2S Capture", 0, 0, 0, 0),
  22491. SND_SOC_DAPM_AIF_IN("QUAT_MI2S_TX", "Quaternary MI2S Capture",
  22492. 0, 0, 0, 0),
  22493. SND_SOC_DAPM_AIF_IN("PRI_MI2S_TX", "Primary MI2S Capture",
  22494. 0, 0, 0, 0),
  22495. SND_SOC_DAPM_AIF_IN("TERT_MI2S_TX", "Tertiary MI2S Capture",
  22496. 0, 0, 0, 0),
  22497. SND_SOC_DAPM_AIF_OUT("INT0_MI2S_TX", "INT0 MI2S Capture",
  22498. 0, 0, 0, 0),
  22499. SND_SOC_DAPM_AIF_IN("INT2_MI2S_TX", "INT2 MI2S Capture",
  22500. 0, 0, 0, 0),
  22501. SND_SOC_DAPM_AIF_IN("INT3_MI2S_TX", "INT3 MI2S Capture",
  22502. 0, 0, 0, 0),
  22503. SND_SOC_DAPM_AIF_IN("SEC_MI2S_TX", "Secondary MI2S Capture",
  22504. 0, 0, 0, 0),
  22505. SND_SOC_DAPM_AIF_IN("SLIMBUS_0_TX", "Slimbus Capture", 0, 0, 0, 0),
  22506. SND_SOC_DAPM_AIF_IN("SLIMBUS_2_TX", "Slimbus2 Capture", 0, 0, 0, 0),
  22507. SND_SOC_DAPM_AIF_IN("QUIN_MI2S_TX", "Quinary MI2S Capture",
  22508. 0, 0, 0, 0),
  22509. SND_SOC_DAPM_AIF_IN("SENARY_MI2S_TX", "Senary MI2S Capture",
  22510. 0, 0, 0, 0),
  22511. SND_SOC_DAPM_AIF_OUT("INT_BT_SCO_RX", "Internal BT-SCO Playback",
  22512. 0, 0, 0, 0),
  22513. SND_SOC_DAPM_AIF_IN("INT_BT_SCO_TX", "Internal BT-SCO Capture",
  22514. 0, 0, 0, 0),
  22515. SND_SOC_DAPM_AIF_OUT("INT_BT_A2DP_RX", "Internal BT-A2DP Playback",
  22516. 0, 0, 0, 0),
  22517. SND_SOC_DAPM_AIF_OUT("INT_FM_RX", "Internal FM Playback",
  22518. 0, 0, 0, 0),
  22519. SND_SOC_DAPM_AIF_IN("INT_FM_TX", "Internal FM Capture",
  22520. 0, 0, 0, 0),
  22521. SND_SOC_DAPM_AIF_OUT("PCM_RX", "AFE Playback",
  22522. 0, 0, 0, 0),
  22523. SND_SOC_DAPM_AIF_IN("PCM_TX", "AFE Capture",
  22524. 0, 0, 0, 0),
  22525. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_0", "Primary TDM0 Playback",
  22526. 0, 0, 0, 0),
  22527. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_0", "Primary TDM0 Capture",
  22528. 0, 0, 0, 0),
  22529. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_1", "Primary TDM1 Playback",
  22530. 0, 0, 0, 0),
  22531. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_1", "Primary TDM1 Capture",
  22532. 0, 0, 0, 0),
  22533. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_2", "Primary TDM2 Playback",
  22534. 0, 0, 0, 0),
  22535. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_2", "Primary TDM2 Capture",
  22536. 0, 0, 0, 0),
  22537. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_3", "Primary TDM3 Playback",
  22538. 0, 0, 0, 0),
  22539. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_3", "Primary TDM3 Capture",
  22540. 0, 0, 0, 0),
  22541. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_4", "Primary TDM4 Playback",
  22542. 0, 0, 0, 0),
  22543. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_4", "Primary TDM4 Capture",
  22544. 0, 0, 0, 0),
  22545. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_5", "Primary TDM5 Playback",
  22546. 0, 0, 0, 0),
  22547. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_5", "Primary TDM5 Capture",
  22548. 0, 0, 0, 0),
  22549. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_6", "Primary TDM6 Playback",
  22550. 0, 0, 0, 0),
  22551. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_6", "Primary TDM6 Capture",
  22552. 0, 0, 0, 0),
  22553. SND_SOC_DAPM_AIF_OUT("PRI_TDM_RX_7", "Primary TDM7 Playback",
  22554. 0, 0, 0, 0),
  22555. SND_SOC_DAPM_AIF_IN("PRI_TDM_TX_7", "Primary TDM7 Capture",
  22556. 0, 0, 0, 0),
  22557. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_0", "Secondary TDM0 Playback",
  22558. 0, 0, 0, 0),
  22559. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_0", "Secondary TDM0 Capture",
  22560. 0, 0, 0, 0),
  22561. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_1", "Secondary TDM1 Playback",
  22562. 0, 0, 0, 0),
  22563. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_1", "Secondary TDM1 Capture",
  22564. 0, 0, 0, 0),
  22565. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_2", "Secondary TDM2 Playback",
  22566. 0, 0, 0, 0),
  22567. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_2", "Secondary TDM2 Capture",
  22568. 0, 0, 0, 0),
  22569. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_3", "Secondary TDM3 Playback",
  22570. 0, 0, 0, 0),
  22571. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_3", "Secondary TDM3 Capture",
  22572. 0, 0, 0, 0),
  22573. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_4", "Secondary TDM4 Playback",
  22574. 0, 0, 0, 0),
  22575. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_4", "Secondary TDM4 Capture",
  22576. 0, 0, 0, 0),
  22577. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_5", "Secondary TDM5 Playback",
  22578. 0, 0, 0, 0),
  22579. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_5", "Secondary TDM5 Capture",
  22580. 0, 0, 0, 0),
  22581. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_6", "Secondary TDM6 Playback",
  22582. 0, 0, 0, 0),
  22583. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_6", "Secondary TDM6 Capture",
  22584. 0, 0, 0, 0),
  22585. SND_SOC_DAPM_AIF_OUT("SEC_TDM_RX_7", "Secondary TDM7 Playback",
  22586. 0, 0, 0, 0),
  22587. SND_SOC_DAPM_AIF_IN("SEC_TDM_TX_7", "Secondary TDM7 Capture",
  22588. 0, 0, 0, 0),
  22589. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_0", "Tertiary TDM0 Playback",
  22590. 0, 0, 0, 0),
  22591. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_0", "Tertiary TDM0 Capture",
  22592. 0, 0, 0, 0),
  22593. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_1", "Tertiary TDM1 Playback",
  22594. 0, 0, 0, 0),
  22595. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_1", "Tertiary TDM1 Capture",
  22596. 0, 0, 0, 0),
  22597. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_2", "Tertiary TDM2 Playback",
  22598. 0, 0, 0, 0),
  22599. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_2", "Tertiary TDM2 Capture",
  22600. 0, 0, 0, 0),
  22601. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_3", "Tertiary TDM3 Playback",
  22602. 0, 0, 0, 0),
  22603. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_3", "Tertiary TDM3 Capture",
  22604. 0, 0, 0, 0),
  22605. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_4", "Tertiary TDM4 Playback",
  22606. 0, 0, 0, 0),
  22607. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_4", "Tertiary TDM4 Capture",
  22608. 0, 0, 0, 0),
  22609. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_5", "Tertiary TDM5 Playback",
  22610. 0, 0, 0, 0),
  22611. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_5", "Tertiary TDM5 Capture",
  22612. 0, 0, 0, 0),
  22613. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_6", "Tertiary TDM6 Playback",
  22614. 0, 0, 0, 0),
  22615. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_6", "Tertiary TDM6 Capture",
  22616. 0, 0, 0, 0),
  22617. SND_SOC_DAPM_AIF_OUT("TERT_TDM_RX_7", "Tertiary TDM7 Playback",
  22618. 0, 0, 0, 0),
  22619. SND_SOC_DAPM_AIF_IN("TERT_TDM_TX_7", "Tertiary TDM7 Capture",
  22620. 0, 0, 0, 0),
  22621. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_0", "Quaternary TDM0 Playback",
  22622. 0, 0, 0, 0),
  22623. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_0", "Quaternary TDM0 Capture",
  22624. 0, 0, 0, 0),
  22625. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_1", "Quaternary TDM1 Playback",
  22626. 0, 0, 0, 0),
  22627. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_1", "Quaternary TDM1 Capture",
  22628. 0, 0, 0, 0),
  22629. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_2", "Quaternary TDM2 Playback",
  22630. 0, 0, 0, 0),
  22631. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_2", "Quaternary TDM2 Capture",
  22632. 0, 0, 0, 0),
  22633. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_3", "Quaternary TDM3 Playback",
  22634. 0, 0, 0, 0),
  22635. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_3", "Quaternary TDM3 Capture",
  22636. 0, 0, 0, 0),
  22637. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_4", "Quaternary TDM4 Playback",
  22638. 0, 0, 0, 0),
  22639. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_4", "Quaternary TDM4 Capture",
  22640. 0, 0, 0, 0),
  22641. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_5", "Quaternary TDM5 Playback",
  22642. 0, 0, 0, 0),
  22643. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_5", "Quaternary TDM5 Capture",
  22644. 0, 0, 0, 0),
  22645. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_6", "Quaternary TDM6 Playback",
  22646. 0, 0, 0, 0),
  22647. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_6", "Quaternary TDM6 Capture",
  22648. 0, 0, 0, 0),
  22649. SND_SOC_DAPM_AIF_OUT("QUAT_TDM_RX_7", "Quaternary TDM7 Playback",
  22650. 0, 0, 0, 0),
  22651. SND_SOC_DAPM_AIF_IN("QUAT_TDM_TX_7", "Quaternary TDM7 Capture",
  22652. 0, 0, 0, 0),
  22653. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_0", "Quinary TDM0 Playback",
  22654. 0, 0, 0, 0),
  22655. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_0", "Quinary TDM0 Capture",
  22656. 0, 0, 0, 0),
  22657. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_1", "Quinary TDM1 Playback",
  22658. 0, 0, 0, 0),
  22659. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_1", "Quinary TDM1 Capture",
  22660. 0, 0, 0, 0),
  22661. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_2", "Quinary TDM2 Playback",
  22662. 0, 0, 0, 0),
  22663. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_2", "Quinary TDM2 Capture",
  22664. 0, 0, 0, 0),
  22665. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_3", "Quinary TDM3 Playback",
  22666. 0, 0, 0, 0),
  22667. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_3", "Quinary TDM3 Capture",
  22668. 0, 0, 0, 0),
  22669. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_4", "Quinary TDM4 Playback",
  22670. 0, 0, 0, 0),
  22671. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_4", "Quinary TDM4 Capture",
  22672. 0, 0, 0, 0),
  22673. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_5", "Quinary TDM5 Playback",
  22674. 0, 0, 0, 0),
  22675. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_5", "Quinary TDM5 Capture",
  22676. 0, 0, 0, 0),
  22677. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_6", "Quinary TDM6 Playback",
  22678. 0, 0, 0, 0),
  22679. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_6", "Quinary TDM6 Capture",
  22680. 0, 0, 0, 0),
  22681. SND_SOC_DAPM_AIF_OUT("QUIN_TDM_RX_7", "Quinary TDM7 Playback",
  22682. 0, 0, 0, 0),
  22683. SND_SOC_DAPM_AIF_IN("QUIN_TDM_TX_7", "Quinary TDM7 Capture",
  22684. 0, 0, 0, 0),
  22685. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_0", "Senary TDM0 Playback",
  22686. 0, 0, 0, 0),
  22687. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_0", "Senary TDM0 Capture",
  22688. 0, 0, 0, 0),
  22689. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_1", "Senary TDM1 Playback",
  22690. 0, 0, 0, 0),
  22691. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_1", "Senary TDM1 Capture",
  22692. 0, 0, 0, 0),
  22693. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_2", "Senary TDM2 Playback",
  22694. 0, 0, 0, 0),
  22695. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_2", "Senary TDM2 Capture",
  22696. 0, 0, 0, 0),
  22697. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_3", "Senary TDM3 Playback",
  22698. 0, 0, 0, 0),
  22699. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_3", "Senary TDM3 Capture",
  22700. 0, 0, 0, 0),
  22701. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_4", "Senary TDM4 Playback",
  22702. 0, 0, 0, 0),
  22703. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_4", "Senary TDM4 Capture",
  22704. 0, 0, 0, 0),
  22705. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_5", "Senary TDM5 Playback",
  22706. 0, 0, 0, 0),
  22707. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_5", "Senary TDM5 Capture",
  22708. 0, 0, 0, 0),
  22709. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_6", "Senary TDM6 Playback",
  22710. 0, 0, 0, 0),
  22711. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_6", "Senary TDM6 Capture",
  22712. 0, 0, 0, 0),
  22713. SND_SOC_DAPM_AIF_OUT("SEN_TDM_RX_7", "Senary TDM7 Playback",
  22714. 0, 0, 0, 0),
  22715. SND_SOC_DAPM_AIF_IN("SEN_TDM_TX_7", "Senary TDM7 Capture",
  22716. 0, 0, 0, 0),
  22717. SND_SOC_DAPM_AIF_OUT("PRI_META_MI2S_RX", "Primary META MI2S Playback",
  22718. 0, 0, 0, 0),
  22719. SND_SOC_DAPM_AIF_OUT("SEC_META_MI2S_RX", "Secondary META MI2S Playback",
  22720. 0, 0, 0, 0),
  22721. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_0", "WSA CDC DMA0 Playback",
  22722. 0, 0, 0, 0),
  22723. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_0", "WSA CDC DMA0 Capture",
  22724. 0, 0, 0, 0),
  22725. SND_SOC_DAPM_AIF_OUT("WSA_CDC_DMA_RX_1", "WSA CDC DMA1 Playback",
  22726. 0, 0, 0, 0),
  22727. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_1", "WSA CDC DMA1 Capture",
  22728. 0, 0, 0, 0),
  22729. SND_SOC_DAPM_AIF_IN("WSA_CDC_DMA_TX_2", "WSA CDC DMA2 Capture",
  22730. 0, 0, 0, 0),
  22731. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_0", "VA CDC DMA0 Capture",
  22732. 0, 0, 0, 0),
  22733. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_1", "VA CDC DMA1 Capture",
  22734. 0, 0, 0, 0),
  22735. SND_SOC_DAPM_AIF_IN("VA_CDC_DMA_TX_2", "VA CDC DMA2 Capture",
  22736. 0, 0, 0, 0),
  22737. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_0", "RX CDC DMA0 Playback",
  22738. 0, 0, 0, 0),
  22739. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_0", "TX CDC DMA0 Capture",
  22740. 0, 0, 0, 0),
  22741. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_1", "RX CDC DMA1 Playback",
  22742. 0, 0, 0, 0),
  22743. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_1", "TX CDC DMA1 Capture",
  22744. 0, 0, 0, 0),
  22745. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_2", "RX CDC DMA2 Playback",
  22746. 0, 0, 0, 0),
  22747. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_2", "TX CDC DMA2 Capture",
  22748. 0, 0, 0, 0),
  22749. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_3", "RX CDC DMA3 Playback",
  22750. 0, 0, 0, 0),
  22751. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_3", "TX CDC DMA3 Capture",
  22752. 0, 0, 0, 0),
  22753. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_4", "RX CDC DMA4 Playback",
  22754. 0, 0, 0, 0),
  22755. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_4", "TX CDC DMA4 Capture",
  22756. 0, 0, 0, 0),
  22757. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_5", "RX CDC DMA5 Playback",
  22758. 0, 0, 0, 0),
  22759. SND_SOC_DAPM_AIF_IN("TX_CDC_DMA_TX_5", "TX CDC DMA5 Capture",
  22760. 0, 0, 0, 0),
  22761. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_6", "RX CDC DMA6 Playback",
  22762. 0, 0, 0, 0),
  22763. SND_SOC_DAPM_AIF_OUT("RX_CDC_DMA_RX_7", "RX CDC DMA7 Playback",
  22764. 0, 0, 0, 0),
  22765. /* incall */
  22766. SND_SOC_DAPM_AIF_OUT("VOICE_PLAYBACK_TX", "Voice Farend Playback",
  22767. 0, 0, 0, 0),
  22768. SND_SOC_DAPM_AIF_OUT("VOICE2_PLAYBACK_TX", "Voice2 Farend Playback",
  22769. 0, 0, 0, 0),
  22770. SND_SOC_DAPM_AIF_OUT("SLIMBUS_4_RX", "Slimbus4 Playback",
  22771. 0, 0, 0, 0),
  22772. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_TX", "Voice Uplink Capture",
  22773. 0, 0, 0, 0),
  22774. SND_SOC_DAPM_AIF_IN("INCALL_RECORD_RX", "Voice Downlink Capture",
  22775. 0, 0, 0, 0),
  22776. SND_SOC_DAPM_AIF_IN("SLIMBUS_4_TX", "Slimbus4 Capture",
  22777. 0, 0, 0, 0),
  22778. SND_SOC_DAPM_AIF_IN("SENARY_TX", "Senary_mi2s Capture",
  22779. 0, 0, 0, 0),
  22780. SND_SOC_DAPM_AIF_IN("INT5_MI2S_TX", "INT5 MI2S Capture",
  22781. 0, 0, 0, 0),
  22782. SND_SOC_DAPM_AIF_IN("SLIMBUS_5_TX", "Slimbus5 Capture", 0, 0, 0, 0),
  22783. SND_SOC_DAPM_AIF_OUT("AUX_PCM_RX", "AUX PCM Playback", 0, 0, 0, 0),
  22784. SND_SOC_DAPM_AIF_IN("AUX_PCM_TX", "AUX PCM Capture", 0, 0, 0, 0),
  22785. SND_SOC_DAPM_AIF_OUT("SEC_AUX_PCM_RX", "Sec AUX PCM Playback",
  22786. 0, 0, 0, 0),
  22787. SND_SOC_DAPM_AIF_IN("SEC_AUX_PCM_TX", "Sec AUX PCM Capture",
  22788. 0, 0, 0, 0),
  22789. SND_SOC_DAPM_AIF_OUT("TERT_AUX_PCM_RX", "Tert AUX PCM Playback",
  22790. 0, 0, 0, 0),
  22791. SND_SOC_DAPM_AIF_IN("TERT_AUX_PCM_TX", "Tert AUX PCM Capture",
  22792. 0, 0, 0, 0),
  22793. SND_SOC_DAPM_AIF_OUT("QUAT_AUX_PCM_RX", "Quat AUX PCM Playback",
  22794. 0, 0, 0, 0),
  22795. SND_SOC_DAPM_AIF_IN("QUAT_AUX_PCM_TX", "Quat AUX PCM Capture",
  22796. 0, 0, 0, 0),
  22797. SND_SOC_DAPM_AIF_OUT("QUIN_AUX_PCM_RX", "Quin AUX PCM Playback",
  22798. 0, 0, 0, 0),
  22799. SND_SOC_DAPM_AIF_IN("QUIN_AUX_PCM_TX", "Quin AUX PCM Capture",
  22800. 0, 0, 0, 0),
  22801. SND_SOC_DAPM_AIF_OUT("SEN_AUX_PCM_RX", "Sen AUX PCM Playback",
  22802. 0, 0, 0, 0),
  22803. SND_SOC_DAPM_AIF_IN("SEN_AUX_PCM_TX", "Sen AUX PCM Capture",
  22804. 0, 0, 0, 0),
  22805. SND_SOC_DAPM_AIF_IN("VOICE_STUB_DL", "VOICE_STUB Playback", 0, 0, 0, 0),
  22806. SND_SOC_DAPM_AIF_OUT("VOICE_STUB_UL", "VOICE_STUB Capture", 0, 0, 0, 0),
  22807. SND_SOC_DAPM_AIF_IN("VOICE2_STUB_DL", "VOICE2_STUB Playback",
  22808. 0, 0, 0, 0),
  22809. SND_SOC_DAPM_AIF_OUT("VOICE2_STUB_UL", "VOICE2_STUB Capture",
  22810. 0, 0, 0, 0),
  22811. SND_SOC_DAPM_AIF_IN("VOLTE_STUB_DL", "VOLTE_STUB Playback", 0, 0, 0, 0),
  22812. SND_SOC_DAPM_AIF_OUT("VOLTE_STUB_UL", "VOLTE_STUB Capture", 0, 0, 0, 0),
  22813. SND_SOC_DAPM_AIF_OUT("STUB_RX", "Stub Playback", 0, 0, 0, 0),
  22814. SND_SOC_DAPM_AIF_IN("STUB_TX", "Stub Capture", 0, 0, 0, 0),
  22815. SND_SOC_DAPM_AIF_OUT("SLIMBUS_1_RX", "Slimbus1 Playback", 0, 0, 0, 0),
  22816. SND_SOC_DAPM_AIF_IN("SLIMBUS_1_TX", "Slimbus1 Capture", 0, 0, 0, 0),
  22817. SND_SOC_DAPM_AIF_IN("STUB_1_TX", "Stub1 Capture", 0, 0, 0, 0),
  22818. SND_SOC_DAPM_AIF_OUT("SLIMBUS_3_RX", "Slimbus3 Playback", 0, 0, 0, 0),
  22819. SND_SOC_DAPM_AIF_IN("SLIMBUS_3_TX", "Slimbus3 Capture", 0, 0, 0, 0),
  22820. /* In- call recording */
  22821. SND_SOC_DAPM_AIF_OUT("SLIMBUS_6_RX", "Slimbus6 Playback", 0, 0, 0, 0),
  22822. SND_SOC_DAPM_AIF_IN("SLIMBUS_6_TX", "Slimbus6 Capture", 0, 0, 0, 0),
  22823. SND_SOC_DAPM_AIF_IN("AFE_LOOPBACK_TX", "AFE Loopback Capture",
  22824. 0, 0, 0, 0),
  22825. SND_SOC_DAPM_AIF_OUT("SLIMBUS_7_RX", "Slimbus7 Playback", 0, 0, 0, 0),
  22826. SND_SOC_DAPM_AIF_IN("SLIMBUS_7_TX", "Slimbus7 Capture", 0, 0, 0, 0),
  22827. SND_SOC_DAPM_AIF_OUT("SLIMBUS_8_RX", "Slimbus8 Playback", 0, 0, 0, 0),
  22828. SND_SOC_DAPM_AIF_IN("SLIMBUS_8_TX", "Slimbus8 Capture", 0, 0, 0, 0),
  22829. SND_SOC_DAPM_AIF_OUT("SLIMBUS_9_RX", "Slimbus9 Playback", 0, 0, 0, 0),
  22830. SND_SOC_DAPM_AIF_IN("SLIMBUS_9_TX", "Slimbus9 Capture", 0, 0, 0, 0),
  22831. SND_SOC_DAPM_AIF_OUT("USB_AUDIO_RX", "USB Audio Playback", 0, 0, 0, 0),
  22832. SND_SOC_DAPM_AIF_IN("USB_AUDIO_TX", "USB Audio Capture", 0, 0, 0, 0),
  22833. /* Switch Definitions */
  22834. SND_SOC_DAPM_SWITCH("SLIMBUS_DL_HL", SND_SOC_NOPM, 0, 0,
  22835. &slim_fm_switch_mixer_controls),
  22836. SND_SOC_DAPM_SWITCH("SLIMBUS1_DL_HL", SND_SOC_NOPM, 0, 0,
  22837. &slim1_fm_switch_mixer_controls),
  22838. SND_SOC_DAPM_SWITCH("SLIMBUS3_DL_HL", SND_SOC_NOPM, 0, 0,
  22839. &slim3_fm_switch_mixer_controls),
  22840. SND_SOC_DAPM_SWITCH("SLIMBUS4_DL_HL", SND_SOC_NOPM, 0, 0,
  22841. &slim4_fm_switch_mixer_controls),
  22842. SND_SOC_DAPM_SWITCH("SLIMBUS6_DL_HL", SND_SOC_NOPM, 0, 0,
  22843. &slim6_fm_switch_mixer_controls),
  22844. SND_SOC_DAPM_SWITCH("PCM_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22845. &pcm_rx_switch_mixer_controls),
  22846. SND_SOC_DAPM_SWITCH("INT0_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22847. &int0_mi2s_rx_switch_mixer_controls),
  22848. SND_SOC_DAPM_SWITCH("INT4_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22849. &int4_mi2s_rx_switch_mixer_controls),
  22850. SND_SOC_DAPM_SWITCH("PRI_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22851. &pri_mi2s_rx_switch_mixer_controls),
  22852. SND_SOC_DAPM_SWITCH("SEC_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22853. &sec_mi2s_rx_switch_mixer_controls),
  22854. SND_SOC_DAPM_SWITCH("TERT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22855. &tert_mi2s_rx_switch_mixer_controls),
  22856. SND_SOC_DAPM_SWITCH("QUAT_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22857. &quat_mi2s_rx_switch_mixer_controls),
  22858. SND_SOC_DAPM_SWITCH("QUIN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22859. &quin_mi2s_rx_switch_mixer_controls),
  22860. SND_SOC_DAPM_SWITCH("SCO_SLIM7_DL_HL", SND_SOC_NOPM, 0, 0,
  22861. &sco_slim7_switch_mixer_controls),
  22862. SND_SOC_DAPM_SWITCH("SEN_MI2S_RX_DL_HL", SND_SOC_NOPM, 0, 0,
  22863. &sen_mi2s_rx_switch_mixer_controls),
  22864. SND_SOC_DAPM_SWITCH("HFP_PRI_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22865. &hfp_pri_aux_switch_mixer_controls),
  22866. SND_SOC_DAPM_SWITCH("HFP_AUX_UL_HL", SND_SOC_NOPM, 0, 0,
  22867. &hfp_aux_switch_mixer_controls),
  22868. SND_SOC_DAPM_SWITCH("HFP_INT_UL_HL", SND_SOC_NOPM, 0, 0,
  22869. &hfp_int_switch_mixer_controls),
  22870. SND_SOC_DAPM_SWITCH("HFP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22871. &hfp_slim7_switch_mixer_controls),
  22872. SND_SOC_DAPM_SWITCH("USB_DL_HL", SND_SOC_NOPM, 0, 0,
  22873. &usb_switch_mixer_controls),
  22874. SND_SOC_DAPM_SWITCH("A2DP_SLIM7_UL_HL", SND_SOC_NOPM, 0, 0,
  22875. &a2dp_slim7_switch_mixer_controls),
  22876. SND_SOC_DAPM_SWITCH("WSA_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22877. &cdc_dma_wsa_switch_mixer_controls),
  22878. SND_SOC_DAPM_SWITCH("RX_CDC_DMA_RX_0_DL_HL", SND_SOC_NOPM, 0, 0,
  22879. &cdc_dma_rx_switch_mixer_controls),
  22880. /* Mixer definitions */
  22881. SND_SOC_DAPM_MIXER("PRI_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22882. pri_i2s_rx_mixer_controls, ARRAY_SIZE(pri_i2s_rx_mixer_controls)),
  22883. SND_SOC_DAPM_MIXER("SEC_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22884. sec_i2s_rx_mixer_controls, ARRAY_SIZE(sec_i2s_rx_mixer_controls)),
  22885. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22886. slimbus_rx_mixer_controls, ARRAY_SIZE(slimbus_rx_mixer_controls)),
  22887. SND_SOC_DAPM_MIXER("SLIMBUS_2_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22888. slimbus_2_rx_mixer_controls, ARRAY_SIZE(slimbus_2_rx_mixer_controls)),
  22889. SND_SOC_DAPM_MIXER("SLIMBUS_5_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22890. slimbus_5_rx_mixer_controls, ARRAY_SIZE(slimbus_5_rx_mixer_controls)),
  22891. SND_SOC_DAPM_MIXER("SLIMBUS_7_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22892. slimbus_7_rx_mixer_controls, ARRAY_SIZE(slimbus_7_rx_mixer_controls)),
  22893. SND_SOC_DAPM_MIXER("SLIMBUS_9_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22894. slimbus_9_rx_mixer_controls, ARRAY_SIZE(slimbus_9_rx_mixer_controls)),
  22895. SND_SOC_DAPM_MIXER("HDMI Mixer", SND_SOC_NOPM, 0, 0,
  22896. hdmi_mixer_controls, ARRAY_SIZE(hdmi_mixer_controls)),
  22897. SND_SOC_DAPM_MIXER("DISPLAY_PORT Mixer", SND_SOC_NOPM, 0, 0,
  22898. display_port_mixer_controls, ARRAY_SIZE(display_port_mixer_controls)),
  22899. SND_SOC_DAPM_MIXER("DISPLAY_PORT1 Mixer", SND_SOC_NOPM, 0, 0,
  22900. display_port1_mixer_controls, ARRAY_SIZE(display_port1_mixer_controls)),
  22901. SND_SOC_DAPM_MIXER("PRI_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22902. pri_spdif_rx_mixer_controls, ARRAY_SIZE(pri_spdif_rx_mixer_controls)),
  22903. SND_SOC_DAPM_MIXER("SEC_SPDIF_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22904. sec_spdif_rx_mixer_controls, ARRAY_SIZE(sec_spdif_rx_mixer_controls)),
  22905. SND_SOC_DAPM_MIXER("MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22906. mi2s_rx_mixer_controls, ARRAY_SIZE(mi2s_rx_mixer_controls)),
  22907. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22908. quaternary_mi2s_rx_mixer_controls,
  22909. ARRAY_SIZE(quaternary_mi2s_rx_mixer_controls)),
  22910. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22911. tertiary_mi2s_rx_mixer_controls,
  22912. ARRAY_SIZE(tertiary_mi2s_rx_mixer_controls)),
  22913. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22914. secondary_mi2s_rx_mixer_controls,
  22915. ARRAY_SIZE(secondary_mi2s_rx_mixer_controls)),
  22916. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_SD1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22917. secondary_mi2s_rx2_mixer_controls,
  22918. ARRAY_SIZE(secondary_mi2s_rx2_mixer_controls)),
  22919. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22920. primary_mi2s_rx_mixer_controls,
  22921. ARRAY_SIZE(primary_mi2s_rx_mixer_controls)),
  22922. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22923. int0_mi2s_rx_mixer_controls,
  22924. ARRAY_SIZE(int0_mi2s_rx_mixer_controls)),
  22925. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22926. int4_mi2s_rx_mixer_controls,
  22927. ARRAY_SIZE(int4_mi2s_rx_mixer_controls)),
  22928. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22929. quinary_mi2s_rx_mixer_controls,
  22930. ARRAY_SIZE(quinary_mi2s_rx_mixer_controls)),
  22931. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  22932. senary_mi2s_rx_mixer_controls,
  22933. ARRAY_SIZE(senary_mi2s_rx_mixer_controls)),
  22934. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22935. pri_tdm_rx_0_mixer_controls,
  22936. ARRAY_SIZE(pri_tdm_rx_0_mixer_controls)),
  22937. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22938. pri_tdm_rx_1_mixer_controls,
  22939. ARRAY_SIZE(pri_tdm_rx_1_mixer_controls)),
  22940. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22941. pri_tdm_rx_2_mixer_controls,
  22942. ARRAY_SIZE(pri_tdm_rx_2_mixer_controls)),
  22943. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22944. pri_tdm_rx_3_mixer_controls,
  22945. ARRAY_SIZE(pri_tdm_rx_3_mixer_controls)),
  22946. SND_SOC_DAPM_MIXER("PRI_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22947. pri_tdm_tx_0_mixer_controls,
  22948. ARRAY_SIZE(pri_tdm_tx_0_mixer_controls)),
  22949. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22950. sec_tdm_rx_0_mixer_controls,
  22951. ARRAY_SIZE(sec_tdm_rx_0_mixer_controls)),
  22952. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22953. sec_tdm_rx_1_mixer_controls,
  22954. ARRAY_SIZE(sec_tdm_rx_1_mixer_controls)),
  22955. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22956. sec_tdm_rx_2_mixer_controls,
  22957. ARRAY_SIZE(sec_tdm_rx_2_mixer_controls)),
  22958. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22959. sec_tdm_rx_3_mixer_controls,
  22960. ARRAY_SIZE(sec_tdm_rx_3_mixer_controls)),
  22961. SND_SOC_DAPM_MIXER("SEC_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22962. sec_tdm_tx_0_mixer_controls,
  22963. ARRAY_SIZE(sec_tdm_tx_0_mixer_controls)),
  22964. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22965. tert_tdm_rx_0_mixer_controls,
  22966. ARRAY_SIZE(tert_tdm_rx_0_mixer_controls)),
  22967. SND_SOC_DAPM_MIXER("TERT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22968. tert_tdm_tx_0_mixer_controls,
  22969. ARRAY_SIZE(tert_tdm_tx_0_mixer_controls)),
  22970. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22971. tert_tdm_rx_1_mixer_controls,
  22972. ARRAY_SIZE(tert_tdm_rx_1_mixer_controls)),
  22973. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22974. tert_tdm_rx_2_mixer_controls,
  22975. ARRAY_SIZE(tert_tdm_rx_2_mixer_controls)),
  22976. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22977. tert_tdm_rx_3_mixer_controls,
  22978. ARRAY_SIZE(tert_tdm_rx_3_mixer_controls)),
  22979. SND_SOC_DAPM_MIXER("TERT_TDM_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22980. tert_tdm_rx_4_mixer_controls,
  22981. ARRAY_SIZE(tert_tdm_rx_4_mixer_controls)),
  22982. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22983. quat_tdm_rx_0_mixer_controls,
  22984. ARRAY_SIZE(quat_tdm_rx_0_mixer_controls)),
  22985. SND_SOC_DAPM_MIXER("QUAT_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22986. quat_tdm_tx_0_mixer_controls,
  22987. ARRAY_SIZE(quat_tdm_tx_0_mixer_controls)),
  22988. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22989. quat_tdm_rx_1_mixer_controls,
  22990. ARRAY_SIZE(quat_tdm_rx_1_mixer_controls)),
  22991. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22992. quat_tdm_rx_2_mixer_controls,
  22993. ARRAY_SIZE(quat_tdm_rx_2_mixer_controls)),
  22994. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22995. quat_tdm_rx_3_mixer_controls,
  22996. ARRAY_SIZE(quat_tdm_rx_3_mixer_controls)),
  22997. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  22998. quin_tdm_rx_0_mixer_controls,
  22999. ARRAY_SIZE(quin_tdm_rx_0_mixer_controls)),
  23000. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23001. quin_tdm_tx_0_mixer_controls,
  23002. ARRAY_SIZE(quin_tdm_tx_0_mixer_controls)),
  23003. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23004. quin_tdm_rx_1_mixer_controls,
  23005. ARRAY_SIZE(quin_tdm_rx_1_mixer_controls)),
  23006. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23007. quin_tdm_tx_1_mixer_controls,
  23008. ARRAY_SIZE(quin_tdm_tx_1_mixer_controls)),
  23009. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23010. quin_tdm_rx_2_mixer_controls,
  23011. ARRAY_SIZE(quin_tdm_rx_2_mixer_controls)),
  23012. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23013. quin_tdm_tx_2_mixer_controls,
  23014. ARRAY_SIZE(quin_tdm_tx_2_mixer_controls)),
  23015. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23016. quin_tdm_rx_3_mixer_controls,
  23017. ARRAY_SIZE(quin_tdm_rx_3_mixer_controls)),
  23018. SND_SOC_DAPM_MIXER("QUIN_TDM_TX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23019. quin_tdm_tx_3_mixer_controls,
  23020. ARRAY_SIZE(quin_tdm_tx_3_mixer_controls)),
  23021. SND_SOC_DAPM_MIXER("SEN_TDM_TX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23022. sen_tdm_tx_0_mixer_controls,
  23023. ARRAY_SIZE(sen_tdm_tx_0_mixer_controls)),
  23024. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23025. sen_tdm_rx_0_mixer_controls,
  23026. ARRAY_SIZE(sen_tdm_rx_0_mixer_controls)),
  23027. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23028. sen_tdm_rx_1_mixer_controls,
  23029. ARRAY_SIZE(sen_tdm_rx_1_mixer_controls)),
  23030. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23031. sen_tdm_rx_2_mixer_controls,
  23032. ARRAY_SIZE(sen_tdm_rx_2_mixer_controls)),
  23033. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23034. sen_tdm_rx_3_mixer_controls,
  23035. ARRAY_SIZE(sen_tdm_rx_3_mixer_controls)),
  23036. SND_SOC_DAPM_MIXER("PRI_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23037. pri_meta_mi2s_rx_mixer_controls,
  23038. ARRAY_SIZE(pri_meta_mi2s_rx_mixer_controls)),
  23039. SND_SOC_DAPM_MIXER("SEC_META_MI2S_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23040. sec_meta_mi2s_rx_mixer_controls,
  23041. ARRAY_SIZE(sec_meta_mi2s_rx_mixer_controls)),
  23042. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23043. wsa_cdc_dma_rx_0_mixer_controls,
  23044. ARRAY_SIZE(wsa_cdc_dma_rx_0_mixer_controls)),
  23045. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23046. wsa_cdc_dma_rx_1_mixer_controls,
  23047. ARRAY_SIZE(wsa_cdc_dma_rx_1_mixer_controls)),
  23048. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23049. rx_cdc_dma_rx_0_mixer_controls,
  23050. ARRAY_SIZE(rx_cdc_dma_rx_0_mixer_controls)),
  23051. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_1 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23052. rx_cdc_dma_rx_1_mixer_controls,
  23053. ARRAY_SIZE(rx_cdc_dma_rx_1_mixer_controls)),
  23054. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23055. rx_cdc_dma_rx_2_mixer_controls,
  23056. ARRAY_SIZE(rx_cdc_dma_rx_2_mixer_controls)),
  23057. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_3 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23058. rx_cdc_dma_rx_3_mixer_controls,
  23059. ARRAY_SIZE(rx_cdc_dma_rx_3_mixer_controls)),
  23060. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_4 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23061. rx_cdc_dma_rx_4_mixer_controls,
  23062. ARRAY_SIZE(rx_cdc_dma_rx_4_mixer_controls)),
  23063. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_5 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23064. rx_cdc_dma_rx_5_mixer_controls,
  23065. ARRAY_SIZE(rx_cdc_dma_rx_5_mixer_controls)),
  23066. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_6 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23067. rx_cdc_dma_rx_6_mixer_controls,
  23068. ARRAY_SIZE(rx_cdc_dma_rx_6_mixer_controls)),
  23069. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_7 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23070. rx_cdc_dma_rx_7_mixer_controls,
  23071. ARRAY_SIZE(rx_cdc_dma_rx_7_mixer_controls)),
  23072. SND_SOC_DAPM_MIXER("MultiMedia1 Mixer", SND_SOC_NOPM, 0, 0,
  23073. mmul1_mixer_controls, ARRAY_SIZE(mmul1_mixer_controls)),
  23074. SND_SOC_DAPM_MIXER("MultiMedia2 Mixer", SND_SOC_NOPM, 0, 0,
  23075. mmul2_mixer_controls, ARRAY_SIZE(mmul2_mixer_controls)),
  23076. SND_SOC_DAPM_MIXER("MultiMedia3 Mixer", SND_SOC_NOPM, 0, 0,
  23077. mmul3_mixer_controls, ARRAY_SIZE(mmul3_mixer_controls)),
  23078. SND_SOC_DAPM_MIXER("MultiMedia4 Mixer", SND_SOC_NOPM, 0, 0,
  23079. mmul4_mixer_controls, ARRAY_SIZE(mmul4_mixer_controls)),
  23080. SND_SOC_DAPM_MIXER("MultiMedia5 Mixer", SND_SOC_NOPM, 0, 0,
  23081. mmul5_mixer_controls, ARRAY_SIZE(mmul5_mixer_controls)),
  23082. SND_SOC_DAPM_MIXER("MultiMedia6 Mixer", SND_SOC_NOPM, 0, 0,
  23083. mmul6_mixer_controls, ARRAY_SIZE(mmul6_mixer_controls)),
  23084. SND_SOC_DAPM_MIXER("MultiMedia8 Mixer", SND_SOC_NOPM, 0, 0,
  23085. mmul8_mixer_controls, ARRAY_SIZE(mmul8_mixer_controls)),
  23086. SND_SOC_DAPM_MIXER("MultiMedia9 Mixer", SND_SOC_NOPM, 0, 0,
  23087. mmul9_mixer_controls, ARRAY_SIZE(mmul9_mixer_controls)),
  23088. SND_SOC_DAPM_MIXER("MultiMedia10 Mixer", SND_SOC_NOPM, 0, 0,
  23089. mmul10_mixer_controls, ARRAY_SIZE(mmul10_mixer_controls)),
  23090. SND_SOC_DAPM_MIXER("MultiMedia16 Mixer", SND_SOC_NOPM, 0, 0,
  23091. mmul16_mixer_controls, ARRAY_SIZE(mmul16_mixer_controls)),
  23092. SND_SOC_DAPM_MIXER("MultiMedia17 Mixer", SND_SOC_NOPM, 0, 0,
  23093. mmul17_mixer_controls, ARRAY_SIZE(mmul17_mixer_controls)),
  23094. SND_SOC_DAPM_MIXER("MultiMedia18 Mixer", SND_SOC_NOPM, 0, 0,
  23095. mmul18_mixer_controls, ARRAY_SIZE(mmul18_mixer_controls)),
  23096. SND_SOC_DAPM_MIXER("MultiMedia19 Mixer", SND_SOC_NOPM, 0, 0,
  23097. mmul19_mixer_controls, ARRAY_SIZE(mmul19_mixer_controls)),
  23098. SND_SOC_DAPM_MIXER("MultiMedia20 Mixer", SND_SOC_NOPM, 0, 0,
  23099. mmul20_mixer_controls, ARRAY_SIZE(mmul20_mixer_controls)),
  23100. SND_SOC_DAPM_MIXER("MultiMedia21 Mixer", SND_SOC_NOPM, 0, 0,
  23101. mmul21_mixer_controls, ARRAY_SIZE(mmul21_mixer_controls)),
  23102. SND_SOC_DAPM_MIXER("MultiMedia22 Mixer", SND_SOC_NOPM, 0, 0,
  23103. mmul22_mixer_controls, ARRAY_SIZE(mmul22_mixer_controls)),
  23104. SND_SOC_DAPM_MIXER("MultiMedia27 Mixer", SND_SOC_NOPM, 0, 0,
  23105. mmul27_mixer_controls, ARRAY_SIZE(mmul27_mixer_controls)),
  23106. SND_SOC_DAPM_MIXER("MultiMedia28 Mixer", SND_SOC_NOPM, 0, 0,
  23107. mmul28_mixer_controls, ARRAY_SIZE(mmul28_mixer_controls)),
  23108. SND_SOC_DAPM_MIXER("MultiMedia29 Mixer", SND_SOC_NOPM, 0, 0,
  23109. mmul29_mixer_controls, ARRAY_SIZE(mmul29_mixer_controls)),
  23110. SND_SOC_DAPM_MIXER("MultiMedia30 Mixer", SND_SOC_NOPM, 0, 0,
  23111. mmul30_mixer_controls, ARRAY_SIZE(mmul30_mixer_controls)),
  23112. SND_SOC_DAPM_MIXER("AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23113. auxpcm_rx_mixer_controls, ARRAY_SIZE(auxpcm_rx_mixer_controls)),
  23114. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23115. sec_auxpcm_rx_mixer_controls, ARRAY_SIZE(sec_auxpcm_rx_mixer_controls)),
  23116. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23117. tert_auxpcm_rx_mixer_controls,
  23118. ARRAY_SIZE(tert_auxpcm_rx_mixer_controls)),
  23119. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23120. quat_auxpcm_rx_mixer_controls,
  23121. ARRAY_SIZE(quat_auxpcm_rx_mixer_controls)),
  23122. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23123. quin_auxpcm_rx_mixer_controls,
  23124. ARRAY_SIZE(quin_auxpcm_rx_mixer_controls)),
  23125. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23126. sen_auxpcm_rx_mixer_controls,
  23127. ARRAY_SIZE(sen_auxpcm_rx_mixer_controls)),
  23128. /* incall */
  23129. SND_SOC_DAPM_MIXER("Incall_Music Audio Mixer", SND_SOC_NOPM, 0, 0,
  23130. incall_music_delivery_mixer_controls,
  23131. ARRAY_SIZE(incall_music_delivery_mixer_controls)),
  23132. SND_SOC_DAPM_MIXER("Incall_Music_2 Audio Mixer", SND_SOC_NOPM, 0, 0,
  23133. incall_music2_delivery_mixer_controls,
  23134. ARRAY_SIZE(incall_music2_delivery_mixer_controls)),
  23135. SND_SOC_DAPM_MIXER("SLIMBUS_4_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23136. slimbus_4_rx_mixer_controls,
  23137. ARRAY_SIZE(slimbus_4_rx_mixer_controls)),
  23138. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23139. slimbus_6_rx_mixer_controls,
  23140. ARRAY_SIZE(slimbus_6_rx_mixer_controls)),
  23141. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23142. usb_audio_rx_mixer_controls,
  23143. ARRAY_SIZE(usb_audio_rx_mixer_controls)),
  23144. /* Voice Mixer */
  23145. SND_SOC_DAPM_MIXER("PRI_RX_Voice Mixer",
  23146. SND_SOC_NOPM, 0, 0, pri_rx_voice_mixer_controls,
  23147. ARRAY_SIZE(pri_rx_voice_mixer_controls)),
  23148. SND_SOC_DAPM_MIXER("SEC_RX_Voice Mixer",
  23149. SND_SOC_NOPM, 0, 0,
  23150. sec_i2s_rx_voice_mixer_controls,
  23151. ARRAY_SIZE(sec_i2s_rx_voice_mixer_controls)),
  23152. SND_SOC_DAPM_MIXER("SEC_MI2S_RX_Voice Mixer",
  23153. SND_SOC_NOPM, 0, 0,
  23154. sec_mi2s_rx_voice_mixer_controls,
  23155. ARRAY_SIZE(sec_mi2s_rx_voice_mixer_controls)),
  23156. SND_SOC_DAPM_MIXER("SLIM_0_RX_Voice Mixer",
  23157. SND_SOC_NOPM, 0, 0,
  23158. slimbus_rx_voice_mixer_controls,
  23159. ARRAY_SIZE(slimbus_rx_voice_mixer_controls)),
  23160. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX_Voice Mixer",
  23161. SND_SOC_NOPM, 0, 0,
  23162. bt_sco_rx_voice_mixer_controls,
  23163. ARRAY_SIZE(bt_sco_rx_voice_mixer_controls)),
  23164. SND_SOC_DAPM_MIXER("AFE_PCM_RX_Voice Mixer",
  23165. SND_SOC_NOPM, 0, 0,
  23166. afe_pcm_rx_voice_mixer_controls,
  23167. ARRAY_SIZE(afe_pcm_rx_voice_mixer_controls)),
  23168. SND_SOC_DAPM_MIXER("AUX_PCM_RX_Voice Mixer",
  23169. SND_SOC_NOPM, 0, 0,
  23170. aux_pcm_rx_voice_mixer_controls,
  23171. ARRAY_SIZE(aux_pcm_rx_voice_mixer_controls)),
  23172. SND_SOC_DAPM_MIXER("SEC_AUX_PCM_RX_Voice Mixer",
  23173. SND_SOC_NOPM, 0, 0,
  23174. sec_aux_pcm_rx_voice_mixer_controls,
  23175. ARRAY_SIZE(sec_aux_pcm_rx_voice_mixer_controls)),
  23176. SND_SOC_DAPM_MIXER("TERT_AUX_PCM_RX_Voice Mixer",
  23177. SND_SOC_NOPM, 0, 0,
  23178. tert_aux_pcm_rx_voice_mixer_controls,
  23179. ARRAY_SIZE(tert_aux_pcm_rx_voice_mixer_controls)),
  23180. SND_SOC_DAPM_MIXER("QUAT_AUX_PCM_RX_Voice Mixer",
  23181. SND_SOC_NOPM, 0, 0,
  23182. quat_aux_pcm_rx_voice_mixer_controls,
  23183. ARRAY_SIZE(quat_aux_pcm_rx_voice_mixer_controls)),
  23184. SND_SOC_DAPM_MIXER("QUIN_AUX_PCM_RX_Voice Mixer",
  23185. SND_SOC_NOPM, 0, 0,
  23186. quin_aux_pcm_rx_voice_mixer_controls,
  23187. ARRAY_SIZE(quin_aux_pcm_rx_voice_mixer_controls)),
  23188. SND_SOC_DAPM_MIXER("SEN_AUX_PCM_RX_Voice Mixer",
  23189. SND_SOC_NOPM, 0, 0,
  23190. sen_aux_pcm_rx_voice_mixer_controls,
  23191. ARRAY_SIZE(sen_aux_pcm_rx_voice_mixer_controls)),
  23192. SND_SOC_DAPM_MIXER("HDMI_RX_Voice Mixer",
  23193. SND_SOC_NOPM, 0, 0,
  23194. hdmi_rx_voice_mixer_controls,
  23195. ARRAY_SIZE(hdmi_rx_voice_mixer_controls)),
  23196. SND_SOC_DAPM_MIXER("MI2S_RX_Voice Mixer",
  23197. SND_SOC_NOPM, 0, 0,
  23198. mi2s_rx_voice_mixer_controls,
  23199. ARRAY_SIZE(mi2s_rx_voice_mixer_controls)),
  23200. SND_SOC_DAPM_MIXER("PRI_MI2S_RX_Voice Mixer",
  23201. SND_SOC_NOPM, 0, 0,
  23202. pri_mi2s_rx_voice_mixer_controls,
  23203. ARRAY_SIZE(pri_mi2s_rx_voice_mixer_controls)),
  23204. SND_SOC_DAPM_MIXER("INT0_MI2S_RX_Voice Mixer",
  23205. SND_SOC_NOPM, 0, 0,
  23206. int0_mi2s_rx_voice_mixer_controls,
  23207. ARRAY_SIZE(int0_mi2s_rx_voice_mixer_controls)),
  23208. SND_SOC_DAPM_MIXER("INT4_MI2S_RX_Voice Mixer",
  23209. SND_SOC_NOPM, 0, 0,
  23210. int4_mi2s_rx_voice_mixer_controls,
  23211. ARRAY_SIZE(int4_mi2s_rx_voice_mixer_controls)),
  23212. SND_SOC_DAPM_MIXER("TERT_MI2S_RX_Voice Mixer",
  23213. SND_SOC_NOPM, 0, 0,
  23214. tert_mi2s_rx_voice_mixer_controls,
  23215. ARRAY_SIZE(tert_mi2s_rx_voice_mixer_controls)),
  23216. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX_Voice Mixer",
  23217. SND_SOC_NOPM, 0, 0,
  23218. quat_mi2s_rx_voice_mixer_controls,
  23219. ARRAY_SIZE(quat_mi2s_rx_voice_mixer_controls)),
  23220. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX_Voice Mixer",
  23221. SND_SOC_NOPM, 0, 0,
  23222. quin_mi2s_rx_voice_mixer_controls,
  23223. ARRAY_SIZE(quin_mi2s_rx_voice_mixer_controls)),
  23224. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0_Voice Mixer",
  23225. SND_SOC_NOPM, 0, 0,
  23226. pri_tdm_rx_0_voice_mixer_controls,
  23227. ARRAY_SIZE(pri_tdm_rx_0_voice_mixer_controls)),
  23228. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1_Voice Mixer",
  23229. SND_SOC_NOPM, 0, 0,
  23230. pri_tdm_rx_1_voice_mixer_controls,
  23231. ARRAY_SIZE(pri_tdm_rx_1_voice_mixer_controls)),
  23232. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2_Voice Mixer",
  23233. SND_SOC_NOPM, 0, 0,
  23234. pri_tdm_rx_2_voice_mixer_controls,
  23235. ARRAY_SIZE(pri_tdm_rx_2_voice_mixer_controls)),
  23236. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3_Voice Mixer",
  23237. SND_SOC_NOPM, 0, 0,
  23238. pri_tdm_rx_3_voice_mixer_controls,
  23239. ARRAY_SIZE(pri_tdm_rx_3_voice_mixer_controls)),
  23240. SND_SOC_DAPM_MIXER("SEN_MI2S_RX_Voice Mixer",
  23241. SND_SOC_NOPM, 0, 0,
  23242. sen_mi2s_rx_voice_mixer_controls,
  23243. ARRAY_SIZE(sen_mi2s_rx_voice_mixer_controls)),
  23244. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2_Voice Mixer",
  23245. SND_SOC_NOPM, 0, 0,
  23246. quat_tdm_rx_2_voice_mixer_controls,
  23247. ARRAY_SIZE(quat_tdm_rx_2_voice_mixer_controls)),
  23248. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2_Voice Mixer",
  23249. SND_SOC_NOPM, 0, 0,
  23250. quin_tdm_rx_2_voice_mixer_controls,
  23251. ARRAY_SIZE(quin_tdm_rx_2_voice_mixer_controls)),
  23252. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0_Voice Mixer",
  23253. SND_SOC_NOPM, 0, 0,
  23254. wsa_cdc_dma_rx_0_voice_mixer_controls,
  23255. ARRAY_SIZE(wsa_cdc_dma_rx_0_voice_mixer_controls)),
  23256. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0_Voice Mixer",
  23257. SND_SOC_NOPM, 0, 0,
  23258. rx_cdc_dma_rx_0_voice_mixer_controls,
  23259. ARRAY_SIZE(rx_cdc_dma_rx_0_voice_mixer_controls)),
  23260. SND_SOC_DAPM_MIXER("Voip_Tx Mixer",
  23261. SND_SOC_NOPM, 0, 0, tx_voip_mixer_controls,
  23262. ARRAY_SIZE(tx_voip_mixer_controls)),
  23263. SND_SOC_DAPM_MIXER("VoiceMMode1_Tx Mixer",
  23264. SND_SOC_NOPM, 0, 0, tx_voicemmode1_mixer_controls,
  23265. ARRAY_SIZE(tx_voicemmode1_mixer_controls)),
  23266. SND_SOC_DAPM_MIXER("VoiceMMode2_Tx Mixer",
  23267. SND_SOC_NOPM, 0, 0, tx_voicemmode2_mixer_controls,
  23268. ARRAY_SIZE(tx_voicemmode2_mixer_controls)),
  23269. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23270. int_bt_sco_rx_mixer_controls, ARRAY_SIZE(int_bt_sco_rx_mixer_controls)),
  23271. SND_SOC_DAPM_MIXER("INTERNAL_A2DP_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23272. int_bt_a2dp_rx_mixer_controls,
  23273. ARRAY_SIZE(int_bt_a2dp_rx_mixer_controls)),
  23274. SND_SOC_DAPM_MIXER("INTERNAL_FM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23275. int_fm_rx_mixer_controls, ARRAY_SIZE(int_fm_rx_mixer_controls)),
  23276. SND_SOC_DAPM_MIXER("AFE_PCM_RX Audio Mixer", SND_SOC_NOPM, 0, 0,
  23277. afe_pcm_rx_mixer_controls, ARRAY_SIZE(afe_pcm_rx_mixer_controls)),
  23278. SND_SOC_DAPM_MIXER("Voice Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23279. tx_voice_stub_mixer_controls, ARRAY_SIZE(tx_voice_stub_mixer_controls)),
  23280. SND_SOC_DAPM_MIXER("Voice2 Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23281. tx_voice2_stub_mixer_controls,
  23282. ARRAY_SIZE(tx_voice2_stub_mixer_controls)),
  23283. SND_SOC_DAPM_MIXER("VoLTE Stub Tx Mixer", SND_SOC_NOPM, 0, 0,
  23284. tx_volte_stub_mixer_controls, ARRAY_SIZE(tx_volte_stub_mixer_controls)),
  23285. SND_SOC_DAPM_MIXER("STUB_RX Mixer", SND_SOC_NOPM, 0, 0,
  23286. stub_rx_mixer_controls, ARRAY_SIZE(stub_rx_mixer_controls)),
  23287. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Mixer", SND_SOC_NOPM, 0, 0,
  23288. slimbus_1_rx_mixer_controls, ARRAY_SIZE(slimbus_1_rx_mixer_controls)),
  23289. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23290. slimbus_3_rx_mixer_controls, ARRAY_SIZE(slimbus_3_rx_mixer_controls)),
  23291. SND_SOC_DAPM_MIXER("SLIM_6_RX_Voice Mixer",
  23292. SND_SOC_NOPM, 0, 0,
  23293. slimbus_6_rx_voice_mixer_controls,
  23294. ARRAY_SIZE(slimbus_6_rx_voice_mixer_controls)),
  23295. SND_SOC_DAPM_MIXER("SLIM_7_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23296. slimbus_7_rx_voice_mixer_controls,
  23297. ARRAY_SIZE(slimbus_7_rx_voice_mixer_controls)),
  23298. SND_SOC_DAPM_MIXER("SLIM_8_RX_Voice Mixer", SND_SOC_NOPM, 0, 0,
  23299. slimbus_8_rx_voice_mixer_controls,
  23300. ARRAY_SIZE(slimbus_8_rx_voice_mixer_controls)),
  23301. /* port mixer */
  23302. SND_SOC_DAPM_MIXER("SLIMBUS_0_RX Port Mixer",
  23303. SND_SOC_NOPM, 0, 0, sbus_0_rx_port_mixer_controls,
  23304. ARRAY_SIZE(sbus_0_rx_port_mixer_controls)),
  23305. SND_SOC_DAPM_MIXER("AUX_PCM_RX Port Mixer",
  23306. SND_SOC_NOPM, 0, 0, aux_pcm_rx_port_mixer_controls,
  23307. ARRAY_SIZE(aux_pcm_rx_port_mixer_controls)),
  23308. SND_SOC_DAPM_MIXER("SEC_AUXPCM_RX Port Mixer",
  23309. SND_SOC_NOPM, 0, 0, sec_auxpcm_rx_port_mixer_controls,
  23310. ARRAY_SIZE(sec_auxpcm_rx_port_mixer_controls)),
  23311. SND_SOC_DAPM_MIXER("TERT_AUXPCM_RX Port Mixer",
  23312. SND_SOC_NOPM, 0, 0, tert_auxpcm_rx_port_mixer_controls,
  23313. ARRAY_SIZE(tert_auxpcm_rx_port_mixer_controls)),
  23314. SND_SOC_DAPM_MIXER("QUAT_AUXPCM_RX Port Mixer",
  23315. SND_SOC_NOPM, 0, 0, quat_auxpcm_rx_port_mixer_controls,
  23316. ARRAY_SIZE(quat_auxpcm_rx_port_mixer_controls)),
  23317. SND_SOC_DAPM_MIXER("QUIN_AUXPCM_RX Port Mixer",
  23318. SND_SOC_NOPM, 0, 0, quin_auxpcm_rx_port_mixer_controls,
  23319. ARRAY_SIZE(quin_auxpcm_rx_port_mixer_controls)),
  23320. SND_SOC_DAPM_MIXER("SEN_AUXPCM_RX Port Mixer",
  23321. SND_SOC_NOPM, 0, 0, sen_auxpcm_rx_port_mixer_controls,
  23322. ARRAY_SIZE(sen_auxpcm_rx_port_mixer_controls)),
  23323. SND_SOC_DAPM_MIXER("SLIMBUS_1_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23324. sbus_1_rx_port_mixer_controls,
  23325. ARRAY_SIZE(sbus_1_rx_port_mixer_controls)),
  23326. SND_SOC_DAPM_MIXER("INTERNAL_BT_SCO_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23327. bt_sco_rx_port_mixer_controls,
  23328. ARRAY_SIZE(bt_sco_rx_port_mixer_controls)),
  23329. SND_SOC_DAPM_MIXER("AFE_PCM_RX Port Mixer",
  23330. SND_SOC_NOPM, 0, 0, afe_pcm_rx_port_mixer_controls,
  23331. ARRAY_SIZE(afe_pcm_rx_port_mixer_controls)),
  23332. SND_SOC_DAPM_MIXER("HDMI_RX Port Mixer",
  23333. SND_SOC_NOPM, 0, 0, hdmi_rx_port_mixer_controls,
  23334. ARRAY_SIZE(hdmi_rx_port_mixer_controls)),
  23335. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX Port Mixer",
  23336. SND_SOC_NOPM, 0, 0, display_port_rx_port_mixer_controls,
  23337. ARRAY_SIZE(display_port_rx_port_mixer_controls)),
  23338. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1 Port Mixer",
  23339. SND_SOC_NOPM, 0, 0, display_port_rx1_port_mixer_controls,
  23340. ARRAY_SIZE(display_port_rx1_port_mixer_controls)),
  23341. SND_SOC_DAPM_MIXER("SEC_I2S_RX Port Mixer",
  23342. SND_SOC_NOPM, 0, 0, sec_i2s_rx_port_mixer_controls,
  23343. ARRAY_SIZE(sec_i2s_rx_port_mixer_controls)),
  23344. SND_SOC_DAPM_MIXER("SLIMBUS_3_RX Port Mixer",
  23345. SND_SOC_NOPM, 0, 0, sbus_3_rx_port_mixer_controls,
  23346. ARRAY_SIZE(sbus_3_rx_port_mixer_controls)),
  23347. SND_SOC_DAPM_MIXER("SLIMBUS_6_RX Port Mixer",
  23348. SND_SOC_NOPM, 0, 0, sbus_6_rx_port_mixer_controls,
  23349. ARRAY_SIZE(sbus_6_rx_port_mixer_controls)),
  23350. SND_SOC_DAPM_MIXER("MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23351. mi2s_rx_port_mixer_controls, ARRAY_SIZE(mi2s_rx_port_mixer_controls)),
  23352. SND_SOC_DAPM_MIXER("PRI_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23353. primary_mi2s_rx_port_mixer_controls,
  23354. ARRAY_SIZE(primary_mi2s_rx_port_mixer_controls)),
  23355. SND_SOC_DAPM_MIXER("SEC_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23356. sec_mi2s_rx_port_mixer_controls,
  23357. ARRAY_SIZE(sec_mi2s_rx_port_mixer_controls)),
  23358. SND_SOC_DAPM_MIXER("TERT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23359. tert_mi2s_rx_port_mixer_controls,
  23360. ARRAY_SIZE(tert_mi2s_rx_port_mixer_controls)),
  23361. SND_SOC_DAPM_MIXER("QUAT_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23362. quat_mi2s_rx_port_mixer_controls,
  23363. ARRAY_SIZE(quat_mi2s_rx_port_mixer_controls)),
  23364. SND_SOC_DAPM_MIXER("QUIN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23365. quin_mi2s_rx_port_mixer_controls,
  23366. ARRAY_SIZE(quin_mi2s_rx_port_mixer_controls)),
  23367. SND_SOC_DAPM_MIXER("SEN_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23368. sen_mi2s_rx_port_mixer_controls,
  23369. ARRAY_SIZE(sen_mi2s_rx_port_mixer_controls)),
  23370. SND_SOC_DAPM_MIXER("PRI_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23371. pri_tdm_rx_0_port_mixer_controls,
  23372. ARRAY_SIZE(pri_tdm_rx_0_port_mixer_controls)),
  23373. SND_SOC_DAPM_MIXER("PRI_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23374. pri_tdm_rx_1_port_mixer_controls,
  23375. ARRAY_SIZE(pri_tdm_rx_1_port_mixer_controls)),
  23376. SND_SOC_DAPM_MIXER("PRI_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23377. pri_tdm_rx_2_port_mixer_controls,
  23378. ARRAY_SIZE(pri_tdm_rx_2_port_mixer_controls)),
  23379. SND_SOC_DAPM_MIXER("PRI_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23380. pri_tdm_rx_3_port_mixer_controls,
  23381. ARRAY_SIZE(pri_tdm_rx_3_port_mixer_controls)),
  23382. SND_SOC_DAPM_MIXER("SEC_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23383. sec_tdm_rx_0_port_mixer_controls,
  23384. ARRAY_SIZE(sec_tdm_rx_0_port_mixer_controls)),
  23385. SND_SOC_DAPM_MIXER("SEC_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23386. sec_tdm_rx_1_port_mixer_controls,
  23387. ARRAY_SIZE(sec_tdm_rx_1_port_mixer_controls)),
  23388. SND_SOC_DAPM_MIXER("SEC_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23389. sec_tdm_rx_2_port_mixer_controls,
  23390. ARRAY_SIZE(sec_tdm_rx_2_port_mixer_controls)),
  23391. SND_SOC_DAPM_MIXER("SEC_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23392. sec_tdm_rx_3_port_mixer_controls,
  23393. ARRAY_SIZE(sec_tdm_rx_3_port_mixer_controls)),
  23394. SND_SOC_DAPM_MIXER("SEC_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23395. sec_tdm_rx_7_port_mixer_controls,
  23396. ARRAY_SIZE(sec_tdm_rx_7_port_mixer_controls)),
  23397. SND_SOC_DAPM_MIXER("TERT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23398. tert_tdm_rx_0_port_mixer_controls,
  23399. ARRAY_SIZE(tert_tdm_rx_0_port_mixer_controls)),
  23400. SND_SOC_DAPM_MIXER("TERT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23401. tert_tdm_rx_1_port_mixer_controls,
  23402. ARRAY_SIZE(tert_tdm_rx_1_port_mixer_controls)),
  23403. SND_SOC_DAPM_MIXER("TERT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23404. tert_tdm_rx_2_port_mixer_controls,
  23405. ARRAY_SIZE(tert_tdm_rx_2_port_mixer_controls)),
  23406. SND_SOC_DAPM_MIXER("TERT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23407. tert_tdm_rx_3_port_mixer_controls,
  23408. ARRAY_SIZE(tert_tdm_rx_3_port_mixer_controls)),
  23409. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23410. quat_tdm_rx_0_port_mixer_controls,
  23411. ARRAY_SIZE(quat_tdm_rx_0_port_mixer_controls)),
  23412. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23413. quat_tdm_rx_1_port_mixer_controls,
  23414. ARRAY_SIZE(quat_tdm_rx_1_port_mixer_controls)),
  23415. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23416. quat_tdm_rx_2_port_mixer_controls,
  23417. ARRAY_SIZE(quat_tdm_rx_2_port_mixer_controls)),
  23418. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23419. quat_tdm_rx_3_port_mixer_controls,
  23420. ARRAY_SIZE(quat_tdm_rx_3_port_mixer_controls)),
  23421. SND_SOC_DAPM_MIXER("QUAT_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23422. quat_tdm_rx_7_port_mixer_controls,
  23423. ARRAY_SIZE(quat_tdm_rx_7_port_mixer_controls)),
  23424. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23425. quin_tdm_rx_0_port_mixer_controls,
  23426. ARRAY_SIZE(quin_tdm_rx_0_port_mixer_controls)),
  23427. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23428. quin_tdm_rx_1_port_mixer_controls,
  23429. ARRAY_SIZE(quin_tdm_rx_1_port_mixer_controls)),
  23430. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23431. quin_tdm_rx_2_port_mixer_controls,
  23432. ARRAY_SIZE(quin_tdm_rx_2_port_mixer_controls)),
  23433. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23434. quin_tdm_rx_3_port_mixer_controls,
  23435. ARRAY_SIZE(quin_tdm_rx_3_port_mixer_controls)),
  23436. SND_SOC_DAPM_MIXER("QUIN_TDM_RX_7 Port Mixer", SND_SOC_NOPM, 0, 0,
  23437. quin_tdm_rx_7_port_mixer_controls,
  23438. ARRAY_SIZE(quin_tdm_rx_7_port_mixer_controls)),
  23439. SND_SOC_DAPM_MIXER("SEN_TDM_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23440. sen_tdm_rx_0_port_mixer_controls,
  23441. ARRAY_SIZE(sen_tdm_rx_0_port_mixer_controls)),
  23442. SND_SOC_DAPM_MIXER("SEN_TDM_RX_1 Port Mixer", SND_SOC_NOPM, 0, 0,
  23443. sen_tdm_rx_1_port_mixer_controls,
  23444. ARRAY_SIZE(sen_tdm_rx_1_port_mixer_controls)),
  23445. SND_SOC_DAPM_MIXER("SEN_TDM_RX_2 Port Mixer", SND_SOC_NOPM, 0, 0,
  23446. sen_tdm_rx_2_port_mixer_controls,
  23447. ARRAY_SIZE(sen_tdm_rx_2_port_mixer_controls)),
  23448. SND_SOC_DAPM_MIXER("SEN_TDM_RX_3 Port Mixer", SND_SOC_NOPM, 0, 0,
  23449. sen_tdm_rx_3_port_mixer_controls,
  23450. ARRAY_SIZE(sen_tdm_rx_3_port_mixer_controls)),
  23451. SND_SOC_DAPM_MIXER("INT0_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23452. int0_mi2s_rx_port_mixer_controls,
  23453. ARRAY_SIZE(int0_mi2s_rx_port_mixer_controls)),
  23454. SND_SOC_DAPM_MIXER("INT4_MI2S_RX Port Mixer", SND_SOC_NOPM, 0, 0,
  23455. int4_mi2s_rx_port_mixer_controls,
  23456. ARRAY_SIZE(int4_mi2s_rx_port_mixer_controls)),
  23457. SND_SOC_DAPM_MIXER("WSA_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23458. wsa_cdc_dma_rx_0_port_mixer_controls,
  23459. ARRAY_SIZE(wsa_cdc_dma_rx_0_port_mixer_controls)),
  23460. SND_SOC_DAPM_MIXER("RX_CDC_DMA_RX_0 Port Mixer", SND_SOC_NOPM, 0, 0,
  23461. rx_cdc_dma_rx_0_port_mixer_controls,
  23462. ARRAY_SIZE(rx_cdc_dma_rx_0_port_mixer_controls)),
  23463. SND_SOC_DAPM_MIXER("QCHAT_Tx Mixer",
  23464. SND_SOC_NOPM, 0, 0, tx_qchat_mixer_controls,
  23465. ARRAY_SIZE(tx_qchat_mixer_controls)),
  23466. SND_SOC_DAPM_MIXER("USB_AUDIO_RX_Voice Mixer",
  23467. SND_SOC_NOPM, 0, 0, usb_audio_rx_voice_mixer_controls,
  23468. ARRAY_SIZE(usb_audio_rx_voice_mixer_controls)),
  23469. SND_SOC_DAPM_MIXER("USB_AUDIO_RX Port Mixer",
  23470. SND_SOC_NOPM, 0, 0, usb_rx_port_mixer_controls,
  23471. ARRAY_SIZE(usb_rx_port_mixer_controls)),
  23472. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX_Voice Mixer",
  23473. SND_SOC_NOPM, 0, 0, display_port_rx_voice_mixer_controls,
  23474. ARRAY_SIZE(display_port_rx_voice_mixer_controls)),
  23475. SND_SOC_DAPM_MIXER("DISPLAY_PORT_RX1_Voice Mixer",
  23476. SND_SOC_NOPM, 0, 0, display_port_rx1_voice_mixer_controls,
  23477. ARRAY_SIZE(display_port_rx1_voice_mixer_controls)),
  23478. /* lsm mixer definitions */
  23479. SND_SOC_DAPM_MIXER("LSM1 Mixer", SND_SOC_NOPM, 0, 0,
  23480. lsm1_mixer_controls, ARRAY_SIZE(lsm1_mixer_controls)),
  23481. SND_SOC_DAPM_MIXER("LSM2 Mixer", SND_SOC_NOPM, 0, 0,
  23482. lsm2_mixer_controls, ARRAY_SIZE(lsm2_mixer_controls)),
  23483. SND_SOC_DAPM_MIXER("LSM3 Mixer", SND_SOC_NOPM, 0, 0,
  23484. lsm3_mixer_controls, ARRAY_SIZE(lsm3_mixer_controls)),
  23485. SND_SOC_DAPM_MIXER("LSM4 Mixer", SND_SOC_NOPM, 0, 0,
  23486. lsm4_mixer_controls, ARRAY_SIZE(lsm4_mixer_controls)),
  23487. SND_SOC_DAPM_MIXER("LSM5 Mixer", SND_SOC_NOPM, 0, 0,
  23488. lsm5_mixer_controls, ARRAY_SIZE(lsm5_mixer_controls)),
  23489. SND_SOC_DAPM_MIXER("LSM6 Mixer", SND_SOC_NOPM, 0, 0,
  23490. lsm6_mixer_controls, ARRAY_SIZE(lsm6_mixer_controls)),
  23491. SND_SOC_DAPM_MIXER("LSM7 Mixer", SND_SOC_NOPM, 0, 0,
  23492. lsm7_mixer_controls, ARRAY_SIZE(lsm7_mixer_controls)),
  23493. SND_SOC_DAPM_MIXER("LSM8 Mixer", SND_SOC_NOPM, 0, 0,
  23494. lsm8_mixer_controls, ARRAY_SIZE(lsm8_mixer_controls)),
  23495. /* Virtual Pins to force backends ON atm */
  23496. SND_SOC_DAPM_OUTPUT("BE_OUT"),
  23497. SND_SOC_DAPM_INPUT("BE_IN"),
  23498. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23499. &slim0_rx_vi_fb_lch_mux),
  23500. SND_SOC_DAPM_MUX("SLIM0_RX_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23501. &slim0_rx_vi_fb_rch_mux),
  23502. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_LCH_MUX", SND_SOC_NOPM, 0, 0,
  23503. &wsa_rx_0_vi_fb_lch_mux),
  23504. SND_SOC_DAPM_MUX("WSA_RX_0_VI_FB_RCH_MUX", SND_SOC_NOPM, 0, 0,
  23505. &wsa_rx_0_vi_fb_rch_mux),
  23506. SND_SOC_DAPM_MUX("PRI_MI2S_RX_VI_FB_MUX", SND_SOC_NOPM, 0, 0,
  23507. &mi2s_rx_vi_fb_mux),
  23508. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_MONO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23509. &int4_mi2s_rx_vi_fb_mono_ch_mux),
  23510. SND_SOC_DAPM_MUX("INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", SND_SOC_NOPM, 0, 0,
  23511. &int4_mi2s_rx_vi_fb_stereo_ch_mux),
  23512. SND_SOC_DAPM_MUX("VOC_EXT_EC MUX", SND_SOC_NOPM, 0, 0,
  23513. &voc_ext_ec_mux),
  23514. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL1 MUX", SND_SOC_NOPM, 0, 0,
  23515. &ext_ec_ref_mux_ul1),
  23516. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL2 MUX", SND_SOC_NOPM, 0, 0,
  23517. &ext_ec_ref_mux_ul2),
  23518. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL3 MUX", SND_SOC_NOPM, 0, 0,
  23519. &ext_ec_ref_mux_ul3),
  23520. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL4 MUX", SND_SOC_NOPM, 0, 0,
  23521. &ext_ec_ref_mux_ul4),
  23522. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL5 MUX", SND_SOC_NOPM, 0, 0,
  23523. &ext_ec_ref_mux_ul5),
  23524. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL6 MUX", SND_SOC_NOPM, 0, 0,
  23525. &ext_ec_ref_mux_ul6),
  23526. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL8 MUX", SND_SOC_NOPM, 0, 0,
  23527. &ext_ec_ref_mux_ul8),
  23528. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL9 MUX", SND_SOC_NOPM, 0, 0,
  23529. &ext_ec_ref_mux_ul9),
  23530. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL10 MUX", SND_SOC_NOPM, 0, 0,
  23531. &ext_ec_ref_mux_ul10),
  23532. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL16 MUX", SND_SOC_NOPM, 0, 0,
  23533. &ext_ec_ref_mux_ul16),
  23534. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL17 MUX", SND_SOC_NOPM, 0, 0,
  23535. &ext_ec_ref_mux_ul17),
  23536. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL18 MUX", SND_SOC_NOPM, 0, 0,
  23537. &ext_ec_ref_mux_ul18),
  23538. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL19 MUX", SND_SOC_NOPM, 0, 0,
  23539. &ext_ec_ref_mux_ul19),
  23540. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL28 MUX", SND_SOC_NOPM, 0, 0,
  23541. &ext_ec_ref_mux_ul28),
  23542. SND_SOC_DAPM_MUX("AUDIO_REF_EC_UL29 MUX", SND_SOC_NOPM, 0, 0,
  23543. &ext_ec_ref_mux_ul29),
  23544. };
  23545. static const struct snd_soc_dapm_route intercon[] = {
  23546. {"PRI_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23547. {"PRI_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23548. {"PRI_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23549. {"PRI_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23550. {"PRI_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23551. {"PRI_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23552. {"PRI_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23553. {"PRI_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23554. {"PRI_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23555. {"PRI_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23556. {"PRI_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23557. {"PRI_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23558. {"PRI_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23559. {"PRI_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23560. {"PRI_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23561. {"PRI_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23562. {"PRI_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23563. {"PRI_I2S_RX", NULL, "PRI_RX Audio Mixer"},
  23564. {"SEC_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23565. {"SEC_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23566. {"SEC_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23567. {"SEC_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23568. {"SEC_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23569. {"SEC_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23570. {"SEC_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23571. {"SEC_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23572. {"SEC_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23573. {"SEC_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23574. {"SEC_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23575. {"SEC_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23576. {"SEC_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23577. {"SEC_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23578. {"SEC_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23579. {"SEC_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23580. {"SEC_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23581. {"SEC_I2S_RX", NULL, "SEC_RX Audio Mixer"},
  23582. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23583. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23584. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23585. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23586. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23587. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23588. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23589. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23590. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23591. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23592. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23593. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23594. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23595. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23596. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23597. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23598. {"SLIMBUS_0_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23599. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Audio Mixer"},
  23600. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23601. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23602. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23603. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23604. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23605. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23606. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23607. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23608. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23609. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23610. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23611. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23612. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23613. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23614. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23615. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23616. {"SLIMBUS_2_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23617. {"SLIMBUS_2_RX", NULL, "SLIMBUS_2_RX Audio Mixer"},
  23618. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23619. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23620. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23621. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23622. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23623. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23624. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23625. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23626. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23627. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23628. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23629. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23630. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23631. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23632. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23633. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23634. {"SLIMBUS_5_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23635. {"SLIMBUS_5_RX", NULL, "SLIMBUS_5_RX Audio Mixer"},
  23636. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23637. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23638. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23639. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23640. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23641. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23642. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23643. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23644. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23645. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23646. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23647. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23648. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23649. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23650. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23651. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23652. {"WSA_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23653. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Audio Mixer"},
  23654. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23655. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23656. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23657. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23658. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23659. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23660. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23661. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23662. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23663. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23664. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23665. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23666. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23667. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23668. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23669. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23670. {"WSA_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23671. {"WSA_CDC_DMA_RX_1", NULL, "WSA_CDC_DMA_RX_1 Audio Mixer"},
  23672. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23673. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23674. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23675. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23676. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23677. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23678. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23679. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23680. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23681. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23682. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23683. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23684. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23685. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23686. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23687. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23688. {"RX_CDC_DMA_RX_0 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23689. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Audio Mixer"},
  23690. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23691. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23692. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23693. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23694. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23695. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23696. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23697. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23698. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23699. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23700. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23701. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23702. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23703. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23704. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23705. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23706. {"RX_CDC_DMA_RX_1 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23707. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_1 Audio Mixer"},
  23708. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23709. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23710. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23711. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23712. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23713. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23714. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23715. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23716. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23717. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23718. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23719. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23720. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23721. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23722. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23723. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23724. {"RX_CDC_DMA_RX_2 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23725. {"RX_CDC_DMA_RX_2", NULL, "RX_CDC_DMA_RX_2 Audio Mixer"},
  23726. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23727. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23728. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23729. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23730. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23731. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23732. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23733. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23734. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23735. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23736. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23737. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23738. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23739. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23740. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23741. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23742. {"RX_CDC_DMA_RX_3 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23743. {"RX_CDC_DMA_RX_3", NULL, "RX_CDC_DMA_RX_3 Audio Mixer"},
  23744. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23745. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23746. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23747. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23748. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23749. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23750. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23751. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23752. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23753. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23754. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23755. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23756. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23757. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23758. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23759. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23760. {"RX_CDC_DMA_RX_4 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23761. {"RX_CDC_DMA_RX_4", NULL, "RX_CDC_DMA_RX_4 Audio Mixer"},
  23762. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23763. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23764. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23765. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23766. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23767. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23768. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23769. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23770. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23771. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23772. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23773. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23774. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23775. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23776. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23777. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23778. {"RX_CDC_DMA_RX_5 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23779. {"RX_CDC_DMA_RX_5", NULL, "RX_CDC_DMA_RX_5 Audio Mixer"},
  23780. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23781. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23782. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23783. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23784. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23785. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23786. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23787. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23788. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23789. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23790. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23791. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23792. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23793. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23794. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23795. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23796. {"RX_CDC_DMA_RX_6 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23797. {"RX_CDC_DMA_RX_6", NULL, "RX_CDC_DMA_RX_6 Audio Mixer"},
  23798. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23799. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23800. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia3", "MM_DL3"},
  23801. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia4", "MM_DL4"},
  23802. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23803. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia6", "MM_DL6"},
  23804. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia7", "MM_DL7"},
  23805. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia8", "MM_DL8"},
  23806. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23807. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia10", "MM_DL10"},
  23808. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia11", "MM_DL11"},
  23809. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia12", "MM_DL12"},
  23810. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia13", "MM_DL13"},
  23811. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia14", "MM_DL14"},
  23812. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia15", "MM_DL15"},
  23813. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia16", "MM_DL16"},
  23814. {"RX_CDC_DMA_RX_7 Audio Mixer", "MultiMedia26", "MM_DL26"},
  23815. {"RX_CDC_DMA_RX_7", NULL, "RX_CDC_DMA_RX_7 Audio Mixer"},
  23816. {"HDMI Mixer", "MultiMedia1", "MM_DL1"},
  23817. {"HDMI Mixer", "MultiMedia2", "MM_DL2"},
  23818. {"HDMI Mixer", "MultiMedia3", "MM_DL3"},
  23819. {"HDMI Mixer", "MultiMedia4", "MM_DL4"},
  23820. {"HDMI Mixer", "MultiMedia5", "MM_DL5"},
  23821. {"HDMI Mixer", "MultiMedia6", "MM_DL6"},
  23822. {"HDMI Mixer", "MultiMedia7", "MM_DL7"},
  23823. {"HDMI Mixer", "MultiMedia8", "MM_DL8"},
  23824. {"HDMI Mixer", "MultiMedia9", "MM_DL9"},
  23825. {"HDMI Mixer", "MultiMedia10", "MM_DL10"},
  23826. {"HDMI Mixer", "MultiMedia11", "MM_DL11"},
  23827. {"HDMI Mixer", "MultiMedia12", "MM_DL12"},
  23828. {"HDMI Mixer", "MultiMedia13", "MM_DL13"},
  23829. {"HDMI Mixer", "MultiMedia14", "MM_DL14"},
  23830. {"HDMI Mixer", "MultiMedia15", "MM_DL15"},
  23831. {"HDMI Mixer", "MultiMedia16", "MM_DL16"},
  23832. {"HDMI Mixer", "MultiMedia26", "MM_DL26"},
  23833. {"HDMI", NULL, "HDMI Mixer"},
  23834. {"DISPLAY_PORT Mixer", "MultiMedia1", "MM_DL1"},
  23835. {"DISPLAY_PORT Mixer", "MultiMedia2", "MM_DL2"},
  23836. {"DISPLAY_PORT Mixer", "MultiMedia3", "MM_DL3"},
  23837. {"DISPLAY_PORT Mixer", "MultiMedia4", "MM_DL4"},
  23838. {"DISPLAY_PORT Mixer", "MultiMedia5", "MM_DL5"},
  23839. {"DISPLAY_PORT Mixer", "MultiMedia6", "MM_DL6"},
  23840. {"DISPLAY_PORT Mixer", "MultiMedia7", "MM_DL7"},
  23841. {"DISPLAY_PORT Mixer", "MultiMedia8", "MM_DL8"},
  23842. {"DISPLAY_PORT Mixer", "MultiMedia9", "MM_DL9"},
  23843. {"DISPLAY_PORT Mixer", "MultiMedia10", "MM_DL10"},
  23844. {"DISPLAY_PORT Mixer", "MultiMedia11", "MM_DL11"},
  23845. {"DISPLAY_PORT Mixer", "MultiMedia12", "MM_DL12"},
  23846. {"DISPLAY_PORT Mixer", "MultiMedia13", "MM_DL13"},
  23847. {"DISPLAY_PORT Mixer", "MultiMedia14", "MM_DL14"},
  23848. {"DISPLAY_PORT Mixer", "MultiMedia15", "MM_DL15"},
  23849. {"DISPLAY_PORT Mixer", "MultiMedia16", "MM_DL16"},
  23850. {"DISPLAY_PORT Mixer", "MultiMedia26", "MM_DL26"},
  23851. {"DISPLAY_PORT", NULL, "DISPLAY_PORT Mixer"},
  23852. {"DISPLAY_PORT1 Mixer", "MultiMedia1", "MM_DL1"},
  23853. {"DISPLAY_PORT1 Mixer", "MultiMedia2", "MM_DL2"},
  23854. {"DISPLAY_PORT1 Mixer", "MultiMedia3", "MM_DL3"},
  23855. {"DISPLAY_PORT1 Mixer", "MultiMedia4", "MM_DL4"},
  23856. {"DISPLAY_PORT1 Mixer", "MultiMedia5", "MM_DL5"},
  23857. {"DISPLAY_PORT1 Mixer", "MultiMedia6", "MM_DL6"},
  23858. {"DISPLAY_PORT1 Mixer", "MultiMedia7", "MM_DL7"},
  23859. {"DISPLAY_PORT1 Mixer", "MultiMedia8", "MM_DL8"},
  23860. {"DISPLAY_PORT1 Mixer", "MultiMedia9", "MM_DL9"},
  23861. {"DISPLAY_PORT1 Mixer", "MultiMedia10", "MM_DL10"},
  23862. {"DISPLAY_PORT1 Mixer", "MultiMedia11", "MM_DL11"},
  23863. {"DISPLAY_PORT1 Mixer", "MultiMedia12", "MM_DL12"},
  23864. {"DISPLAY_PORT1 Mixer", "MultiMedia13", "MM_DL13"},
  23865. {"DISPLAY_PORT1 Mixer", "MultiMedia14", "MM_DL14"},
  23866. {"DISPLAY_PORT1 Mixer", "MultiMedia15", "MM_DL15"},
  23867. {"DISPLAY_PORT1 Mixer", "MultiMedia16", "MM_DL16"},
  23868. {"DISPLAY_PORT1 Mixer", "MultiMedia26", "MM_DL26"},
  23869. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT1 Mixer"},
  23870. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23871. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23872. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23873. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23874. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23875. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23876. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23877. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23878. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23879. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23880. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23881. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23882. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23883. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23884. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23885. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23886. {"PRI_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23887. {"PRI_SPDIF_RX", NULL, "PRI_SPDIF_RX Audio Mixer"},
  23888. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23889. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23890. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23891. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23892. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23893. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23894. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23895. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23896. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23897. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23898. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23899. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23900. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23901. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23902. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23903. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23904. {"SEC_SPDIF_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23905. {"SEC_SPDIF_RX", NULL, "SEC_SPDIF_RX Audio Mixer"},
  23906. /* incall */
  23907. {"Incall_Music Audio Mixer", "MultiMedia1", "MM_DL1"},
  23908. {"Incall_Music Audio Mixer", "MultiMedia2", "MM_DL2"},
  23909. {"Incall_Music Audio Mixer", "MultiMedia5", "MM_DL5"},
  23910. {"Incall_Music Audio Mixer", "MultiMedia9", "MM_DL9"},
  23911. {"VOICE_PLAYBACK_TX", NULL, "Incall_Music Audio Mixer"},
  23912. {"Incall_Music_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  23913. {"Incall_Music_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  23914. {"Incall_Music_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  23915. {"Incall_Music_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  23916. {"VOICE2_PLAYBACK_TX", NULL, "Incall_Music_2 Audio Mixer"},
  23917. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23918. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23919. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23920. {"SLIMBUS_4_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23921. {"SLIMBUS_4_RX", NULL, "SLIMBUS_4_RX Audio Mixer"},
  23922. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23923. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23924. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23925. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23926. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23927. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23928. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23929. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23930. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23931. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23932. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23933. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23934. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23935. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23936. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23937. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23938. {"SLIMBUS_6_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23939. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Audio Mixer"},
  23940. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23941. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23942. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23943. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23944. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23945. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23946. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23947. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23948. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23949. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23950. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23951. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23952. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23953. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23954. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23955. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23956. {"SLIMBUS_7_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23957. {"SLIMBUS_7_RX", NULL, "SLIMBUS_7_RX Audio Mixer"},
  23958. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23959. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23960. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23961. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23962. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23963. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23964. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23965. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23966. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23967. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23968. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23969. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23970. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23971. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23972. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23973. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23974. {"SLIMBUS_9_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23975. {"SLIMBUS_9_RX", NULL, "SLIMBUS_9_RX Audio Mixer"},
  23976. {"USB_AUDIO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  23977. {"USB_AUDIO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  23978. {"USB_AUDIO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  23979. {"USB_AUDIO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  23980. {"USB_AUDIO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  23981. {"USB_AUDIO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  23982. {"USB_AUDIO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  23983. {"USB_AUDIO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  23984. {"USB_AUDIO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  23985. {"USB_AUDIO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  23986. {"USB_AUDIO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  23987. {"USB_AUDIO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  23988. {"USB_AUDIO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  23989. {"USB_AUDIO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  23990. {"USB_AUDIO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  23991. {"USB_AUDIO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  23992. {"USB_AUDIO_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  23993. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Audio Mixer"},
  23994. {"MultiMedia1 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23995. {"MultiMedia4 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23996. {"MultiMedia8 Mixer", "VOC_REC_UL", "INCALL_RECORD_TX"},
  23997. {"MultiMedia1 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23998. {"MultiMedia4 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  23999. {"MultiMedia8 Mixer", "VOC_REC_DL", "INCALL_RECORD_RX"},
  24000. {"MultiMedia1 Mixer", "SLIM_4_TX", "SLIMBUS_4_TX"},
  24001. {"MultiMedia1 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24002. {"MultiMedia1 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24003. {"MultiMedia1 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24004. {"MultiMedia1 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24005. {"MultiMedia8 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24006. {"MultiMedia8 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24007. {"MultiMedia8 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24008. {"MultiMedia4 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24009. {"MultiMedia4 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24010. {"MultiMedia17 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24011. {"MultiMedia17 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24012. {"MultiMedia18 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24013. {"MultiMedia18 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24014. {"MultiMedia19 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24015. {"MultiMedia19 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24016. {"MultiMedia28 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24017. {"MultiMedia28 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24018. {"MultiMedia29 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24019. {"MultiMedia29 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24020. {"MultiMedia30 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24021. {"MultiMedia30 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24022. {"MultiMedia8 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24023. {"MultiMedia8 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24024. {"MultiMedia2 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24025. {"MultiMedia4 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24026. {"MultiMedia17 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24027. {"MultiMedia18 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24028. {"MultiMedia19 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24029. {"MultiMedia28 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24030. {"MultiMedia29 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24031. {"MultiMedia30 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24032. {"MultiMedia8 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24033. {"MultiMedia18 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24034. {"MultiMedia19 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24035. {"MultiMedia28 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24036. {"MultiMedia29 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24037. {"MultiMedia30 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24038. {"MultiMedia17 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24039. {"MultiMedia18 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24040. {"MultiMedia19 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24041. {"MultiMedia28 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24042. {"MultiMedia29 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24043. {"MultiMedia30 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24044. {"MultiMedia17 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24045. {"MultiMedia18 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24046. {"MultiMedia19 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24047. {"MultiMedia28 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24048. {"MultiMedia29 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24049. {"MultiMedia30 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24050. {"MultiMedia8 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24051. {"MultiMedia3 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24052. {"MultiMedia3 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24053. {"MultiMedia5 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24054. {"MultiMedia5 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24055. {"MultiMedia10 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24056. {"MultiMedia10 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24057. {"MultiMedia16 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24058. {"MultiMedia16 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24059. {"MultiMedia5 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24060. {"MultiMedia5 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24061. {"MultiMedia5 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24062. {"MultiMedia10 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  24063. {"MultiMedia10 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  24064. {"MultiMedia18 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24065. {"MultiMedia19 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24066. {"MultiMedia28 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24067. {"MultiMedia29 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24068. {"MultiMedia30 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24069. {"MultiMedia18 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24070. {"MultiMedia19 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24071. {"MultiMedia28 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24072. {"MultiMedia29 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24073. {"MultiMedia30 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24074. {"MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24075. {"MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24076. {"MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24077. {"MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24078. {"MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24079. {"MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24080. {"MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24081. {"MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24082. {"MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24083. {"MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24084. {"MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24085. {"MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24086. {"MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24087. {"MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24088. {"MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24089. {"MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24090. {"MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24091. {"MI2S_RX", NULL, "MI2S_RX Audio Mixer"},
  24092. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24093. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24094. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24095. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24096. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24097. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24098. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24099. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24100. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24101. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24102. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24103. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24104. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24105. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24106. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24107. {"QUAT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24108. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Audio Mixer"},
  24109. {"TERT_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24110. {"TERT_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24111. {"TERT_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24112. {"TERT_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24113. {"TERT_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24114. {"TERT_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24115. {"TERT_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24116. {"TERT_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24117. {"TERT_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24118. {"TERT_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24119. {"TERT_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24120. {"TERT_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24121. {"TERT_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24122. {"TERT_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24123. {"TERT_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24124. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Audio Mixer"},
  24125. {"SEC_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24126. {"SEC_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24127. {"SEC_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24128. {"SEC_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24129. {"SEC_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24130. {"SEC_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24131. {"SEC_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24132. {"SEC_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24133. {"SEC_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24134. {"SEC_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24135. {"SEC_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24136. {"SEC_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24137. {"SEC_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24138. {"SEC_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24139. {"SEC_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24140. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Audio Mixer"},
  24141. {"SEC_MI2S_RX_SD1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24142. {"SEC_MI2S_RX_SD1", NULL, "SEC_MI2S_RX_SD1 Audio Mixer"},
  24143. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24144. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  24145. {"PRI_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24146. {"PRI_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24147. {"PRI_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24148. {"PRI_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24149. {"PRI_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24150. {"PRI_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24151. {"PRI_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24152. {"PRI_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24153. {"PRI_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24154. {"PRI_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24155. {"PRI_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24156. {"PRI_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24157. {"PRI_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24158. {"PRI_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24159. {"PRI_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24160. {"PRI_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24161. {"PRI_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24162. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Audio Mixer"},
  24163. {"INT0_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24164. {"INT0_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24165. {"INT0_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24166. {"INT0_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24167. {"INT0_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24168. {"INT0_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24169. {"INT0_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24170. {"INT0_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24171. {"INT0_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24172. {"INT0_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24173. {"INT0_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24174. {"INT0_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24175. {"INT0_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24176. {"INT0_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24177. {"INT0_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24178. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Audio Mixer"},
  24179. {"INT4_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24180. {"INT4_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24181. {"INT4_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24182. {"INT4_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24183. {"INT4_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24184. {"INT4_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24185. {"INT4_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24186. {"INT4_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24187. {"INT4_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24188. {"INT4_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24189. {"INT4_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24190. {"INT4_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24191. {"INT4_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24192. {"INT4_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24193. {"INT4_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24194. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Audio Mixer"},
  24195. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24196. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24197. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24198. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24199. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24200. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24201. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24202. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24203. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24204. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24205. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24206. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24207. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24208. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24209. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24210. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24211. {"QUIN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24212. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Audio Mixer"},
  24213. {"SEN_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24214. {"SEN_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24215. {"SEN_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24216. {"SEN_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24217. {"SEN_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24218. {"SEN_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24219. {"SEN_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24220. {"SEN_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24221. {"SEN_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24222. {"SEN_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24223. {"SEN_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24224. {"SEN_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24225. {"SEN_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24226. {"SEN_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24227. {"SEN_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24228. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Audio Mixer"},
  24229. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24230. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24231. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24232. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24233. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24234. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24235. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24236. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24237. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24238. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24239. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24240. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24241. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24242. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24243. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24244. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24245. {"PRI_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24246. {"PRI_META_MI2S_RX", NULL, "PRI_META_MI2S_RX Audio Mixer"},
  24247. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  24248. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  24249. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  24250. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  24251. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  24252. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  24253. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  24254. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  24255. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  24256. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  24257. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  24258. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  24259. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  24260. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  24261. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  24262. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  24263. {"SEC_META_MI2S_RX Audio Mixer", "MultiMedia26", "MM_DL26"},
  24264. {"SEC_META_MI2S_RX", NULL, "SEC_META_MI2S_RX Audio Mixer"},
  24265. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24266. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24267. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24268. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24269. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24270. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24271. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24272. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24273. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24274. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24275. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24276. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24277. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24278. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24279. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24280. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24281. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24282. {"PRI_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24283. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Audio Mixer"},
  24284. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24285. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24286. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24287. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24288. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24289. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24290. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24291. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24292. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24293. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24294. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24295. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24296. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24297. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24298. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24299. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24300. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24301. {"PRI_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24302. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Audio Mixer"},
  24303. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24304. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24305. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24306. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24307. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24308. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24309. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24310. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24311. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24312. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24313. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24314. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24315. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24316. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24317. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24318. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24319. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24320. {"PRI_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24321. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Audio Mixer"},
  24322. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24323. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24324. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24325. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24326. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24327. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24328. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24329. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24330. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24331. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24332. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24333. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24334. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24335. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24336. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24337. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24338. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24339. {"PRI_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24340. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Audio Mixer"},
  24341. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24342. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24343. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24344. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24345. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24346. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24347. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24348. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24349. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24350. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24351. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24352. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24353. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24354. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24355. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24356. {"PRI_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24357. {"PRI_TDM_TX_0", NULL, "PRI_TDM_TX_0 Audio Mixer"},
  24358. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24359. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24360. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24361. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24362. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24363. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24364. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24365. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24366. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24367. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24368. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24369. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24370. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24371. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24372. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24373. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24374. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24375. {"SEC_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24376. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Audio Mixer"},
  24377. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24378. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24379. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24380. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24381. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24382. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24383. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24384. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24385. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24386. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24387. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24388. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24389. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24390. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24391. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24392. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24393. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24394. {"SEC_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24395. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Audio Mixer"},
  24396. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24397. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24398. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24399. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24400. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24401. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24402. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24403. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24404. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24405. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24406. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24407. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24408. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24409. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24410. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24411. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24412. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24413. {"SEC_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24414. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Audio Mixer"},
  24415. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24416. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24417. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24418. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24419. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24420. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24421. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24422. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24423. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24424. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24425. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24426. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24427. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24428. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24429. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24430. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24431. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24432. {"SEC_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24433. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Audio Mixer"},
  24434. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24435. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24436. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24437. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24438. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24439. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24440. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24441. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24442. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24443. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24444. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24445. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24446. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24447. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24448. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24449. {"SEC_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24450. {"SEC_TDM_TX_0", NULL, "SEC_TDM_TX_0 Audio Mixer"},
  24451. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24452. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24453. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24454. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24455. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24456. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24457. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24458. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24459. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24460. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24461. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24462. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24463. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24464. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24465. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24466. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24467. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24468. {"TERT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24469. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Audio Mixer"},
  24470. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24471. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24472. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24473. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24474. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24475. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24476. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24477. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24478. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24479. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24480. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24481. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24482. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24483. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24484. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24485. {"TERT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24486. {"TERT_TDM_TX_0", NULL, "TERT_TDM_TX_0 Audio Mixer"},
  24487. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24488. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24489. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24490. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24491. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24492. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24493. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24494. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24495. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24496. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24497. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24498. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24499. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24500. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24501. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24502. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24503. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24504. {"TERT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24505. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Audio Mixer"},
  24506. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24507. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24508. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24509. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24510. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24511. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24512. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24513. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24514. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24515. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24516. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24517. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24518. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24519. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24520. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24521. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24522. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24523. {"TERT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24524. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Audio Mixer"},
  24525. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24526. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24527. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24528. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24529. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24530. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24531. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24532. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24533. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24534. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24535. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24536. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24537. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24538. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24539. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24540. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24541. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24542. {"TERT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24543. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Audio Mixer"},
  24544. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24545. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24546. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24547. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24548. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24549. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24550. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24551. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24552. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24553. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24554. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24555. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24556. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24557. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24558. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24559. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24560. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24561. {"TERT_TDM_RX_4 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24562. {"TERT_TDM_RX_4", NULL, "TERT_TDM_RX_4 Audio Mixer"},
  24563. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24564. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24565. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24566. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24567. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24568. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24569. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24570. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24571. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24572. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24573. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24574. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24575. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24576. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24577. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24578. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24579. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24580. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24581. {"QUAT_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24582. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Audio Mixer"},
  24583. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24584. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24585. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24586. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24587. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24588. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24589. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24590. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24591. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24592. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24593. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24594. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24595. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24596. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24597. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24598. {"QUAT_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24599. {"QUAT_TDM_TX_0", NULL, "QUAT_TDM_TX_0 Audio Mixer"},
  24600. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24601. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24602. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24603. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24604. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24605. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24606. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24607. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24608. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24609. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24610. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24611. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24612. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24613. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24614. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24615. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24616. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24617. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24618. {"QUAT_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24619. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Audio Mixer"},
  24620. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24621. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24622. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24623. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24624. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24625. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24626. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24627. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24628. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24629. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24630. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24631. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24632. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24633. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24634. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24635. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24636. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24637. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24638. {"QUAT_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24639. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Audio Mixer"},
  24640. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24641. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24642. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24643. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24644. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24645. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24646. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24647. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24648. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24649. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24650. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24651. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24652. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24653. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24654. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24655. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24656. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24657. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24658. {"QUAT_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24659. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Audio Mixer"},
  24660. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24661. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24662. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24663. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24664. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24665. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24666. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24667. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24668. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24669. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24670. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24671. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24672. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24673. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24674. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24675. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24676. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24677. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24678. {"QUIN_TDM_RX_0 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24679. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Audio Mixer"},
  24680. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24681. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24682. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24683. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24684. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24685. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24686. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24687. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24688. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24689. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24690. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24691. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24692. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24693. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24694. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24695. {"QUIN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24696. {"QUIN_TDM_TX_0", NULL, "QUIN_TDM_TX_0 Audio Mixer"},
  24697. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24698. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24699. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24700. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24701. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24702. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24703. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24704. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24705. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24706. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24707. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24708. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24709. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24710. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24711. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24712. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24713. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24714. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24715. {"QUIN_TDM_RX_1 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24716. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Audio Mixer"},
  24717. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24718. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24719. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24720. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24721. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24722. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24723. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24724. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24725. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24726. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24727. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24728. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24729. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24730. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24731. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24732. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24733. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24734. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24735. {"QUIN_TDM_RX_2 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24736. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Audio Mixer"},
  24737. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24738. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24739. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24740. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24741. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24742. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24743. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24744. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24745. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24746. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24747. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24748. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24749. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24750. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24751. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24752. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24753. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24754. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24755. {"QUIN_TDM_RX_3 Audio Mixer", "MultiMedia22", "MM_DL22"},
  24756. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Audio Mixer"},
  24757. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24758. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24759. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24760. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24761. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24762. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24763. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24764. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24765. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24766. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24767. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24768. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24769. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24770. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24771. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24772. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24773. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24774. {"SEN_TDM_RX_0 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24775. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Audio Mixer"},
  24776. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24777. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24778. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24779. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24780. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24781. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24782. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24783. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24784. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24785. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24786. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24787. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24788. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24789. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24790. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24791. {"SEN_TDM_TX_0 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24792. {"SEN_TDM_TX_0", NULL, "SEN_TDM_TX_0 Audio Mixer"},
  24793. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24794. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24795. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24796. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24797. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24798. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24799. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24800. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24801. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24802. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24803. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24804. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24805. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24806. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24807. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24808. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24809. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24810. {"SEN_TDM_RX_1 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24811. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Audio Mixer"},
  24812. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24813. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24814. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24815. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24816. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24817. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24818. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24819. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24820. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24821. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24822. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24823. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24824. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24825. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24826. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24827. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24828. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24829. {"SEN_TDM_RX_2 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24830. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Audio Mixer"},
  24831. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia1", "MM_DL1"},
  24832. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia2", "MM_DL2"},
  24833. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia3", "MM_DL3"},
  24834. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia4", "MM_DL4"},
  24835. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia5", "MM_DL5"},
  24836. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia6", "MM_DL6"},
  24837. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia7", "MM_DL7"},
  24838. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia8", "MM_DL8"},
  24839. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia9", "MM_DL9"},
  24840. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia10", "MM_DL10"},
  24841. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia11", "MM_DL11"},
  24842. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia12", "MM_DL12"},
  24843. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia13", "MM_DL13"},
  24844. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia14", "MM_DL14"},
  24845. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia15", "MM_DL15"},
  24846. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia16", "MM_DL16"},
  24847. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia20", "MM_DL20"},
  24848. {"SEN_TDM_RX_3 Audio Mixer", "MultiMedia21", "MM_DL21"},
  24849. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Audio Mixer"},
  24850. {"MultiMedia1 Mixer", "PRI_TX", "PRI_I2S_TX"},
  24851. {"MultiMedia1 Mixer", "MI2S_TX", "MI2S_TX"},
  24852. {"MultiMedia2 Mixer", "MI2S_TX", "MI2S_TX"},
  24853. {"MultiMedia3 Mixer", "MI2S_TX", "MI2S_TX"},
  24854. {"MultiMedia5 Mixer", "MI2S_TX", "MI2S_TX"},
  24855. {"MultiMedia10 Mixer", "MI2S_TX", "MI2S_TX"},
  24856. {"MultiMedia16 Mixer", "MI2S_TX", "MI2S_TX"},
  24857. {"MultiMedia1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24858. {"MultiMedia2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24859. {"MultiMedia6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  24860. {"MultiMedia1 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24861. {"MultiMedia2 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24862. {"MultiMedia1 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24863. {"MultiMedia2 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24864. {"MultiMedia1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24865. {"MultiMedia2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24866. {"MultiMedia1 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24867. {"MultiMedia2 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24868. {"MultiMedia1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24869. {"MultiMedia2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24870. {"MultiMedia1 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24871. {"MultiMedia1 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24872. {"MultiMedia1 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24873. {"MultiMedia3 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24874. {"MultiMedia5 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24875. {"MultiMedia10 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24876. {"MultiMedia1 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24877. {"MultiMedia2 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24878. {"MultiMedia3 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24879. {"MultiMedia5 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24880. {"MultiMedia10 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24881. {"MultiMedia16 Mixer", "AUX_PCM_TX", "AUX_PCM_TX"},
  24882. {"MultiMedia16 Mixer", "SEC_AUX_PCM_TX", "SEC_AUX_PCM_TX"},
  24883. {"MultiMedia1 Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  24884. {"MultiMedia3 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24885. {"MultiMedia5 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24886. {"MultiMedia10 Mixer", "TERT_AUX_PCM_TX", "TERT_AUX_PCM_TX"},
  24887. {"MultiMedia1 Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  24888. {"MultiMedia3 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24889. {"MultiMedia5 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24890. {"MultiMedia10 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24891. {"MultiMedia16 Mixer", "QUAT_AUX_PCM_TX", "QUAT_AUX_PCM_TX"},
  24892. {"MultiMedia1 Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  24893. {"MultiMedia3 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24894. {"MultiMedia5 Mixer", "QUIN_AUX_PCM_TX", "QUIN_AUX_PCM_TX"},
  24895. {"MultiMedia1 Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  24896. {"MultiMedia3 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24897. {"MultiMedia5 Mixer", "SEN_AUX_PCM_TX", "SEN_AUX_PCM_TX"},
  24898. {"MultiMedia2 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24899. {"MultiMedia2 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  24900. {"MultiMedia2 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24901. {"MultiMedia2 Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  24902. {"MultiMedia1 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24903. {"MultiMedia1 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24904. {"MultiMedia2 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24905. {"MultiMedia6 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  24906. {"MultiMedia6 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  24907. {"MultiMedia6 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24908. {"MultiMedia3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24909. {"MultiMedia5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24910. {"MultiMedia10 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  24911. {"MultiMedia6 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24912. {"MultiMedia3 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24913. {"MultiMedia5 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24914. {"MultiMedia10 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24915. {"MultiMedia16 Mixer", "INT2_MI2S_TX", "INT2_MI2S_TX"},
  24916. {"MultiMedia6 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24917. {"MultiMedia3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24918. {"MultiMedia5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24919. {"MultiMedia10 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24920. {"MultiMedia16 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24921. {"MultiMedia17 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24922. {"MultiMedia18 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24923. {"MultiMedia19 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24924. {"MultiMedia28 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24925. {"MultiMedia29 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24926. {"MultiMedia30 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  24927. {"MultiMedia6 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  24928. {"MultiMedia6 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  24929. {"MultiMedia6 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  24930. {"MultiMedia6 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  24931. {"MultiMedia6 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  24932. {"MultiMedia6 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  24933. {"MultiMedia1 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24934. {"MultiMedia1 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24935. {"MultiMedia1 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24936. {"MultiMedia1 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24937. {"MultiMedia1 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24938. {"MultiMedia1 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24939. {"MultiMedia1 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24940. {"MultiMedia1 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24941. {"MultiMedia1 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24942. {"MultiMedia1 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24943. {"MultiMedia1 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24944. {"MultiMedia1 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24945. {"MultiMedia1 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24946. {"MultiMedia1 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24947. {"MultiMedia1 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24948. {"MultiMedia1 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24949. {"MultiMedia1 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24950. {"MultiMedia1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24951. {"MultiMedia1 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24952. {"MultiMedia1 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24953. {"MultiMedia1 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24954. {"MultiMedia1 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24955. {"MultiMedia1 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24956. {"MultiMedia1 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24957. {"MultiMedia1 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24958. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24959. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24960. {"MultiMedia1 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  24961. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  24962. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  24963. {"MultiMedia1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  24964. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  24965. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  24966. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  24967. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  24968. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  24969. {"MultiMedia1 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  24970. {"MultiMedia1 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  24971. {"MultiMedia1 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  24972. {"MultiMedia2 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  24973. {"MultiMedia2 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  24974. {"MultiMedia2 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  24975. {"MultiMedia2 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  24976. {"MultiMedia2 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  24977. {"MultiMedia2 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  24978. {"MultiMedia2 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  24979. {"MultiMedia2 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  24980. {"MultiMedia2 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  24981. {"MultiMedia2 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  24982. {"MultiMedia2 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  24983. {"MultiMedia2 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  24984. {"MultiMedia2 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  24985. {"MultiMedia2 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  24986. {"MultiMedia2 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  24987. {"MultiMedia2 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  24988. {"MultiMedia2 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  24989. {"MultiMedia2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  24990. {"MultiMedia2 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  24991. {"MultiMedia2 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  24992. {"MultiMedia2 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  24993. {"MultiMedia2 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  24994. {"MultiMedia2 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  24995. {"MultiMedia2 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  24996. {"MultiMedia2 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  24997. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  24998. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  24999. {"MultiMedia2 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25000. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25001. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25002. {"MultiMedia2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25003. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25004. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25005. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25006. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25007. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25008. {"MultiMedia2 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25009. {"MultiMedia2 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25010. {"MultiMedia2 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25011. {"MultiMedia3 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25012. {"MultiMedia3 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25013. {"MultiMedia3 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25014. {"MultiMedia3 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25015. {"MultiMedia3 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25016. {"MultiMedia3 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25017. {"MultiMedia3 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25018. {"MultiMedia3 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25019. {"MultiMedia3 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25020. {"MultiMedia3 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25021. {"MultiMedia3 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25022. {"MultiMedia3 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25023. {"MultiMedia3 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25024. {"MultiMedia3 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25025. {"MultiMedia3 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25026. {"MultiMedia3 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25027. {"MultiMedia3 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25028. {"MultiMedia3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25029. {"MultiMedia3 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25030. {"MultiMedia3 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25031. {"MultiMedia3 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25032. {"MultiMedia3 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25033. {"MultiMedia3 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25034. {"MultiMedia3 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25035. {"MultiMedia3 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25036. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25037. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25038. {"MultiMedia3 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25039. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25040. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25041. {"MultiMedia3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25042. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25043. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25044. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25045. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25046. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25047. {"MultiMedia3 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25048. {"MultiMedia3 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25049. {"MultiMedia3 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25050. {"MultiMedia4 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25051. {"MultiMedia4 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25052. {"MultiMedia4 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25053. {"MultiMedia4 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25054. {"MultiMedia4 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25055. {"MultiMedia4 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25056. {"MultiMedia4 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25057. {"MultiMedia4 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25058. {"MultiMedia4 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25059. {"MultiMedia4 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25060. {"MultiMedia4 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25061. {"MultiMedia4 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25062. {"MultiMedia4 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25063. {"MultiMedia4 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25064. {"MultiMedia4 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25065. {"MultiMedia4 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25066. {"MultiMedia4 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25067. {"MultiMedia4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25068. {"MultiMedia4 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25069. {"MultiMedia4 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25070. {"MultiMedia4 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25071. {"MultiMedia4 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25072. {"MultiMedia4 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25073. {"MultiMedia4 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25074. {"MultiMedia4 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25075. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25076. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25077. {"MultiMedia4 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25078. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25079. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25080. {"MultiMedia4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25081. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25082. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25083. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25084. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25085. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25086. {"MultiMedia4 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25087. {"MultiMedia4 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25088. {"MultiMedia4 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25089. {"MultiMedia5 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25090. {"MultiMedia5 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25091. {"MultiMedia5 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25092. {"MultiMedia5 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25093. {"MultiMedia5 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25094. {"MultiMedia5 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25095. {"MultiMedia5 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25096. {"MultiMedia5 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25097. {"MultiMedia5 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25098. {"MultiMedia5 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25099. {"MultiMedia5 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25100. {"MultiMedia5 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25101. {"MultiMedia5 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25102. {"MultiMedia5 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25103. {"MultiMedia5 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25104. {"MultiMedia5 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25105. {"MultiMedia5 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25106. {"MultiMedia5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25107. {"MultiMedia5 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25108. {"MultiMedia5 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25109. {"MultiMedia5 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25110. {"MultiMedia5 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25111. {"MultiMedia5 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25112. {"MultiMedia5 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25113. {"MultiMedia5 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25114. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25115. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25116. {"MultiMedia5 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25117. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25118. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25119. {"MultiMedia5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25120. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25121. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25122. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25123. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25124. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25125. {"MultiMedia5 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25126. {"MultiMedia5 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25127. {"MultiMedia5 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25128. {"MultiMedia6 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25129. {"MultiMedia6 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25130. {"MultiMedia6 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25131. {"MultiMedia6 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25132. {"MultiMedia6 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25133. {"MultiMedia6 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25134. {"MultiMedia6 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25135. {"MultiMedia6 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25136. {"MultiMedia6 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25137. {"MultiMedia6 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25138. {"MultiMedia6 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25139. {"MultiMedia6 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25140. {"MultiMedia6 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25141. {"MultiMedia6 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25142. {"MultiMedia6 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25143. {"MultiMedia6 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25144. {"MultiMedia6 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25145. {"MultiMedia6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25146. {"MultiMedia6 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25147. {"MultiMedia6 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25148. {"MultiMedia6 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25149. {"MultiMedia6 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25150. {"MultiMedia6 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25151. {"MultiMedia6 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25152. {"MultiMedia6 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25153. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25154. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25155. {"MultiMedia6 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25156. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25157. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25158. {"MultiMedia6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25159. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25160. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25161. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25162. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25163. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25164. {"MultiMedia6 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25165. {"MultiMedia6 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25166. {"MultiMedia6 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25167. {"MultiMedia8 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25168. {"MultiMedia8 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25169. {"MultiMedia8 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25170. {"MultiMedia8 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25171. {"MultiMedia8 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25172. {"MultiMedia8 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25173. {"MultiMedia8 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25174. {"MultiMedia8 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25175. {"MultiMedia8 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25176. {"MultiMedia8 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25177. {"MultiMedia8 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25178. {"MultiMedia8 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25179. {"MultiMedia8 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25180. {"MultiMedia8 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25181. {"MultiMedia8 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25182. {"MultiMedia8 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25183. {"MultiMedia8 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25184. {"MultiMedia8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25185. {"MultiMedia8 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25186. {"MultiMedia8 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25187. {"MultiMedia8 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25188. {"MultiMedia8 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25189. {"MultiMedia8 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25190. {"MultiMedia8 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25191. {"MultiMedia8 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25192. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25193. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25194. {"MultiMedia8 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25195. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25196. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25197. {"MultiMedia8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25198. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25199. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25200. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25201. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25202. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25203. {"MultiMedia8 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25204. {"MultiMedia8 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25205. {"MultiMedia8 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25206. {"MultiMedia9 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25207. {"MultiMedia9 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25208. {"MultiMedia9 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25209. {"MultiMedia9 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25210. {"MultiMedia9 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25211. {"MultiMedia9 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25212. {"MultiMedia9 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25213. {"MultiMedia9 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25214. {"MultiMedia9 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25215. {"MultiMedia9 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25216. {"MultiMedia9 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25217. {"MultiMedia9 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25218. {"MultiMedia9 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25219. {"MultiMedia9 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25220. {"MultiMedia9 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25221. {"MultiMedia9 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25222. {"MultiMedia9 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25223. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25224. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25225. {"MultiMedia9 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25226. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25227. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25228. {"MultiMedia9 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25229. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25230. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25231. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25232. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25233. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25234. {"MultiMedia9 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25235. {"MultiMedia9 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25236. {"MultiMedia9 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25237. {"MultiMedia9 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25238. {"MultiMedia10 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25239. {"MultiMedia10 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25240. {"MultiMedia10 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25241. {"MultiMedia10 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25242. {"MultiMedia10 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25243. {"MultiMedia10 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25244. {"MultiMedia10 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25245. {"MultiMedia10 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25246. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25247. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25248. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25249. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25250. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25251. {"MultiMedia10 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25252. {"MultiMedia10 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25253. {"MultiMedia20 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25254. {"MultiMedia20 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25255. {"MultiMedia20 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25256. {"MultiMedia20 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25257. {"MultiMedia20 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25258. {"MultiMedia20 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25259. {"MultiMedia20 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25260. {"MultiMedia20 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25261. {"MultiMedia20 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25262. {"MultiMedia20 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25263. {"MultiMedia20 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25264. {"MultiMedia20 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25265. {"MultiMedia20 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25266. {"MultiMedia20 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25267. {"MultiMedia20 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25268. {"MultiMedia20 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25269. {"MultiMedia20 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25270. {"MultiMedia20 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25271. {"MultiMedia20 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25272. {"MultiMedia20 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25273. {"MultiMedia20 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25274. {"MultiMedia20 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25275. {"MultiMedia20 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25276. {"MultiMedia20 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25277. {"MultiMedia20 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25278. {"MultiMedia20 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25279. {"MultiMedia20 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25280. {"MultiMedia20 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25281. {"MultiMedia20 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25282. {"MultiMedia20 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25283. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25284. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25285. {"MultiMedia20 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25286. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25287. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25288. {"MultiMedia20 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25289. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25290. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25291. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25292. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25293. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25294. {"MultiMedia20 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25295. {"MultiMedia20 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25296. {"MultiMedia20 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25297. {"MultiMedia20 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25298. {"MultiMedia21 Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  25299. {"MultiMedia21 Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  25300. {"MultiMedia21 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25301. {"MultiMedia21 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25302. {"MultiMedia21 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25303. {"MultiMedia21 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25304. {"MultiMedia21 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25305. {"MultiMedia21 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25306. {"MultiMedia21 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25307. {"MultiMedia21 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25308. {"MultiMedia21 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25309. {"MultiMedia21 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25310. {"MultiMedia21 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25311. {"MultiMedia21 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25312. {"MultiMedia21 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25313. {"MultiMedia21 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25314. {"MultiMedia21 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25315. {"MultiMedia21 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25316. {"MultiMedia21 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25317. {"MultiMedia21 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25318. {"MultiMedia21 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25319. {"MultiMedia21 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25320. {"MultiMedia21 Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  25321. {"MultiMedia21 Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  25322. {"MultiMedia21 Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  25323. {"MultiMedia21 Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  25324. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25325. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25326. {"MultiMedia21 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25327. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25328. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25329. {"MultiMedia21 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25330. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25331. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25332. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25333. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25334. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25335. {"MultiMedia21 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25336. {"MultiMedia21 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25337. {"MultiMedia21 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25338. {"MultiMedia21 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25339. {"MultiMedia22 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25340. {"MultiMedia22 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25341. {"MultiMedia22 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25342. {"MultiMedia22 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25343. {"MultiMedia22 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25344. {"MultiMedia22 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25345. {"MultiMedia22 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25346. {"MultiMedia22 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25347. {"MultiMedia22 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25348. {"MultiMedia22 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25349. {"MultiMedia22 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25350. {"MultiMedia22 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25351. {"MultiMedia22 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25352. {"MultiMedia22 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25353. {"MultiMedia22 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25354. {"MultiMedia22 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25355. {"MultiMedia22 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  25356. {"MultiMedia22 Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  25357. {"MultiMedia22 Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  25358. {"MultiMedia22 Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  25359. {"MultiMedia27 Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  25360. {"MultiMedia27 Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25361. {"MultiMedia27 Mixer", "SLIM_6_TX", "SLIMBUS_6_TX"},
  25362. {"MultiMedia27 Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  25363. {"MultiMedia27 Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  25364. {"MultiMedia27 Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25365. {"MultiMedia27 Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25366. {"MultiMedia27 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25367. {"MultiMedia27 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25368. {"MultiMedia27 Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25369. {"MultiMedia27 Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  25370. {"MultiMedia27 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25371. {"MultiMedia27 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25372. {"MultiMedia27 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25373. {"MultiMedia1 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25374. {"MultiMedia2 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25375. {"MultiMedia4 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25376. {"MultiMedia5 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25377. {"MultiMedia6 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25378. {"MultiMedia8 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25379. {"MultiMedia10 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25380. {"MultiMedia16 Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  25381. {"MultiMedia16 Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  25382. {"MultiMedia16 Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  25383. {"MultiMedia16 Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  25384. {"MultiMedia16 Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25385. {"MultiMedia16 Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  25386. {"MultiMedia16 Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  25387. {"MultiMedia16 Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  25388. {"MultiMedia16 Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25389. {"MultiMedia16 Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  25390. {"MultiMedia16 Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  25391. {"MultiMedia16 Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  25392. {"MultiMedia16 Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  25393. {"MultiMedia16 Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25394. {"MultiMedia16 Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  25395. {"MultiMedia16 Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  25396. {"MultiMedia16 Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  25397. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  25398. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_1", "WSA_CDC_DMA_TX_1"},
  25399. {"MultiMedia16 Mixer", "WSA_CDC_DMA_TX_2", "WSA_CDC_DMA_TX_2"},
  25400. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25401. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25402. {"MultiMedia16 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  25403. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25404. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25405. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25406. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25407. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25408. {"MultiMedia16 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25409. {"MultiMedia16 Mixer", "PRI_SPDIF_TX", "PRI_SPDIF_TX"},
  25410. {"MultiMedia16 Mixer", "SEC_SPDIF_TX", "SEC_SPDIF_TX"},
  25411. {"MultiMedia16 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25412. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25413. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25414. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25415. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25416. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25417. {"MultiMedia17 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25418. {"MultiMedia17 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25419. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25420. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25421. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25422. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25423. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25424. {"MultiMedia18 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25425. {"MultiMedia18 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25426. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25427. {"MultiMedia18 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25428. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25429. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25430. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25431. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25432. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25433. {"MultiMedia19 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25434. {"MultiMedia19 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25435. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25436. {"MultiMedia19 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25437. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25438. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25439. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25440. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25441. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25442. {"MultiMedia28 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25443. {"MultiMedia28 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25444. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25445. {"MultiMedia28 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25446. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25447. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25448. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25449. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25450. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25451. {"MultiMedia29 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25452. {"MultiMedia29 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25453. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25454. {"MultiMedia29 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25455. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_0", "TX_CDC_DMA_TX_0"},
  25456. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_1", "TX_CDC_DMA_TX_1"},
  25457. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_2", "TX_CDC_DMA_TX_2"},
  25458. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  25459. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_4", "TX_CDC_DMA_TX_4"},
  25460. {"MultiMedia30 Mixer", "TX_CDC_DMA_TX_5", "TX_CDC_DMA_TX_5"},
  25461. {"MultiMedia30 Mixer", "AFE_LOOPBACK_TX", "AFE_LOOPBACK_TX"},
  25462. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  25463. {"MultiMedia30 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  25464. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25465. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25466. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25467. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25468. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25469. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25470. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25471. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25472. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25473. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25474. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25475. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25476. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25477. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25478. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25479. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25480. {"INTERNAL_BT_SCO_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25481. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Audio Mixer"},
  25482. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25483. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25484. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25485. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25486. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25487. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25488. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25489. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25490. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25491. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25492. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25493. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25494. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25495. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25496. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25497. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25498. {"INTERNAL_A2DP_RX Audio Mixer", "MultiMedia6", "MM_UL6"},
  25499. {"INT_BT_A2DP_RX", NULL, "INTERNAL_A2DP_RX Audio Mixer"},
  25500. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25501. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25502. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25503. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25504. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25505. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25506. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25507. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25508. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25509. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25510. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25511. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25512. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25513. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25514. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25515. {"INTERNAL_FM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25516. {"INT_FM_RX", NULL, "INTERNAL_FM_RX Audio Mixer"},
  25517. {"AFE_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25518. {"AFE_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25519. {"AFE_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25520. {"AFE_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25521. {"AFE_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25522. {"AFE_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25523. {"AFE_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25524. {"AFE_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25525. {"AFE_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25526. {"AFE_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25527. {"AFE_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25528. {"AFE_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25529. {"AFE_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25530. {"AFE_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25531. {"AFE_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25532. {"AFE_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25533. {"PCM_RX", NULL, "AFE_PCM_RX Audio Mixer"},
  25534. {"MultiMedia1 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25535. {"MultiMedia3 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25536. {"MultiMedia4 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25537. {"MultiMedia10 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25538. {"MultiMedia17 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25539. {"MultiMedia18 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25540. {"MultiMedia19 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25541. {"MultiMedia28 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25542. {"MultiMedia29 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25543. {"MultiMedia30 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25544. {"MultiMedia5 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25545. {"MultiMedia8 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25546. {"MultiMedia16 Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  25547. {"MultiMedia1 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25548. {"MultiMedia4 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25549. {"MultiMedia16 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25550. {"MultiMedia17 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25551. {"MultiMedia18 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25552. {"MultiMedia19 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25553. {"MultiMedia28 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25554. {"MultiMedia29 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25555. {"MultiMedia30 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25556. {"MultiMedia5 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25557. {"MultiMedia6 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25558. {"MultiMedia8 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25559. {"MultiMedia1 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25560. {"MultiMedia3 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25561. {"MultiMedia4 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25562. {"MultiMedia10 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25563. {"MultiMedia17 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25564. {"MultiMedia18 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25565. {"MultiMedia19 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25566. {"MultiMedia28 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25567. {"MultiMedia29 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25568. {"MultiMedia30 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25569. {"MultiMedia5 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25570. {"MultiMedia8 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25571. {"MultiMedia16 Mixer", "AFE_PCM_TX", "PCM_TX"},
  25572. {"MM_UL1", NULL, "MultiMedia1 Mixer"},
  25573. {"MultiMedia2 Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  25574. {"MM_UL2", NULL, "MultiMedia2 Mixer"},
  25575. {"MM_UL3", NULL, "MultiMedia3 Mixer"},
  25576. {"MM_UL4", NULL, "MultiMedia4 Mixer"},
  25577. {"MM_UL5", NULL, "MultiMedia5 Mixer"},
  25578. {"MM_UL6", NULL, "MultiMedia6 Mixer"},
  25579. {"MM_UL8", NULL, "MultiMedia8 Mixer"},
  25580. {"MM_UL9", NULL, "MultiMedia9 Mixer"},
  25581. {"MM_UL10", NULL, "MultiMedia10 Mixer"},
  25582. {"MM_UL16", NULL, "MultiMedia16 Mixer"},
  25583. {"MM_UL17", NULL, "MultiMedia17 Mixer"},
  25584. {"MM_UL18", NULL, "MultiMedia18 Mixer"},
  25585. {"MM_UL19", NULL, "MultiMedia19 Mixer"},
  25586. {"MM_UL20", NULL, "MultiMedia20 Mixer"},
  25587. {"MM_UL21", NULL, "MultiMedia21 Mixer"},
  25588. {"MM_UL22", NULL, "MultiMedia22 Mixer"},
  25589. {"MM_UL27", NULL, "MultiMedia27 Mixer"},
  25590. {"MM_UL28", NULL, "MultiMedia28 Mixer"},
  25591. {"MM_UL29", NULL, "MultiMedia29 Mixer"},
  25592. {"MM_UL30", NULL, "MultiMedia30 Mixer"},
  25593. {"AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25594. {"AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25595. {"AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25596. {"AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25597. {"AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25598. {"AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25599. {"AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25600. {"AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25601. {"AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25602. {"AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25603. {"AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25604. {"AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25605. {"AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25606. {"AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25607. {"AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25608. {"AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25609. {"AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25610. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Audio Mixer"},
  25611. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25612. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25613. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25614. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25615. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25616. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25617. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25618. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25619. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25620. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25621. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25622. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25623. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25624. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25625. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25626. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25627. {"SEC_AUX_PCM_RX Audio Mixer", "MultiMedia21", "MM_DL21"},
  25628. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX Audio Mixer"},
  25629. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25630. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25631. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25632. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25633. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25634. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25635. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25636. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25637. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25638. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25639. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25640. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25641. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25642. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25643. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25644. {"TERT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25645. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX Audio Mixer"},
  25646. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25647. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25648. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25649. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25650. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25651. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25652. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25653. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25654. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25655. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25656. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25657. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25658. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25659. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25660. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25661. {"QUAT_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25662. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX Audio Mixer"},
  25663. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25664. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25665. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25666. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25667. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25668. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25669. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25670. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25671. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25672. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25673. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25674. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25675. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25676. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25677. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25678. {"QUIN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25679. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX Audio Mixer"},
  25680. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia1", "MM_DL1"},
  25681. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia2", "MM_DL2"},
  25682. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia3", "MM_DL3"},
  25683. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia4", "MM_DL4"},
  25684. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia5", "MM_DL5"},
  25685. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia6", "MM_DL6"},
  25686. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia7", "MM_DL7"},
  25687. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia8", "MM_DL8"},
  25688. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia9", "MM_DL9"},
  25689. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia10", "MM_DL10"},
  25690. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia11", "MM_DL11"},
  25691. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia12", "MM_DL12"},
  25692. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia13", "MM_DL13"},
  25693. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia14", "MM_DL14"},
  25694. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia15", "MM_DL15"},
  25695. {"SEN_AUX_PCM_RX Audio Mixer", "MultiMedia16", "MM_DL16"},
  25696. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX Audio Mixer"},
  25697. {"PRI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25698. {"PRI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25699. {"PRI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25700. {"PRI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25701. {"PRI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25702. {"PRI_I2S_RX", NULL, "PRI_RX_Voice Mixer"},
  25703. {"SEC_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25704. {"SEC_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25705. {"SEC_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25706. {"SEC_I2S_RX", NULL, "SEC_RX_Voice Mixer"},
  25707. {"SEC_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25708. {"SEC_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25709. {"SEC_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25710. {"SEC_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25711. {"SEC_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25712. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25713. {"SEC_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25714. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_Voice Mixer"},
  25715. {"SLIM_0_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25716. {"SLIM_0_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25717. {"SLIM_0_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25718. {"SLIM_0_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25719. {"SLIM_0_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25720. {"SLIMBUS_0_RX", NULL, "SLIM_0_RX_Voice Mixer"},
  25721. {"SLIM_6_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25722. {"SLIM_6_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25723. {"SLIM_6_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25724. {"SLIM_6_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25725. {"SLIM_6_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25726. {"SLIMBUS_6_RX", NULL, "SLIM_6_RX_Voice Mixer"},
  25727. {"USB_AUDIO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25728. {"USB_AUDIO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25729. {"USB_AUDIO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25730. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25731. {"USB_AUDIO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25732. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX_Voice Mixer"},
  25733. {"DISPLAY_PORT_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25734. {"DISPLAY_PORT_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25735. {"DISPLAY_PORT_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25736. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25737. {"DISPLAY_PORT_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25738. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX_Voice Mixer"},
  25739. {"DISPLAY_PORT_RX1_Voice Mixer", "Voip", "VOIP_DL"},
  25740. {"DISPLAY_PORT_RX1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25741. {"DISPLAY_PORT_RX1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25742. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25743. {"DISPLAY_PORT_RX1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25744. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1_Voice Mixer"},
  25745. {"INTERNAL_BT_SCO_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25746. {"INTERNAL_BT_SCO_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25747. {"INTERNAL_BT_SCO_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25748. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25749. {"INTERNAL_BT_SCO_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25750. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX_Voice Mixer"},
  25751. {"AFE_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25752. {"AFE_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25753. {"AFE_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25754. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25755. {"AFE_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25756. {"PCM_RX", NULL, "AFE_PCM_RX_Voice Mixer"},
  25757. {"AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25758. {"AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25759. {"AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25760. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25761. {"AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25762. {"AUX_PCM_RX", NULL, "AUX_PCM_RX_Voice Mixer"},
  25763. {"SEC_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25764. {"SEC_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25765. {"SEC_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25766. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25767. {"SEC_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25768. {"SEC_AUX_PCM_RX", NULL, "SEC_AUX_PCM_RX_Voice Mixer"},
  25769. {"TERT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25770. {"TERT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25771. {"TERT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25772. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25773. {"TERT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25774. {"TERT_AUX_PCM_RX", NULL, "TERT_AUX_PCM_RX_Voice Mixer"},
  25775. {"QUAT_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25776. {"QUAT_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25777. {"QUAT_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25778. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25779. {"QUAT_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25780. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUX_PCM_RX_Voice Mixer"},
  25781. {"QUIN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25782. {"QUIN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25783. {"QUIN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25784. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25785. {"QUIN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25786. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUX_PCM_RX_Voice Mixer"},
  25787. {"SEN_AUX_PCM_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25788. {"SEN_AUX_PCM_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25789. {"SEN_AUX_PCM_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25790. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25791. {"SEN_AUX_PCM_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25792. {"SEN_AUX_PCM_RX", NULL, "SEN_AUX_PCM_RX_Voice Mixer"},
  25793. {"HDMI_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25794. {"HDMI_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25795. {"HDMI_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25796. {"HDMI_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25797. {"HDMI_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25798. {"HDMI", NULL, "HDMI_RX_Voice Mixer"},
  25799. {"HDMI", NULL, "HDMI_DL_HL"},
  25800. {"MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25801. {"MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25802. {"MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25803. {"MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25804. {"MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25805. {"MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25806. {"MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25807. {"MI2S_RX", NULL, "MI2S_RX_Voice Mixer"},
  25808. {"PRI_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25809. {"PRI_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25810. {"PRI_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25811. {"PRI_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25812. {"PRI_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25813. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25814. {"PRI_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25815. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_Voice Mixer"},
  25816. {"INT0_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25817. {"INT0_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25818. {"INT0_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25819. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25820. {"INT0_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25821. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_Voice Mixer"},
  25822. {"INT4_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25823. {"INT4_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25824. {"INT4_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25825. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25826. {"INT4_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25827. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_Voice Mixer"},
  25828. {"TERT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25829. {"TERT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25830. {"TERT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25831. {"TERT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25832. {"TERT_MI2S_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25833. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25834. {"TERT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25835. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_Voice Mixer"},
  25836. {"QUAT_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25837. {"QUAT_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25838. {"QUAT_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25839. {"QUAT_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25840. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25841. {"QUAT_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25842. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_Voice Mixer"},
  25843. {"QUIN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25844. {"QUIN_MI2S_RX_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25845. {"QUIN_MI2S_RX_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25846. {"QUIN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25847. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25848. {"QUIN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25849. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_Voice Mixer"},
  25850. {"PRI_TDM_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25851. {"PRI_TDM_RX_0_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25852. {"PRI_TDM_RX_0_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25853. {"PRI_TDM_RX_0_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25854. {"PRI_TDM_RX_0_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25855. {"PRI_TDM_RX_0_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25856. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25857. {"PRI_TDM_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25858. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_Voice Mixer"},
  25859. {"PRI_TDM_RX_1_Voice Mixer", "Voip", "VOIP_DL"},
  25860. {"PRI_TDM_RX_1_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25861. {"PRI_TDM_RX_1_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25862. {"PRI_TDM_RX_1_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25863. {"PRI_TDM_RX_1_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25864. {"PRI_TDM_RX_1_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25865. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25866. {"PRI_TDM_RX_1_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25867. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_Voice Mixer"},
  25868. {"PRI_TDM_RX_2_Voice Mixer", "Voip", "VOIP_DL"},
  25869. {"PRI_TDM_RX_2_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25870. {"PRI_TDM_RX_2_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25871. {"PRI_TDM_RX_2_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25872. {"PRI_TDM_RX_2_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25873. {"PRI_TDM_RX_2_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25874. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25875. {"PRI_TDM_RX_2_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25876. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_Voice Mixer"},
  25877. {"PRI_TDM_RX_3_Voice Mixer", "Voip", "VOIP_DL"},
  25878. {"PRI_TDM_RX_3_Voice Mixer", "VoLTE Stub", "VOLTE_STUB_DL"},
  25879. {"PRI_TDM_RX_3_Voice Mixer", "Voice Stub", "VOICE_STUB_DL"},
  25880. {"PRI_TDM_RX_3_Voice Mixer", "Voice2 Stub", "VOICE2_STUB_DL"},
  25881. {"PRI_TDM_RX_3_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25882. {"PRI_TDM_RX_3_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  25883. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25884. {"PRI_TDM_RX_3_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25885. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_Voice Mixer"},
  25886. {"SEN_MI2S_RX_Voice Mixer", "Voip", "VOIP_DL"},
  25887. {"SEN_MI2S_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  25888. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25889. {"SEN_MI2S_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25890. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_Voice Mixer"},
  25891. {"QUAT_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25892. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_Voice Mixer"},
  25893. {"QUIN_TDM_RX_2_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25894. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_Voice Mixer"},
  25895. {"WSA_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25896. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25897. {"WSA_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25898. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_Voice Mixer"},
  25899. {"RX_CDC_DMA_RX_0_Voice Mixer", "Voip", "VOIP_DL"},
  25900. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  25901. {"RX_CDC_DMA_RX_0_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  25902. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_Voice Mixer"},
  25903. {"VOC_EXT_EC MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25904. {"VOC_EXT_EC MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25905. {"VOC_EXT_EC MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25906. {"VOC_EXT_EC MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25907. {"VOC_EXT_EC MUX", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  25908. {"VOC_EXT_EC MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25909. {"VOC_EXT_EC MUX", "PRI_TDM_TX", "PRI_TDM_TX_0"},
  25910. {"VOC_EXT_EC MUX", "SEC_TDM_TX", "SEC_TDM_TX_0"},
  25911. {"VOIP_UL", NULL, "VOC_EXT_EC MUX"},
  25912. {"VOICEMMODE1_UL", NULL, "VOC_EXT_EC MUX"},
  25913. {"VOICEMMODE2_UL", NULL, "VOC_EXT_EC MUX"},
  25914. {"AUDIO_REF_EC_UL1 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25915. {"AUDIO_REF_EC_UL1 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25916. {"AUDIO_REF_EC_UL1 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25917. {"AUDIO_REF_EC_UL1 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25918. {"AUDIO_REF_EC_UL1 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25919. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25920. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25921. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25922. {"AUDIO_REF_EC_UL1 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25923. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25924. {"AUDIO_REF_EC_UL1 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25925. {"AUDIO_REF_EC_UL1 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25926. {"AUDIO_REF_EC_UL2 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25927. {"AUDIO_REF_EC_UL2 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25928. {"AUDIO_REF_EC_UL2 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25929. {"AUDIO_REF_EC_UL2 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25930. {"AUDIO_REF_EC_UL3 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25931. {"AUDIO_REF_EC_UL3 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25932. {"AUDIO_REF_EC_UL3 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25933. {"AUDIO_REF_EC_UL3 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25934. {"AUDIO_REF_EC_UL4 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25935. {"AUDIO_REF_EC_UL4 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25936. {"AUDIO_REF_EC_UL4 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25937. {"AUDIO_REF_EC_UL4 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25938. {"AUDIO_REF_EC_UL5 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25939. {"AUDIO_REF_EC_UL5 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25940. {"AUDIO_REF_EC_UL5 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25941. {"AUDIO_REF_EC_UL5 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25942. {"AUDIO_REF_EC_UL6 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25943. {"AUDIO_REF_EC_UL6 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25944. {"AUDIO_REF_EC_UL6 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25945. {"AUDIO_REF_EC_UL6 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25946. {"AUDIO_REF_EC_UL8 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25947. {"AUDIO_REF_EC_UL8 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25948. {"AUDIO_REF_EC_UL8 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25949. {"AUDIO_REF_EC_UL8 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25950. {"AUDIO_REF_EC_UL9 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25951. {"AUDIO_REF_EC_UL9 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25952. {"AUDIO_REF_EC_UL9 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25953. {"AUDIO_REF_EC_UL9 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25954. {"AUDIO_REF_EC_UL10 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25955. {"AUDIO_REF_EC_UL10 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25956. {"AUDIO_REF_EC_UL10 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25957. {"AUDIO_REF_EC_UL10 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25958. {"AUDIO_REF_EC_UL10 MUX", "SLIM_1_TX", "SLIMBUS_1_TX"},
  25959. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  25960. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_0", "QUAT_TDM_RX_0"},
  25961. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_1", "QUAT_TDM_RX_1"},
  25962. {"AUDIO_REF_EC_UL10 MUX", "QUAT_TDM_RX_2", "QUAT_TDM_RX_2"},
  25963. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  25964. {"AUDIO_REF_EC_UL10 MUX", "TERT_TDM_RX_2", "TERT_TDM_RX_2"},
  25965. {"AUDIO_REF_EC_UL10 MUX", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  25966. {"AUDIO_REF_EC_UL16 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25967. {"AUDIO_REF_EC_UL16 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25968. {"AUDIO_REF_EC_UL16 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25969. {"AUDIO_REF_EC_UL16 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25970. {"AUDIO_REF_EC_UL17 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25971. {"AUDIO_REF_EC_UL17 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25972. {"AUDIO_REF_EC_UL17 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25973. {"AUDIO_REF_EC_UL17 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25974. {"AUDIO_REF_EC_UL18 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25975. {"AUDIO_REF_EC_UL18 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25976. {"AUDIO_REF_EC_UL18 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25977. {"AUDIO_REF_EC_UL18 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25978. {"AUDIO_REF_EC_UL19 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25979. {"AUDIO_REF_EC_UL19 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25980. {"AUDIO_REF_EC_UL19 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25981. {"AUDIO_REF_EC_UL19 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25982. {"AUDIO_REF_EC_UL28 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25983. {"AUDIO_REF_EC_UL28 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25984. {"AUDIO_REF_EC_UL28 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25985. {"AUDIO_REF_EC_UL28 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25986. {"AUDIO_REF_EC_UL29 MUX", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  25987. {"AUDIO_REF_EC_UL29 MUX", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  25988. {"AUDIO_REF_EC_UL29 MUX", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  25989. {"AUDIO_REF_EC_UL29 MUX", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  25990. {"LSM1_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25991. {"LSM2_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25992. {"LSM3_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25993. {"LSM4_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25994. {"LSM5_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25995. {"LSM6_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25996. {"LSM7_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25997. {"LSM8_UL_HL", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25998. {"MM_UL1", NULL, "AUDIO_REF_EC_UL1 MUX"},
  25999. {"MM_UL2", NULL, "AUDIO_REF_EC_UL2 MUX"},
  26000. {"MM_UL3", NULL, "AUDIO_REF_EC_UL3 MUX"},
  26001. {"MM_UL4", NULL, "AUDIO_REF_EC_UL4 MUX"},
  26002. {"MM_UL5", NULL, "AUDIO_REF_EC_UL5 MUX"},
  26003. {"MM_UL6", NULL, "AUDIO_REF_EC_UL6 MUX"},
  26004. {"MM_UL8", NULL, "AUDIO_REF_EC_UL8 MUX"},
  26005. {"MM_UL9", NULL, "AUDIO_REF_EC_UL9 MUX"},
  26006. {"MM_UL10", NULL, "AUDIO_REF_EC_UL10 MUX"},
  26007. {"MM_UL16", NULL, "AUDIO_REF_EC_UL16 MUX"},
  26008. {"MM_UL17", NULL, "AUDIO_REF_EC_UL17 MUX"},
  26009. {"MM_UL18", NULL, "AUDIO_REF_EC_UL18 MUX"},
  26010. {"MM_UL19", NULL, "AUDIO_REF_EC_UL19 MUX"},
  26011. {"MM_UL28", NULL, "AUDIO_REF_EC_UL28 MUX"},
  26012. {"MM_UL29", NULL, "AUDIO_REF_EC_UL29 MUX"},
  26013. {"MM_UL30", NULL, "AUDIO_REF_EC_UL30 MUX"},
  26014. {"VoiceMMode1_Tx Mixer", "PRI_TX_MMode1", "PRI_I2S_TX"},
  26015. {"VoiceMMode1_Tx Mixer", "PRI_MI2S_TX_MMode1", "PRI_MI2S_TX"},
  26016. {"VoiceMMode1_Tx Mixer", "MI2S_TX_MMode1", "MI2S_TX"},
  26017. {"VoiceMMode1_Tx Mixer", "SEC_MI2S_TX_MMode1", "SEC_MI2S_TX"},
  26018. {"VoiceMMode1_Tx Mixer", "TERT_MI2S_TX_MMode1", "TERT_MI2S_TX"},
  26019. {"VoiceMMode1_Tx Mixer", "INT3_MI2S_TX_MMode1", "INT3_MI2S_TX"},
  26020. {"VoiceMMode1_Tx Mixer", "SLIM_0_TX_MMode1", "SLIMBUS_0_TX"},
  26021. {"VoiceMMode1_Tx Mixer", "SLIM_7_TX_MMode1", "SLIMBUS_7_TX"},
  26022. {"VoiceMMode1_Tx Mixer", "SLIM_8_TX_MMode1", "SLIMBUS_8_TX"},
  26023. {"VoiceMMode1_Tx Mixer", "USB_AUDIO_TX_MMode1", "USB_AUDIO_TX"},
  26024. {"VoiceMMode1_Tx Mixer", "INT_BT_SCO_TX_MMode1", "INT_BT_SCO_TX"},
  26025. {"VoiceMMode1_Tx Mixer", "AFE_PCM_TX_MMode1", "PCM_TX"},
  26026. {"VoiceMMode1_Tx Mixer", "AUX_PCM_TX_MMode1", "AUX_PCM_TX"},
  26027. {"VoiceMMode1_Tx Mixer", "SEC_AUX_PCM_TX_MMode1", "SEC_AUX_PCM_TX"},
  26028. {"VoiceMMode1_Tx Mixer", "TERT_AUX_PCM_TX_MMode1", "TERT_AUX_PCM_TX"},
  26029. {"VoiceMMode1_Tx Mixer", "QUAT_AUX_PCM_TX_MMode1", "QUAT_AUX_PCM_TX"},
  26030. {"VoiceMMode1_Tx Mixer", "QUIN_AUX_PCM_TX_MMode1", "QUIN_AUX_PCM_TX"},
  26031. {"VoiceMMode1_Tx Mixer", "SEN_AUX_PCM_TX_MMode1", "SEN_AUX_PCM_TX"},
  26032. {"VoiceMMode1_Tx Mixer", "QUAT_TDM_TX_0_MMode1", "QUAT_TDM_TX_0"},
  26033. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_0_MMode1", "TX_CDC_DMA_TX_0"},
  26034. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_1_MMode1", "TX_CDC_DMA_TX_1"},
  26035. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_2_MMode1", "TX_CDC_DMA_TX_2"},
  26036. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_3_MMode1", "TX_CDC_DMA_TX_3"},
  26037. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_4_MMode1", "TX_CDC_DMA_TX_4"},
  26038. {"VoiceMMode1_Tx Mixer", "TX_CDC_DMA_TX_5_MMode1", "TX_CDC_DMA_TX_5"},
  26039. {"VoiceMMode1_Tx Mixer", "QUAT_MI2S_TX_MMode1", "QUAT_MI2S_TX"},
  26040. {"VoiceMMode1_Tx Mixer", "QUIN_MI2S_TX_MMode1", "QUIN_MI2S_TX"},
  26041. {"VoiceMMode1_Tx Mixer", "PRI_TDM_TX_3_MMode1", "PRI_TDM_TX_3"},
  26042. {"VOICEMMODE1_UL", NULL, "VoiceMMode1_Tx Mixer"},
  26043. {"VoiceMMode2_Tx Mixer", "PRI_TX_MMode2", "PRI_I2S_TX"},
  26044. {"VoiceMMode2_Tx Mixer", "PRI_MI2S_TX_MMode2", "PRI_MI2S_TX"},
  26045. {"VoiceMMode2_Tx Mixer", "SEC_MI2S_TX_MMode2", "SEC_MI2S_TX"},
  26046. {"VoiceMMode2_Tx Mixer", "MI2S_TX_MMode2", "MI2S_TX"},
  26047. {"VoiceMMode2_Tx Mixer", "TERT_MI2S_TX_MMode2", "TERT_MI2S_TX"},
  26048. {"VoiceMMode2_Tx Mixer", "INT3_MI2S_TX_MMode2", "INT3_MI2S_TX"},
  26049. {"VoiceMMode2_Tx Mixer", "SLIM_0_TX_MMode2", "SLIMBUS_0_TX"},
  26050. {"VoiceMMode2_Tx Mixer", "SLIM_7_TX_MMode2", "SLIMBUS_7_TX"},
  26051. {"VoiceMMode2_Tx Mixer", "SLIM_8_TX_MMode2", "SLIMBUS_8_TX"},
  26052. {"VoiceMMode2_Tx Mixer", "USB_AUDIO_TX_MMode2", "USB_AUDIO_TX"},
  26053. {"VoiceMMode2_Tx Mixer", "INT_BT_SCO_TX_MMode2", "INT_BT_SCO_TX"},
  26054. {"VoiceMMode2_Tx Mixer", "AFE_PCM_TX_MMode2", "PCM_TX"},
  26055. {"VoiceMMode2_Tx Mixer", "AUX_PCM_TX_MMode2", "AUX_PCM_TX"},
  26056. {"VoiceMMode2_Tx Mixer", "SEC_AUX_PCM_TX_MMode2", "SEC_AUX_PCM_TX"},
  26057. {"VoiceMMode2_Tx Mixer", "TERT_AUX_PCM_TX_MMode2", "TERT_AUX_PCM_TX"},
  26058. {"VoiceMMode2_Tx Mixer", "QUAT_AUX_PCM_TX_MMode2", "QUAT_AUX_PCM_TX"},
  26059. {"VoiceMMode2_Tx Mixer", "QUIN_AUX_PCM_TX_MMode2", "QUIN_AUX_PCM_TX"},
  26060. {"VoiceMMode2_Tx Mixer", "SEN_AUX_PCM_TX_MMode2", "SEN_AUX_PCM_TX"},
  26061. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_0_MMode2", "TX_CDC_DMA_TX_0"},
  26062. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_1_MMode2", "TX_CDC_DMA_TX_1"},
  26063. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_2_MMode2", "TX_CDC_DMA_TX_2"},
  26064. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_3_MMode2", "TX_CDC_DMA_TX_3"},
  26065. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_4_MMode2", "TX_CDC_DMA_TX_4"},
  26066. {"VoiceMMode2_Tx Mixer", "TX_CDC_DMA_TX_5_MMode2", "TX_CDC_DMA_TX_5"},
  26067. {"VoiceMMode2_Tx Mixer", "QUAT_MI2S_TX_MMode2", "QUAT_MI2S_TX"},
  26068. {"VoiceMMode2_Tx Mixer", "QUIN_MI2S_TX_MMode2", "QUIN_MI2S_TX"},
  26069. {"VoiceMMode2_Tx Mixer", "PRI_TDM_TX_3_MMode2", "PRI_TDM_TX_3"},
  26070. {"VOICEMMODE2_UL", NULL, "VoiceMMode2_Tx Mixer"},
  26071. {"Voip_Tx Mixer", "PRI_TX_Voip", "PRI_I2S_TX"},
  26072. {"Voip_Tx Mixer", "MI2S_TX_Voip", "MI2S_TX"},
  26073. {"Voip_Tx Mixer", "SEC_MI2S_TX_Voip", "SEC_MI2S_TX"},
  26074. {"Voip_Tx Mixer", "TERT_MI2S_TX_Voip", "TERT_MI2S_TX"},
  26075. {"Voip_Tx Mixer", "INT3_MI2S_TX_Voip", "INT3_MI2S_TX"},
  26076. {"Voip_Tx Mixer", "SLIM_0_TX_Voip", "SLIMBUS_0_TX"},
  26077. {"Voip_Tx Mixer", "SLIM_7_TX_Voip", "SLIMBUS_7_TX"},
  26078. {"Voip_Tx Mixer", "SLIM_8_TX_Voip", "SLIMBUS_8_TX"},
  26079. {"Voip_Tx Mixer", "USB_AUDIO_TX_Voip", "USB_AUDIO_TX"},
  26080. {"Voip_Tx Mixer", "INTERNAL_BT_SCO_TX_Voip", "INT_BT_SCO_TX"},
  26081. {"Voip_Tx Mixer", "AFE_PCM_TX_Voip", "PCM_TX"},
  26082. {"Voip_Tx Mixer", "AUX_PCM_TX_Voip", "AUX_PCM_TX"},
  26083. {"Voip_Tx Mixer", "SEC_AUX_PCM_TX_Voip", "SEC_AUX_PCM_TX"},
  26084. {"Voip_Tx Mixer", "TERT_AUX_PCM_TX_Voip", "TERT_AUX_PCM_TX"},
  26085. {"Voip_Tx Mixer", "QUAT_AUX_PCM_TX_Voip", "QUAT_AUX_PCM_TX"},
  26086. {"Voip_Tx Mixer", "QUIN_AUX_PCM_TX_Voip", "QUIN_AUX_PCM_TX"},
  26087. {"Voip_Tx Mixer", "SEN_AUX_PCM_TX_Voip", "SEN_AUX_PCM_TX"},
  26088. {"Voip_Tx Mixer", "PRI_MI2S_TX_Voip", "PRI_MI2S_TX"},
  26089. {"Voip_Tx Mixer", "PRI_TDM_TX_3_Voip", "PRI_TDM_TX_3"},
  26090. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_0_Voip", "TX_CDC_DMA_TX_0"},
  26091. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_1_Voip", "TX_CDC_DMA_TX_1"},
  26092. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_2_Voip", "TX_CDC_DMA_TX_2"},
  26093. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_3_Voip", "TX_CDC_DMA_TX_3"},
  26094. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_4_Voip", "TX_CDC_DMA_TX_4"},
  26095. {"Voip_Tx Mixer", "TX_CDC_DMA_TX_5_Voip", "TX_CDC_DMA_TX_5"},
  26096. {"VOIP_UL", NULL, "Voip_Tx Mixer"},
  26097. {"SLIMBUS_DL_HL", "Switch", "SLIM0_DL_HL"},
  26098. {"SLIMBUS_0_RX", NULL, "SLIMBUS_DL_HL"},
  26099. {"SLIMBUS1_DL_HL", "Switch", "SLIM1_DL_HL"},
  26100. {"SLIMBUS_1_RX", NULL, "SLIMBUS1_DL_HL"},
  26101. {"SLIMBUS3_DL_HL", "Switch", "SLIM3_DL_HL"},
  26102. {"SLIMBUS_3_RX", NULL, "SLIMBUS3_DL_HL"},
  26103. {"SLIMBUS4_DL_HL", "Switch", "SLIM4_DL_HL"},
  26104. {"SLIMBUS_4_RX", NULL, "SLIMBUS4_DL_HL"},
  26105. {"SLIMBUS6_DL_HL", "Switch", "SLIM0_DL_HL"},
  26106. {"SLIMBUS_6_RX", NULL, "SLIMBUS6_DL_HL"},
  26107. {"SCO_SLIM7_DL_HL", "Switch", "SLIM7_DL_HL"},
  26108. {"SLIMBUS_7_RX", NULL, "SCO_SLIM7_DL_HL"},
  26109. {"SLIM0_UL_HL", NULL, "SLIMBUS_0_TX"},
  26110. {"SLIM1_UL_HL", NULL, "SLIMBUS_1_TX"},
  26111. {"SLIM3_UL_HL", NULL, "SLIMBUS_3_TX"},
  26112. {"SLIM4_UL_HL", NULL, "SLIMBUS_4_TX"},
  26113. {"SLIM8_UL_HL", NULL, "SLIMBUS_8_TX"},
  26114. {"WSA_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26115. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0_DL_HL"},
  26116. {"CDC_DMA_UL_HL", NULL, "VA_CDC_DMA_TX_0"},
  26117. {"RX_CDC_DMA_RX_0_DL_HL", "Switch", "CDC_DMA_DL_HL"},
  26118. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26119. {"RX_CDC_DMA_RX_1", NULL, "RX_CDC_DMA_RX_0_DL_HL"},
  26120. {"TX3_CDC_DMA_UL_HL", NULL, "TX_CDC_DMA_TX_3"},
  26121. {"LSM1 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26122. {"LSM1 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26123. {"LSM1 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26124. {"LSM1 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26125. {"LSM1 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26126. {"LSM1 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26127. {"LSM1 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26128. {"LSM1 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26129. {"LSM1 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26130. {"LSM1 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26131. {"LSM1 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26132. {"LSM1 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26133. {"LSM1 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26134. {"LSM1_UL_HL", NULL, "LSM1 Mixer"},
  26135. {"LSM2 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26136. {"LSM2 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26137. {"LSM2 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26138. {"LSM2 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26139. {"LSM2 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26140. {"LSM2 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26141. {"LSM2 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26142. {"LSM2 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26143. {"LSM2 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26144. {"LSM2 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26145. {"LSM2 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26146. {"LSM2 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26147. {"LSM2 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26148. {"LSM2_UL_HL", NULL, "LSM2 Mixer"},
  26149. {"LSM3 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26150. {"LSM3 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26151. {"LSM3 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26152. {"LSM3 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26153. {"LSM3 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26154. {"LSM3 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26155. {"LSM3 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26156. {"LSM3 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26157. {"LSM3 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26158. {"LSM3 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26159. {"LSM3 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26160. {"LSM3 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26161. {"LSM3 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26162. {"LSM3_UL_HL", NULL, "LSM3 Mixer"},
  26163. {"LSM4 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26164. {"LSM4 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26165. {"LSM4 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26166. {"LSM4 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26167. {"LSM4 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26168. {"LSM4 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26169. {"LSM4 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26170. {"LSM4 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26171. {"LSM4 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26172. {"LSM4 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26173. {"LSM4 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26174. {"LSM4 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26175. {"LSM4 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26176. {"LSM4_UL_HL", NULL, "LSM4 Mixer"},
  26177. {"LSM5 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26178. {"LSM5 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26179. {"LSM5 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26180. {"LSM5 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26181. {"LSM5 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26182. {"LSM5 Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26183. {"LSM5 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26184. {"LSM5 Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26185. {"LSM5 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26186. {"LSM5 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26187. {"LSM5 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26188. {"LSM5 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26189. {"LSM5 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26190. {"LSM5_UL_HL", NULL, "LSM5 Mixer"},
  26191. {"LSM6 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26192. {"LSM6 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26193. {"LSM6 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26194. {"LSM6 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26195. {"LSM6 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26196. {"LSM6 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26197. {"LSM6 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26198. {"LSM6 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26199. {"LSM6 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26200. {"LSM6 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26201. {"LSM6 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26202. {"LSM6_UL_HL", NULL, "LSM6 Mixer"},
  26203. {"LSM7 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26204. {"LSM7 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26205. {"LSM7 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26206. {"LSM7 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26207. {"LSM7 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26208. {"LSM7 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26209. {"LSM7 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26210. {"LSM7 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26211. {"LSM7 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26212. {"LSM7 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26213. {"LSM7 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26214. {"LSM7_UL_HL", NULL, "LSM7 Mixer"},
  26215. {"LSM8 Mixer", "SLIMBUS_0_TX", "SLIMBUS_0_TX"},
  26216. {"LSM8 Mixer", "SLIMBUS_1_TX", "SLIMBUS_1_TX"},
  26217. {"LSM8 Mixer", "SLIMBUS_3_TX", "SLIMBUS_3_TX"},
  26218. {"LSM8 Mixer", "SLIMBUS_4_TX", "SLIMBUS_4_TX"},
  26219. {"LSM8 Mixer", "SLIMBUS_5_TX", "SLIMBUS_5_TX"},
  26220. {"LSM8 Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26221. {"LSM8 Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26222. {"LSM8 Mixer", "VA_CDC_DMA_TX_1", "VA_CDC_DMA_TX_1"},
  26223. {"LSM8 Mixer", "VA_CDC_DMA_TX_2", "VA_CDC_DMA_TX_2"},
  26224. {"LSM8 Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26225. {"LSM8 Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26226. {"LSM8_UL_HL", NULL, "LSM8 Mixer"},
  26227. {"CPE_LSM_UL_HL", NULL, "BE_IN"},
  26228. {"QCHAT_Tx Mixer", "PRI_TX_QCHAT", "PRI_I2S_TX"},
  26229. {"QCHAT_Tx Mixer", "SLIM_0_TX_QCHAT", "SLIMBUS_0_TX"},
  26230. {"QCHAT_Tx Mixer", "SLIM_7_TX_QCHAT", "SLIMBUS_7_TX"},
  26231. {"QCHAT_Tx Mixer", "SLIM_8_TX_QCHAT", "SLIMBUS_8_TX"},
  26232. {"QCHAT_Tx Mixer", "INTERNAL_BT_SCO_TX_QCHAT", "INT_BT_SCO_TX"},
  26233. {"QCHAT_Tx Mixer", "AFE_PCM_TX_QCHAT", "PCM_TX"},
  26234. {"QCHAT_Tx Mixer", "AUX_PCM_TX_QCHAT", "AUX_PCM_TX"},
  26235. {"QCHAT_Tx Mixer", "SEC_AUX_PCM_TX_QCHAT", "SEC_AUX_PCM_TX"},
  26236. {"QCHAT_Tx Mixer", "TERT_AUX_PCM_TX_QCHAT", "TERT_AUX_PCM_TX"},
  26237. {"QCHAT_Tx Mixer", "QUAT_AUX_PCM_TX_QCHAT", "QUAT_AUX_PCM_TX"},
  26238. {"QCHAT_Tx Mixer", "QUIN_AUX_PCM_TX_QCHAT", "QUIN_AUX_PCM_TX"},
  26239. {"QCHAT_Tx Mixer", "SEN_AUX_PCM_TX_QCHAT", "SEN_AUX_PCM_TX"},
  26240. {"QCHAT_Tx Mixer", "MI2S_TX_QCHAT", "MI2S_TX"},
  26241. {"QCHAT_Tx Mixer", "PRI_MI2S_TX_QCHAT", "PRI_MI2S_TX"},
  26242. {"QCHAT_Tx Mixer", "TERT_MI2S_TX_QCHAT", "TERT_MI2S_TX"},
  26243. {"QCHAT_Tx Mixer", "INT3_MI2S_TX_QCHAT", "INT3_MI2S_TX"},
  26244. {"QCHAT_Tx Mixer", "USB_AUDIO_TX_QCHAT", "USB_AUDIO_TX"},
  26245. {"QCHAT_UL", NULL, "QCHAT_Tx Mixer"},
  26246. {"INT_FM_RX", NULL, "INTFM_DL_HL"},
  26247. {"INTFM_UL_HL", NULL, "INT_FM_TX"},
  26248. {"INTHFP_UL_HL", NULL, "HFP_PRI_AUX_UL_HL"},
  26249. {"HFP_PRI_AUX_UL_HL", "Switch", "AUX_PCM_TX"},
  26250. {"INTHFP_UL_HL", NULL, "HFP_AUX_UL_HL"},
  26251. {"HFP_AUX_UL_HL", "Switch", "SEC_AUX_PCM_TX"},
  26252. {"INTHFP_UL_HL", NULL, "HFP_INT_UL_HL"},
  26253. {"HFP_INT_UL_HL", "Switch", "INT_BT_SCO_TX"},
  26254. {"SLIM7_UL_HL", NULL, "HFP_SLIM7_UL_HL"},
  26255. {"HFP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26256. {"AUX_PCM_RX", NULL, "AUXPCM_DL_HL"},
  26257. {"AUX_PCM_RX", NULL, "INTHFP_DL_HL"},
  26258. {"SLIM7_UL_HL", NULL, "A2DP_SLIM7_UL_HL"},
  26259. {"A2DP_SLIM7_UL_HL", "Switch", "SLIMBUS_7_TX"},
  26260. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_DL_HL"},
  26261. {"AUXPCM_UL_HL", NULL, "AUX_PCM_TX"},
  26262. {"SEC_AUXPCM_UL_HL", NULL, "SEC_AUX_PCM_TX"},
  26263. {"MI2S_RX", NULL, "MI2S_DL_HL"},
  26264. {"MI2S_UL_HL", NULL, "MI2S_TX"},
  26265. {"PCM_RX_DL_HL", "Switch", "SLIM0_DL_HL"},
  26266. {"PCM_RX", NULL, "PCM_RX_DL_HL"},
  26267. /* connect to INT4_MI2S_DL_HL since same pcm_id */
  26268. {"INT0_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26269. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX_DL_HL"},
  26270. {"INT4_MI2S_RX_DL_HL", "Switch", "INT4_MI2S_DL_HL"},
  26271. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_DL_HL"},
  26272. {"PRI_MI2S_RX_DL_HL", "Switch", "PRI_MI2S_DL_HL"},
  26273. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_DL_HL"},
  26274. {"SEC_MI2S_RX_DL_HL", "Switch", "SEC_MI2S_DL_HL"},
  26275. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX_DL_HL"},
  26276. {"TERT_MI2S_RX_DL_HL", "Switch", "TERT_MI2S_DL_HL"},
  26277. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX_DL_HL"},
  26278. {"QUAT_MI2S_RX_DL_HL", "Switch", "QUAT_MI2S_DL_HL"},
  26279. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX_DL_HL"},
  26280. {"QUIN_MI2S_RX_DL_HL", "Switch", "QUIN_MI2S_DL_HL"},
  26281. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX_DL_HL"},
  26282. {"SEN_MI2S_RX_DL_HL", "Switch", "SEN_MI2S_DL_HL"},
  26283. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX_DL_HL"},
  26284. {"MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26285. {"INT3_MI2S_UL_HL", NULL, "INT3_MI2S_TX"},
  26286. {"TERT_MI2S_UL_HL", NULL, "TERT_MI2S_TX"},
  26287. {"SEC_I2S_RX", NULL, "SEC_I2S_DL_HL"},
  26288. {"PRI_MI2S_UL_HL", NULL, "PRI_MI2S_TX"},
  26289. {"SEC_MI2S_UL_HL", NULL, "SEC_MI2S_TX"},
  26290. {"SEC_MI2S_RX", NULL, "SEC_MI2S_DL_HL"},
  26291. {"PRI_MI2S_RX", NULL, "PRI_MI2S_DL_HL"},
  26292. {"TERT_MI2S_RX", NULL, "TERT_MI2S_DL_HL"},
  26293. {"QUAT_MI2S_UL_HL", NULL, "QUAT_MI2S_TX"},
  26294. {"PRI_TDM_TX_0_UL_HL", NULL, "PRI_TDM_TX_0"},
  26295. {"PRI_TDM_TX_1_UL_HL", NULL, "PRI_TDM_TX_1"},
  26296. {"PRI_TDM_TX_2_UL_HL", NULL, "PRI_TDM_TX_2"},
  26297. {"PRI_TDM_TX_3_UL_HL", NULL, "PRI_TDM_TX_3"},
  26298. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0_DL_HL"},
  26299. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1_DL_HL"},
  26300. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2_DL_HL"},
  26301. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3_DL_HL"},
  26302. {"SEC_TDM_TX_0_UL_HL", NULL, "SEC_TDM_TX_0"},
  26303. {"SEC_TDM_TX_1_UL_HL", NULL, "SEC_TDM_TX_1"},
  26304. {"SEC_TDM_TX_2_UL_HL", NULL, "SEC_TDM_TX_2"},
  26305. {"SEC_TDM_TX_3_UL_HL", NULL, "SEC_TDM_TX_3"},
  26306. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0_DL_HL"},
  26307. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1_DL_HL"},
  26308. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2_DL_HL"},
  26309. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3_DL_HL"},
  26310. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7_DL_HL"},
  26311. {"TERT_TDM_TX_0_UL_HL", NULL, "TERT_TDM_TX_0"},
  26312. {"TERT_TDM_TX_1_UL_HL", NULL, "TERT_TDM_TX_1"},
  26313. {"TERT_TDM_TX_2_UL_HL", NULL, "TERT_TDM_TX_2"},
  26314. {"TERT_TDM_TX_3_UL_HL", NULL, "TERT_TDM_TX_3"},
  26315. {"TERT_TDM_TX_7_UL_HL", NULL, "TERT_TDM_TX_7"},
  26316. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0_DL_HL"},
  26317. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1_DL_HL"},
  26318. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2_DL_HL"},
  26319. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3_DL_HL"},
  26320. {"QUAT_TDM_TX_0_UL_HL", NULL, "QUAT_TDM_TX_0"},
  26321. {"QUAT_TDM_TX_1_UL_HL", NULL, "QUAT_TDM_TX_1"},
  26322. {"QUAT_TDM_TX_2_UL_HL", NULL, "QUAT_TDM_TX_2"},
  26323. {"QUAT_TDM_TX_3_UL_HL", NULL, "QUAT_TDM_TX_3"},
  26324. {"QUAT_TDM_TX_7_UL_HL", NULL, "QUAT_TDM_TX_7"},
  26325. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0_DL_HL"},
  26326. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1_DL_HL"},
  26327. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2_DL_HL"},
  26328. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3_DL_HL"},
  26329. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7_DL_HL"},
  26330. {"QUIN_TDM_TX_0_UL_HL", NULL, "QUIN_TDM_TX_0"},
  26331. {"QUIN_TDM_TX_1_UL_HL", NULL, "QUIN_TDM_TX_1"},
  26332. {"QUIN_TDM_TX_2_UL_HL", NULL, "QUIN_TDM_TX_2"},
  26333. {"QUIN_TDM_TX_3_UL_HL", NULL, "QUIN_TDM_TX_3"},
  26334. {"QUIN_TDM_TX_7_UL_HL", NULL, "QUIN_TDM_TX_7"},
  26335. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0_DL_HL"},
  26336. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1_DL_HL"},
  26337. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2_DL_HL"},
  26338. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3_DL_HL"},
  26339. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7_DL_HL"},
  26340. {"SEN_TDM_TX_0_UL_HL", NULL, "SEN_TDM_TX_0"},
  26341. {"SEN_TDM_TX_1_UL_HL", NULL, "SEN_TDM_TX_1"},
  26342. {"SEN_TDM_TX_2_UL_HL", NULL, "SEN_TDM_TX_2"},
  26343. {"SEN_TDM_TX_3_UL_HL", NULL, "SEN_TDM_TX_3"},
  26344. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0_DL_HL"},
  26345. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1_DL_HL"},
  26346. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2_DL_HL"},
  26347. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3_DL_HL"},
  26348. {"PRI_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26349. {"PRI_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26350. {"PRI_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26351. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26352. {"PRI_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26353. {"PRI_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26354. {"PRI_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26355. {"PRI_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26356. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26357. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26358. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26359. {"PRI_TDM_RX_0 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26360. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26361. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26362. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26363. {"PRI_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26364. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26365. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26366. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26367. {"PRI_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26368. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26369. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26370. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26371. {"PRI_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26372. {"PRI_TDM_RX_0", NULL, "PRI_TDM_RX_0 Port Mixer"},
  26373. {"PRI_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26374. {"PRI_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26375. {"PRI_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26376. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26377. {"PRI_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26378. {"PRI_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26379. {"PRI_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26380. {"PRI_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26381. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26382. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26383. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26384. {"PRI_TDM_RX_1 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26385. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26386. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26387. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26388. {"PRI_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26389. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26390. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26391. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26392. {"PRI_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26393. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26394. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26395. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26396. {"PRI_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26397. {"PRI_TDM_RX_1", NULL, "PRI_TDM_RX_1 Port Mixer"},
  26398. {"PRI_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26399. {"PRI_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26400. {"PRI_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26401. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26402. {"PRI_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26403. {"PRI_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26404. {"PRI_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26405. {"PRI_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26406. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26407. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26408. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26409. {"PRI_TDM_RX_2 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26410. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26411. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26412. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26413. {"PRI_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26414. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26415. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26416. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26417. {"PRI_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26418. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26419. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26420. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26421. {"PRI_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26422. {"PRI_TDM_RX_2", NULL, "PRI_TDM_RX_2 Port Mixer"},
  26423. {"PRI_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26424. {"PRI_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26425. {"PRI_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26426. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26427. {"PRI_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26428. {"PRI_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26429. {"PRI_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26430. {"PRI_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26431. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_0", "PRI_TDM_TX_0"},
  26432. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_1", "PRI_TDM_TX_1"},
  26433. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_2", "PRI_TDM_TX_2"},
  26434. {"PRI_TDM_RX_3 Port Mixer", "PRI_TDM_TX_3", "PRI_TDM_TX_3"},
  26435. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26436. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26437. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26438. {"PRI_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26439. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26440. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26441. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26442. {"PRI_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26443. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26444. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26445. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26446. {"PRI_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26447. {"PRI_TDM_RX_3", NULL, "PRI_TDM_RX_3 Port Mixer"},
  26448. {"SEC_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26449. {"SEC_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26450. {"SEC_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26451. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26452. {"SEC_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26453. {"SEC_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26454. {"SEC_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26455. {"SEC_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26456. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26457. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26458. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26459. {"SEC_TDM_RX_0 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26460. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26461. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26462. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26463. {"SEC_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26464. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26465. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26466. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26467. {"SEC_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26468. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26469. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26470. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26471. {"SEC_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26472. {"SEC_TDM_RX_0", NULL, "SEC_TDM_RX_0 Port Mixer"},
  26473. {"SEC_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26474. {"SEC_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26475. {"SEC_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26476. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26477. {"SEC_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26478. {"SEC_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26479. {"SEC_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26480. {"SEC_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26481. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26482. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26483. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26484. {"SEC_TDM_RX_1 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26485. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26486. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26487. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26488. {"SEC_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26489. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26490. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26491. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26492. {"SEC_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26493. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26494. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26495. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26496. {"SEC_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26497. {"SEC_TDM_RX_1", NULL, "SEC_TDM_RX_1 Port Mixer"},
  26498. {"SEC_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26499. {"SEC_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26500. {"SEC_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26501. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26502. {"SEC_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26503. {"SEC_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26504. {"SEC_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26505. {"SEC_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26506. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26507. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26508. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26509. {"SEC_TDM_RX_2 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26510. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26511. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26512. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26513. {"SEC_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26514. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26515. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26516. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26517. {"SEC_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26518. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26519. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26520. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26521. {"SEC_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26522. {"SEC_TDM_RX_2", NULL, "SEC_TDM_RX_2 Port Mixer"},
  26523. {"SEC_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26524. {"SEC_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26525. {"SEC_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26526. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26527. {"SEC_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26528. {"SEC_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26529. {"SEC_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26530. {"SEC_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26531. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_0", "SEC_TDM_TX_0"},
  26532. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_1", "SEC_TDM_TX_1"},
  26533. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_2", "SEC_TDM_TX_2"},
  26534. {"SEC_TDM_RX_3 Port Mixer", "SEC_TDM_TX_3", "SEC_TDM_TX_3"},
  26535. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26536. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26537. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26538. {"SEC_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26539. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26540. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26541. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26542. {"SEC_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26543. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26544. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26545. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26546. {"SEC_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26547. {"SEC_TDM_RX_3", NULL, "SEC_TDM_RX_3 Port Mixer"},
  26548. {"SEC_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26549. {"SEC_TDM_RX_7", NULL, "SEC_TDM_RX_7 Port Mixer"},
  26550. {"TERT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26551. {"TERT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26552. {"TERT_TDM_RX_0 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26553. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26554. {"TERT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26555. {"TERT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26556. {"TERT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26557. {"TERT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26558. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26559. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26560. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26561. {"TERT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26562. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26563. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26564. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26565. {"TERT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26566. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26567. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26568. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26569. {"TERT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26570. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26571. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26572. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26573. {"TERT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26574. {"TERT_TDM_RX_0", NULL, "TERT_TDM_RX_0 Port Mixer"},
  26575. {"TERT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26576. {"TERT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26577. {"TERT_TDM_RX_1 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26578. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26579. {"TERT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26580. {"TERT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26581. {"TERT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26582. {"TERT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26583. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26584. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26585. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26586. {"TERT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26587. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26588. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26589. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26590. {"TERT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26591. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26592. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26593. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26594. {"TERT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26595. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26596. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26597. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26598. {"TERT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26599. {"TERT_TDM_RX_1", NULL, "TERT_TDM_RX_1 Port Mixer"},
  26600. {"TERT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26601. {"TERT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26602. {"TERT_TDM_RX_2 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26603. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26604. {"TERT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26605. {"TERT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26606. {"TERT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26607. {"TERT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26608. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26609. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26610. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26611. {"TERT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26612. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26613. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26614. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26615. {"TERT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26616. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26617. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26618. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26619. {"TERT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26620. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26621. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26622. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26623. {"TERT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26624. {"TERT_TDM_RX_2", NULL, "TERT_TDM_RX_2 Port Mixer"},
  26625. {"TERT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26626. {"TERT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26627. {"TERT_TDM_RX_3 Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26628. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26629. {"TERT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26630. {"TERT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26631. {"TERT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26632. {"TERT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26633. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26634. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26635. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26636. {"TERT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26637. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26638. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26639. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26640. {"TERT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26641. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26642. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26643. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26644. {"TERT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26645. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26646. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26647. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26648. {"TERT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26649. {"TERT_TDM_RX_3", NULL, "TERT_TDM_RX_3 Port Mixer"},
  26650. {"QUAT_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26651. {"QUAT_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26652. {"QUAT_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26653. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26654. {"QUAT_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26655. {"QUAT_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26656. {"QUAT_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26657. {"QUAT_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26658. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26659. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26660. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26661. {"QUAT_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26662. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26663. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26664. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26665. {"QUAT_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26666. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26667. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26668. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26669. {"QUAT_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26670. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26671. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26672. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26673. {"QUAT_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26674. {"QUAT_TDM_RX_0", NULL, "QUAT_TDM_RX_0 Port Mixer"},
  26675. {"QUAT_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26676. {"QUAT_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26677. {"QUAT_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26678. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26679. {"QUAT_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26680. {"QUAT_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26681. {"QUAT_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26682. {"QUAT_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26683. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26684. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26685. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26686. {"QUAT_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26687. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26688. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26689. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26690. {"QUAT_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26691. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26692. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26693. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26694. {"QUAT_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26695. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26696. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26697. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26698. {"QUAT_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26699. {"QUAT_TDM_RX_1", NULL, "QUAT_TDM_RX_1 Port Mixer"},
  26700. {"QUAT_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26701. {"QUAT_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26702. {"QUAT_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26703. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26704. {"QUAT_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26705. {"QUAT_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26706. {"QUAT_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26707. {"QUAT_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26708. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26709. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26710. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26711. {"QUAT_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26712. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26713. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26714. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26715. {"QUAT_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26716. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26717. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26718. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26719. {"QUAT_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26720. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26721. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26722. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26723. {"QUAT_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26724. {"QUAT_TDM_RX_2", NULL, "QUAT_TDM_RX_2 Port Mixer"},
  26725. {"QUAT_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26726. {"QUAT_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26727. {"QUAT_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26728. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26729. {"QUAT_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26730. {"QUAT_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26731. {"QUAT_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26732. {"QUAT_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26733. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26734. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26735. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26736. {"QUAT_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26737. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26738. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26739. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26740. {"QUAT_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26741. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26742. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26743. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26744. {"QUAT_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26745. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26746. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26747. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26748. {"QUAT_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26749. {"QUAT_TDM_RX_3", NULL, "QUAT_TDM_RX_3 Port Mixer"},
  26750. {"QUAT_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26751. {"QUAT_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26752. {"QUAT_TDM_RX_7", NULL, "QUAT_TDM_RX_7 Port Mixer"},
  26753. {"QUIN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26754. {"QUIN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26755. {"QUIN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26756. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26757. {"QUIN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26758. {"QUIN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26759. {"QUIN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26760. {"QUIN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26761. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26762. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26763. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26764. {"QUIN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26765. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26766. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26767. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26768. {"QUIN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26769. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26770. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26771. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26772. {"QUIN_TDM_RX_0 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26773. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26774. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26775. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26776. {"QUIN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26777. {"QUIN_TDM_RX_0", NULL, "QUIN_TDM_RX_0 Port Mixer"},
  26778. {"QUIN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26779. {"QUIN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26780. {"QUIN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26781. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26782. {"QUIN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26783. {"QUIN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26784. {"QUIN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26785. {"QUIN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26786. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26787. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26788. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26789. {"QUIN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26790. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26791. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26792. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26793. {"QUIN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26794. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26795. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26796. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26797. {"QUIN_TDM_RX_1 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26798. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26799. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26800. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26801. {"QUIN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26802. {"QUIN_TDM_RX_1", NULL, "QUIN_TDM_RX_1 Port Mixer"},
  26803. {"QUIN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26804. {"QUIN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26805. {"QUIN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26806. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26807. {"QUIN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26808. {"QUIN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26809. {"QUIN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26810. {"QUIN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26811. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26812. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26813. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26814. {"QUIN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26815. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26816. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26817. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26818. {"QUIN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26819. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26820. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26821. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26822. {"QUIN_TDM_RX_2 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26823. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26824. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26825. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26826. {"QUIN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26827. {"QUIN_TDM_RX_2", NULL, "QUIN_TDM_RX_2 Port Mixer"},
  26828. {"QUIN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26829. {"QUIN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26830. {"QUIN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26831. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26832. {"QUIN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26833. {"QUIN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26834. {"QUIN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26835. {"QUIN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26836. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26837. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26838. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26839. {"QUIN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26840. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26841. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26842. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26843. {"QUIN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26844. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_0", "QUIN_TDM_TX_0"},
  26845. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_1", "QUIN_TDM_TX_1"},
  26846. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_2", "QUIN_TDM_TX_2"},
  26847. {"QUIN_TDM_RX_3 Port Mixer", "QUIN_TDM_TX_3", "QUIN_TDM_TX_3"},
  26848. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26849. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26850. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26851. {"QUIN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26852. {"QUIN_TDM_RX_3", NULL, "QUIN_TDM_RX_3 Port Mixer"},
  26853. {"QUIN_TDM_RX_7 Port Mixer", "TERT_TDM_TX_7", "TERT_TDM_TX_7"},
  26854. {"QUIN_TDM_RX_7 Port Mixer", "QUAT_TDM_TX_7", "QUAT_TDM_TX_7"},
  26855. {"QUIN_TDM_RX_7 Port Mixer", "QUIN_TDM_TX_7", "QUIN_TDM_TX_7"},
  26856. {"QUIN_TDM_RX_7", NULL, "QUIN_TDM_RX_7 Port Mixer"},
  26857. {"SEN_TDM_RX_0 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26858. {"SEN_TDM_RX_0 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26859. {"SEN_TDM_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26860. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26861. {"SEN_TDM_RX_0 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26862. {"SEN_TDM_RX_0 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26863. {"SEN_TDM_RX_0 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26864. {"SEN_TDM_RX_0 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26865. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26866. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26867. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26868. {"SEN_TDM_RX_0 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26869. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26870. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26871. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26872. {"SEN_TDM_RX_0 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26873. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26874. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26875. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26876. {"SEN_TDM_RX_0 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26877. {"SEN_TDM_RX_0", NULL, "SEN_TDM_RX_0 Port Mixer"},
  26878. {"SEN_TDM_RX_1 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26879. {"SEN_TDM_RX_1 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26880. {"SEN_TDM_RX_1 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26881. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26882. {"SEN_TDM_RX_1 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26883. {"SEN_TDM_RX_1 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26884. {"SEN_TDM_RX_1 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26885. {"SEN_TDM_RX_1 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26886. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26887. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26888. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26889. {"SEN_TDM_RX_1 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26890. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26891. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26892. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26893. {"SEN_TDM_RX_1 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26894. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26895. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26896. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26897. {"SEN_TDM_RX_1 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26898. {"SEN_TDM_RX_1", NULL, "SEN_TDM_RX_1 Port Mixer"},
  26899. {"SEN_TDM_RX_2 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26900. {"SEN_TDM_RX_2 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26901. {"SEN_TDM_RX_2 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26902. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26903. {"SEN_TDM_RX_2 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26904. {"SEN_TDM_RX_2 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26905. {"SEN_TDM_RX_2 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26906. {"SEN_TDM_RX_2 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26907. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26908. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26909. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26910. {"SEN_TDM_RX_2 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26911. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26912. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26913. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26914. {"SEN_TDM_RX_2 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26915. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26916. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26917. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26918. {"SEN_TDM_RX_2 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26919. {"SEN_TDM_RX_2", NULL, "SEN_TDM_RX_2 Port Mixer"},
  26920. {"SEN_TDM_RX_3 Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26921. {"SEN_TDM_RX_3 Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26922. {"SEN_TDM_RX_3 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26923. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26924. {"SEN_TDM_RX_3 Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26925. {"SEN_TDM_RX_3 Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  26926. {"SEN_TDM_RX_3 Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26927. {"SEN_TDM_RX_3 Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26928. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  26929. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_1", "TERT_TDM_TX_1"},
  26930. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_2", "TERT_TDM_TX_2"},
  26931. {"SEN_TDM_RX_3 Port Mixer", "TERT_TDM_TX_3", "TERT_TDM_TX_3"},
  26932. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  26933. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_1", "QUAT_TDM_TX_1"},
  26934. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_2", "QUAT_TDM_TX_2"},
  26935. {"SEN_TDM_RX_3 Port Mixer", "QUAT_TDM_TX_3", "QUAT_TDM_TX_3"},
  26936. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_0", "SEN_TDM_TX_0"},
  26937. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_1", "SEN_TDM_TX_1"},
  26938. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_2", "SEN_TDM_TX_2"},
  26939. {"SEN_TDM_RX_3 Port Mixer", "SEN_TDM_TX_3", "SEN_TDM_TX_3"},
  26940. {"SEN_TDM_RX_3", NULL, "SEN_TDM_RX_3 Port Mixer"},
  26941. {"INT0_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26942. {"INT0_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26943. {"INT0_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26944. {"INT0_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26945. {"INT0_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26946. {"INT0_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26947. {"INT0_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26948. {"INT0_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26949. {"INT0_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26950. {"INT0_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26951. {"INT0_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26952. {"INT0_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26953. {"INT0_MI2S_RX", NULL, "INT0_MI2S_RX Port Mixer"},
  26954. {"INT4_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26955. {"INT4_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26956. {"INT4_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26957. {"INT4_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26958. {"INT4_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26959. {"INT4_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26960. {"INT4_MI2S_RX Port Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  26961. {"INT4_MI2S_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26962. {"INT4_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26963. {"INT4_MI2S_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26964. {"INT4_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26965. {"INT4_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26966. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX Port Mixer"},
  26967. {"WSA_CDC_DMA_RX_0 Port Mixer", "VA_CDC_DMA_TX_0", "VA_CDC_DMA_TX_0"},
  26968. {"WSA_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26969. {"WSA_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26970. {"WSA_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26971. {"WSA_CDC_DMA_RX_0", NULL, "WSA_CDC_DMA_RX_0 Port Mixer"},
  26972. {"RX_CDC_DMA_RX_0 Port Mixer", "TX_CDC_DMA_TX_3", "TX_CDC_DMA_TX_3"},
  26973. {"RX_CDC_DMA_RX_0 Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26974. {"RX_CDC_DMA_RX_0 Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26975. {"RX_CDC_DMA_RX_0", NULL, "RX_CDC_DMA_RX_0 Port Mixer"},
  26976. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26977. {"SLIMBUS_0_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  26978. {"SLIMBUS_0_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26979. {"SLIMBUS_0_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  26980. {"SLIMBUS_0_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  26981. {"SLIMBUS_0_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  26982. {"SLIMBUS_0_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  26983. {"SLIMBUS_0_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  26984. {"SLIMBUS_0_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  26985. {"SLIMBUS_0_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  26986. {"SLIMBUS_0_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  26987. {"SLIMBUS_0_RX Port Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  26988. {"SLIMBUS_0_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  26989. {"SLIMBUS_0_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  26990. {"SLIMBUS_0_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  26991. {"SLIMBUS_0_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  26992. {"SLIMBUS_0_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  26993. {"SLIMBUS_0_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  26994. {"SLIMBUS_0_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  26995. {"SLIMBUS_0_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  26996. {"SLIMBUS_0_RX", NULL, "SLIMBUS_0_RX Port Mixer"},
  26997. {"AFE_PCM_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  26998. {"AFE_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  26999. {"PCM_RX", NULL, "AFE_PCM_RX Port Mixer"},
  27000. {"USB_AUDIO_RX Port Mixer", "USB_AUDIO_TX", "USB_AUDIO_TX"},
  27001. {"USB_AUDIO_RX", NULL, "USB_AUDIO_RX Port Mixer"},
  27002. {"USB_DL_HL", "Switch", "USBAUDIO_DL_HL"},
  27003. {"USB_AUDIO_RX", NULL, "USB_DL_HL"},
  27004. {"USBAUDIO_UL_HL", NULL, "USB_AUDIO_TX"},
  27005. {"AUX_PCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27006. {"AUX_PCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27007. {"AUX_PCM_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27008. {"AUX_PCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27009. {"AUX_PCM_RX Port Mixer", "QUAT_TDM_TX_0", "QUAT_TDM_TX_0"},
  27010. {"AUX_PCM_RX Port Mixer", "TERT_TDM_TX_0", "TERT_TDM_TX_0"},
  27011. {"AUX_PCM_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27012. {"AUX_PCM_RX", NULL, "AUX_PCM_RX Port Mixer"},
  27013. {"SEC_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27014. {"SEC_AUXPCM_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27015. {"SEC_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27016. {"SEC_AUXPCM_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27017. {"SEC_AUX_PCM_RX", NULL, "SEC_AUXPCM_RX Port Mixer"},
  27018. {"TERT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27019. {"TERT_AUXPCM_RX Port Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27020. {"TERT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27021. {"TERT_AUX_PCM_RX", NULL, "TERT_AUXPCM_RX Port Mixer"},
  27022. {"QUAT_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27023. {"QUAT_AUXPCM_RX Port Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27024. {"QUAT_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27025. {"QUAT_AUX_PCM_RX", NULL, "QUAT_AUXPCM_RX Port Mixer"},
  27026. {"QUIN_AUXPCM_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27027. {"QUIN_AUXPCM_RX Port Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27028. {"QUIN_AUXPCM_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27029. {"QUIN_AUX_PCM_RX", NULL, "QUIN_AUXPCM_RX Port Mixer"},
  27030. {"Voice Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27031. {"Voice Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27032. {"Voice Stub Tx Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27033. {"Voice Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27034. {"Voice Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27035. {"Voice Stub Tx Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27036. {"Voice Stub Tx Mixer", "TERT_AUXPCM_UL_TX", "TERT_AUX_PCM_TX"},
  27037. {"Voice Stub Tx Mixer", "QUAT_AUXPCM_UL_TX", "QUAT_AUX_PCM_TX"},
  27038. {"Voice Stub Tx Mixer", "QUIN_AUXPCM_UL_TX", "QUIN_AUX_PCM_TX"},
  27039. {"Voice Stub Tx Mixer", "SEN_AUXPCM_UL_TX", "SEN_AUX_PCM_TX"},
  27040. {"Voice Stub Tx Mixer", "MI2S_TX", "MI2S_TX"},
  27041. {"Voice Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27042. {"Voice Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27043. {"Voice Stub Tx Mixer", "INT3_MI2S_TX", "INT3_MI2S_TX"},
  27044. {"Voice Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27045. {"Voice Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27046. {"Voice Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27047. {"Voice Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27048. {"Voice Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27049. {"Voice Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27050. {"VOICE_STUB_UL", NULL, "Voice Stub Tx Mixer"},
  27051. {"VoLTE Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27052. {"VoLTE Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27053. {"VoLTE Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27054. {"VoLTE Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27055. {"VoLTE Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27056. {"VoLTE Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27057. {"VoLTE Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27058. {"VoLTE Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27059. {"VoLTE Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27060. {"VoLTE Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27061. {"VoLTE Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27062. {"VOLTE_STUB_UL", NULL, "VoLTE Stub Tx Mixer"},
  27063. {"Voice2 Stub Tx Mixer", "STUB_TX_HL", "STUB_TX"},
  27064. {"Voice2 Stub Tx Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27065. {"Voice2 Stub Tx Mixer", "STUB_1_TX_HL", "STUB_1_TX"},
  27066. {"Voice2 Stub Tx Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27067. {"Voice2 Stub Tx Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27068. {"Voice2 Stub Tx Mixer", "SLIM_3_TX", "SLIMBUS_3_TX"},
  27069. {"Voice2 Stub Tx Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27070. {"Voice2 Stub Tx Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27071. {"Voice2 Stub Tx Mixer", "AFE_PCM_TX", "PCM_TX"},
  27072. {"Voice2 Stub Tx Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27073. {"Voice2 Stub Tx Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27074. {"Voice2 Stub Tx Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27075. {"VOICE2_STUB_UL", NULL, "Voice2 Stub Tx Mixer"},
  27076. {"STUB_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27077. {"STUB_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27078. {"STUB_RX", NULL, "STUB_RX Mixer"},
  27079. {"SLIMBUS_1_RX Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27080. {"SLIMBUS_1_RX Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27081. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Mixer"},
  27082. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27083. {"SLIMBUS_3_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27084. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX_Voice Mixer"},
  27085. {"SLIM_7_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27086. {"SLIM_7_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27087. {"SLIM_7_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27088. {"SLIM_7_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27089. {"SLIM_7_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27090. {"SLIMBUS_7_RX", NULL, "SLIM_7_RX_Voice Mixer"},
  27091. {"SLIM_8_RX_Voice Mixer", "Voip", "VOIP_DL"},
  27092. {"SLIM_8_RX_Voice Mixer", "DTMF", "DTMF_DL_HL"},
  27093. {"SLIM_8_RX_Voice Mixer", "QCHAT", "QCHAT_DL"},
  27094. {"SLIM_8_RX_Voice Mixer", "VoiceMMode1", "VOICEMMODE1_DL"},
  27095. {"SLIM_8_RX_Voice Mixer", "VoiceMMode2", "VOICEMMODE2_DL"},
  27096. {"SLIMBUS_8_RX", NULL, "SLIM_8_RX_Voice Mixer"},
  27097. {"SLIMBUS_1_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27098. {"SLIMBUS_1_RX Port Mixer", "AFE_PCM_TX", "PCM_TX"},
  27099. {"SLIMBUS_1_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27100. {"SLIMBUS_1_RX", NULL, "SLIMBUS_1_RX Port Mixer"},
  27101. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27102. {"INTERNAL_BT_SCO_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27103. {"INT_BT_SCO_RX", NULL, "INTERNAL_BT_SCO_RX Port Mixer"},
  27104. {"SLIMBUS_3_RX Port Mixer", "INTERNAL_BT_SCO_RX", "INT_BT_SCO_RX"},
  27105. {"SLIMBUS_3_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27106. {"SLIMBUS_3_RX Port Mixer", "AFE_PCM_RX", "PCM_RX"},
  27107. {"SLIMBUS_3_RX Port Mixer", "AUX_PCM_RX", "AUX_PCM_RX"},
  27108. {"SLIMBUS_3_RX Port Mixer", "SLIM_0_RX", "SLIMBUS_0_RX"},
  27109. {"SLIMBUS_3_RX", NULL, "SLIMBUS_3_RX Port Mixer"},
  27110. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27111. {"SLIMBUS_6_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27112. {"SLIMBUS_6_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27113. {"SLIMBUS_6_RX Port Mixer", "SLIM_7_TX", "SLIMBUS_7_TX"},
  27114. {"SLIMBUS_6_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27115. {"SLIMBUS_6_RX Port Mixer", "SLIM_9_TX", "SLIMBUS_9_TX"},
  27116. {"SLIMBUS_6_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27117. {"SLIMBUS_6_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27118. {"SLIMBUS_6_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27119. {"SLIMBUS_6_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27120. {"SLIMBUS_6_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27121. {"SLIMBUS_6_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27122. {"SLIMBUS_6_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27123. {"SLIMBUS_6_RX", NULL, "SLIMBUS_6_RX Port Mixer"},
  27124. {"HDMI_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27125. {"HDMI", NULL, "HDMI_RX Port Mixer"},
  27126. {"DISPLAY_PORT_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27127. {"DISPLAY_PORT", NULL, "DISPLAY_PORT_RX Port Mixer"},
  27128. {"DISPLAY_PORT_RX1 Port Mixer", "MI2S_TX", "MI2S_TX"},
  27129. {"DISPLAY_PORT1", NULL, "DISPLAY_PORT_RX1 Port Mixer"},
  27130. {"SEC_I2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27131. {"SEC_I2S_RX", NULL, "SEC_I2S_RX Port Mixer"},
  27132. {"MI2S_RX Port Mixer", "SLIM_1_TX", "SLIMBUS_1_TX"},
  27133. {"MI2S_RX Port Mixer", "MI2S_TX", "MI2S_TX"},
  27134. {"MI2S_RX", NULL, "MI2S_RX Port Mixer"},
  27135. {"PRI_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27136. {"PRI_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27137. {"PRI_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27138. {"PRI_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27139. {"PRI_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27140. {"PRI_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27141. {"PRI_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27142. {"PRI_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27143. {"PRI_MI2S_RX Port Mixer", "INTERNAL_BT_SCO_TX", "INT_BT_SCO_TX"},
  27144. {"PRI_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27145. {"PRI_MI2S_RX Port Mixer", "SEC_AUX_PCM_UL_TX", "SEC_AUX_PCM_TX"},
  27146. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX Port Mixer"},
  27147. {"SEC_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27148. {"SEC_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27149. {"SEC_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27150. {"SEC_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27151. {"SEC_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27152. {"SEC_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27153. {"SEC_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27154. {"SEC_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27155. {"SEC_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27156. {"SEC_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27157. {"SEC_MI2S_RX", NULL, "SEC_MI2S_RX Port Mixer"},
  27158. {"TERT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27159. {"TERT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27160. {"TERT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27161. {"TERT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27162. {"TERT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27163. {"TERT_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27164. {"TERT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27165. {"TERT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27166. {"TERT_MI2S_RX", NULL, "TERT_MI2S_RX Port Mixer"},
  27167. {"QUAT_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27168. {"QUAT_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27169. {"QUAT_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27170. {"QUAT_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27171. {"QUAT_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27172. {"SEN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27173. {"QUAT_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27174. {"QUAT_MI2S_RX Port Mixer", "INTERNAL_FM_TX", "INT_FM_TX"},
  27175. {"QUAT_MI2S_RX Port Mixer", "AUX_PCM_UL_TX", "AUX_PCM_TX"},
  27176. {"QUAT_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27177. {"QUAT_MI2S_RX", NULL, "QUAT_MI2S_RX Port Mixer"},
  27178. {"QUIN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27179. {"QUIN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27180. {"QUIN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27181. {"QUIN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27182. {"QUIN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27183. {"QUIN_MI2S_RX Port Mixer", "SENARY_MI2S_TX", "SENARY_MI2S_TX"},
  27184. {"QUIN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27185. {"QUIN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27186. {"QUIN_MI2S_RX", NULL, "QUIN_MI2S_RX Port Mixer"},
  27187. {"SEN_MI2S_RX Port Mixer", "PRI_MI2S_TX", "PRI_MI2S_TX"},
  27188. {"SEN_MI2S_RX Port Mixer", "SEC_MI2S_TX", "SEC_MI2S_TX"},
  27189. {"SEN_MI2S_RX Port Mixer", "TERT_MI2S_TX", "TERT_MI2S_TX"},
  27190. {"SEN_MI2S_RX Port Mixer", "QUAT_MI2S_TX", "QUAT_MI2S_TX"},
  27191. {"SEN_MI2S_RX Port Mixer", "QUIN_MI2S_TX", "QUIN_MI2S_TX"},
  27192. {"SEN_MI2S_RX Port Mixer", "SLIM_0_TX", "SLIMBUS_0_TX"},
  27193. {"SEN_MI2S_RX Port Mixer", "SLIM_8_TX", "SLIMBUS_8_TX"},
  27194. {"SEN_MI2S_RX", NULL, "SEN_MI2S_RX Port Mixer"},
  27195. /* Backend Enablement */
  27196. {"BE_OUT", NULL, "PRI_I2S_RX"},
  27197. {"BE_OUT", NULL, "SEC_I2S_RX"},
  27198. {"BE_OUT", NULL, "SLIMBUS_0_RX"},
  27199. {"BE_OUT", NULL, "SLIMBUS_1_RX"},
  27200. {"BE_OUT", NULL, "SLIMBUS_2_RX"},
  27201. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27202. {"BE_OUT", NULL, "SLIMBUS_4_RX"},
  27203. {"BE_OUT", NULL, "SLIMBUS_5_RX"},
  27204. {"BE_OUT", NULL, "SLIMBUS_6_RX"},
  27205. {"BE_OUT", NULL, "SLIMBUS_7_RX"},
  27206. {"BE_OUT", NULL, "SLIMBUS_8_RX"},
  27207. {"BE_OUT", NULL, "SLIMBUS_9_RX"},
  27208. {"BE_OUT", NULL, "USB_AUDIO_RX"},
  27209. {"BE_OUT", NULL, "HDMI"},
  27210. {"BE_OUT", NULL, "DISPLAY_PORT"},
  27211. {"BE_OUT", NULL, "DISPLAY_PORT1"},
  27212. {"BE_OUT", NULL, "PRI_SPDIF_RX"},
  27213. {"BE_OUT", NULL, "SEC_SPDIF_RX"},
  27214. {"BE_OUT", NULL, "MI2S_RX"},
  27215. {"BE_OUT", NULL, "QUAT_MI2S_RX"},
  27216. {"BE_OUT", NULL, "QUIN_MI2S_RX"},
  27217. {"BE_OUT", NULL, "SEN_MI2S_RX"},
  27218. {"BE_OUT", NULL, "TERT_MI2S_RX"},
  27219. {"BE_OUT", NULL, "SEC_MI2S_RX"},
  27220. {"BE_OUT", NULL, "SEC_MI2S_RX_SD1"},
  27221. {"BE_OUT", NULL, "PRI_MI2S_RX"},
  27222. {"BE_OUT", NULL, "INT0_MI2S_RX"},
  27223. {"BE_OUT", NULL, "INT4_MI2S_RX"},
  27224. {"BE_OUT", NULL, "INT2_MI2S_RX"},
  27225. {"BE_OUT", NULL, "INT3_MI2S_RX"},
  27226. {"BE_OUT", NULL, "INT5_MI2S_RX"},
  27227. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27228. {"BE_OUT", NULL, "INT_BT_A2DP_RX"},
  27229. {"BE_OUT", NULL, "INT_FM_RX"},
  27230. {"BE_OUT", NULL, "PCM_RX"},
  27231. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27232. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27233. {"BE_OUT", NULL, "SEC_AUX_PCM_RX"},
  27234. {"BE_OUT", NULL, "TERT_AUX_PCM_RX"},
  27235. {"BE_OUT", NULL, "QUAT_AUX_PCM_RX"},
  27236. {"BE_OUT", NULL, "QUIN_AUX_PCM_RX"},
  27237. {"BE_OUT", NULL, "SEN_AUX_PCM_RX"},
  27238. {"BE_OUT", NULL, "INT_BT_SCO_RX"},
  27239. {"BE_OUT", NULL, "INT_FM_RX"},
  27240. {"BE_OUT", NULL, "PCM_RX"},
  27241. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27242. {"BE_OUT", NULL, "VOICE_PLAYBACK_TX"},
  27243. {"BE_OUT", NULL, "VOICE2_PLAYBACK_TX"},
  27244. {"BE_OUT", NULL, "PRI_TDM_RX_0"},
  27245. {"BE_OUT", NULL, "PRI_TDM_RX_1"},
  27246. {"BE_OUT", NULL, "PRI_TDM_RX_2"},
  27247. {"BE_OUT", NULL, "PRI_TDM_RX_3"},
  27248. {"BE_OUT", NULL, "SEC_TDM_RX_0"},
  27249. {"BE_OUT", NULL, "SEC_TDM_RX_1"},
  27250. {"BE_OUT", NULL, "SEC_TDM_RX_2"},
  27251. {"BE_OUT", NULL, "SEC_TDM_RX_3"},
  27252. {"BE_OUT", NULL, "SEC_TDM_RX_7"},
  27253. {"BE_OUT", NULL, "TERT_TDM_RX_0"},
  27254. {"BE_OUT", NULL, "TERT_TDM_RX_1"},
  27255. {"BE_OUT", NULL, "TERT_TDM_RX_2"},
  27256. {"BE_OUT", NULL, "TERT_TDM_RX_3"},
  27257. {"BE_OUT", NULL, "TERT_TDM_RX_4"},
  27258. {"BE_OUT", NULL, "QUAT_TDM_RX_0"},
  27259. {"BE_OUT", NULL, "QUAT_TDM_RX_1"},
  27260. {"BE_OUT", NULL, "QUAT_TDM_RX_2"},
  27261. {"BE_OUT", NULL, "QUAT_TDM_RX_3"},
  27262. {"BE_OUT", NULL, "QUAT_TDM_RX_7"},
  27263. {"BE_OUT", NULL, "QUIN_TDM_RX_0"},
  27264. {"BE_OUT", NULL, "QUIN_TDM_RX_1"},
  27265. {"BE_OUT", NULL, "QUIN_TDM_RX_2"},
  27266. {"BE_OUT", NULL, "QUIN_TDM_RX_3"},
  27267. {"BE_OUT", NULL, "QUIN_TDM_RX_7"},
  27268. {"BE_OUT", NULL, "SEN_TDM_RX_0"},
  27269. {"BE_OUT", NULL, "SEN_TDM_RX_1"},
  27270. {"BE_OUT", NULL, "SEN_TDM_RX_2"},
  27271. {"BE_OUT", NULL, "SEN_TDM_RX_3"},
  27272. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_0"},
  27273. {"BE_OUT", NULL, "WSA_CDC_DMA_RX_1"},
  27274. {"BE_OUT", NULL, "RX_CDC_DMA_RX_0"},
  27275. {"BE_OUT", NULL, "RX_CDC_DMA_RX_1"},
  27276. {"BE_OUT", NULL, "RX_CDC_DMA_RX_2"},
  27277. {"BE_OUT", NULL, "RX_CDC_DMA_RX_3"},
  27278. {"BE_OUT", NULL, "RX_CDC_DMA_RX_4"},
  27279. {"BE_OUT", NULL, "RX_CDC_DMA_RX_5"},
  27280. {"BE_OUT", NULL, "RX_CDC_DMA_RX_6"},
  27281. {"BE_OUT", NULL, "RX_CDC_DMA_RX_7"},
  27282. {"PRI_I2S_TX", NULL, "BE_IN"},
  27283. {"MI2S_TX", NULL, "BE_IN"},
  27284. {"QUAT_MI2S_TX", NULL, "BE_IN"},
  27285. {"QUIN_MI2S_TX", NULL, "BE_IN"},
  27286. {"PRI_MI2S_TX", NULL, "BE_IN"},
  27287. {"TERT_MI2S_TX", NULL, "BE_IN"},
  27288. {"INT0_MI2S_TX", NULL, "BE_IN"},
  27289. {"INT2_MI2S_TX", NULL, "BE_IN"},
  27290. {"INT3_MI2S_TX", NULL, "BE_IN"},
  27291. {"INT4_MI2S_TX", NULL, "BE_IN"},
  27292. {"INT5_MI2S_TX", NULL, "BE_IN"},
  27293. {"SEC_MI2S_TX", NULL, "BE_IN"},
  27294. {"SENARY_MI2S_TX", NULL, "BE_IN"},
  27295. {"SLIMBUS_0_TX", NULL, "BE_IN" },
  27296. {"SLIMBUS_1_TX", NULL, "BE_IN" },
  27297. {"SLIMBUS_3_TX", NULL, "BE_IN" },
  27298. {"SLIMBUS_4_TX", NULL, "BE_IN" },
  27299. {"SLIMBUS_5_TX", NULL, "BE_IN" },
  27300. {"SLIMBUS_6_TX", NULL, "BE_IN" },
  27301. {"SLIMBUS_7_TX", NULL, "BE_IN" },
  27302. {"SLIMBUS_8_TX", NULL, "BE_IN" },
  27303. {"SLIMBUS_9_TX", NULL, "BE_IN" },
  27304. {"USB_AUDIO_TX", NULL, "BE_IN" },
  27305. {"INT_BT_SCO_TX", NULL, "BE_IN"},
  27306. {"INT_FM_TX", NULL, "BE_IN"},
  27307. {"PCM_TX", NULL, "BE_IN"},
  27308. {"BE_OUT", NULL, "SLIMBUS_3_RX"},
  27309. {"BE_OUT", NULL, "STUB_RX"},
  27310. {"STUB_TX", NULL, "BE_IN"},
  27311. {"STUB_1_TX", NULL, "BE_IN"},
  27312. {"BE_OUT", NULL, "AUX_PCM_RX"},
  27313. {"AUX_PCM_TX", NULL, "BE_IN"},
  27314. {"SEC_AUX_PCM_TX", NULL, "BE_IN"},
  27315. {"TERT_AUX_PCM_TX", NULL, "BE_IN"},
  27316. {"QUAT_AUX_PCM_TX", NULL, "BE_IN"},
  27317. {"QUIN_AUX_PCM_TX", NULL, "BE_IN"},
  27318. {"SEN_AUX_PCM_TX", NULL, "BE_IN"},
  27319. {"INCALL_RECORD_TX", NULL, "BE_IN"},
  27320. {"INCALL_RECORD_RX", NULL, "BE_IN"},
  27321. {"SLIM0_RX_VI_FB_LCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27322. {"SLIM0_RX_VI_FB_RCH_MUX", "SLIM4_TX", "SLIMBUS_4_TX"},
  27323. {"WSA_RX_0_VI_FB_LCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27324. {"WSA_RX_0_VI_FB_RCH_MUX", "WSA_CDC_DMA_TX_0", "WSA_CDC_DMA_TX_0"},
  27325. {"PRI_MI2S_RX_VI_FB_MUX", "SENARY_TX", "SENARY_TX"},
  27326. {"INT4_MI2S_RX_VI_FB_MONO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27327. {"INT4_MI2S_RX_VI_FB_STEREO_CH_MUX", "INT5_MI2S_TX", "INT5_MI2S_TX"},
  27328. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_LCH_MUX"},
  27329. {"SLIMBUS_0_RX", NULL, "SLIM0_RX_VI_FB_RCH_MUX"},
  27330. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_LCH_MUX"},
  27331. {"WSA_CDC_DMA_RX_0", NULL, "WSA_RX_0_VI_FB_RCH_MUX"},
  27332. {"PRI_MI2S_RX", NULL, "PRI_MI2S_RX_VI_FB_MUX"},
  27333. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_MONO_CH_MUX"},
  27334. {"INT4_MI2S_RX", NULL, "INT4_MI2S_RX_VI_FB_STEREO_CH_MUX"},
  27335. {"PRI_TDM_TX_0", NULL, "BE_IN"},
  27336. {"PRI_TDM_TX_1", NULL, "BE_IN"},
  27337. {"PRI_TDM_TX_2", NULL, "BE_IN"},
  27338. {"PRI_TDM_TX_3", NULL, "BE_IN"},
  27339. {"SEC_TDM_TX_0", NULL, "BE_IN"},
  27340. {"SEC_TDM_TX_1", NULL, "BE_IN"},
  27341. {"SEC_TDM_TX_2", NULL, "BE_IN"},
  27342. {"SEC_TDM_TX_3", NULL, "BE_IN"},
  27343. {"TERT_TDM_TX_0", NULL, "BE_IN"},
  27344. {"TERT_TDM_TX_1", NULL, "BE_IN"},
  27345. {"TERT_TDM_TX_2", NULL, "BE_IN"},
  27346. {"TERT_TDM_TX_3", NULL, "BE_IN"},
  27347. {"TERT_TDM_TX_7", NULL, "BE_IN"},
  27348. {"QUAT_TDM_TX_0", NULL, "BE_IN"},
  27349. {"QUAT_TDM_TX_1", NULL, "BE_IN"},
  27350. {"QUAT_TDM_TX_2", NULL, "BE_IN"},
  27351. {"QUAT_TDM_TX_3", NULL, "BE_IN"},
  27352. {"QUAT_TDM_TX_7", NULL, "BE_IN"},
  27353. {"AFE_LOOPBACK_TX", NULL, "BE_IN"},
  27354. {"QUIN_TDM_TX_0", NULL, "BE_IN"},
  27355. {"QUIN_TDM_TX_1", NULL, "BE_IN"},
  27356. {"QUIN_TDM_TX_2", NULL, "BE_IN"},
  27357. {"QUIN_TDM_TX_3", NULL, "BE_IN"},
  27358. {"QUIN_TDM_TX_7", NULL, "BE_IN"},
  27359. {"SEN_TDM_TX_0", NULL, "BE_IN"},
  27360. {"SEN_TDM_TX_1", NULL, "BE_IN"},
  27361. {"SEN_TDM_TX_2", NULL, "BE_IN"},
  27362. {"SEN_TDM_TX_3", NULL, "BE_IN"},
  27363. {"WSA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27364. {"WSA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27365. {"WSA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27366. {"VA_CDC_DMA_TX_0", NULL, "BE_IN"},
  27367. {"VA_CDC_DMA_TX_1", NULL, "BE_IN"},
  27368. {"VA_CDC_DMA_TX_2", NULL, "BE_IN"},
  27369. {"TX_CDC_DMA_TX_0", NULL, "BE_IN"},
  27370. {"TX_CDC_DMA_TX_1", NULL, "BE_IN"},
  27371. {"TX_CDC_DMA_TX_2", NULL, "BE_IN"},
  27372. {"TX_CDC_DMA_TX_3", NULL, "BE_IN"},
  27373. {"TX_CDC_DMA_TX_4", NULL, "BE_IN"},
  27374. {"TX_CDC_DMA_TX_5", NULL, "BE_IN"},
  27375. {"PRI_SPDIF_TX", NULL, "BE_IN"},
  27376. {"SEC_SPDIF_TX", NULL, "BE_IN"},
  27377. };
  27378. static int msm_pcm_routing_hw_params(struct snd_pcm_substream *substream,
  27379. struct snd_pcm_hw_params *params)
  27380. {
  27381. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27382. unsigned int be_id = rtd->dai_link->id;
  27383. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27384. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27385. return -EINVAL;
  27386. }
  27387. mutex_lock(&routing_lock);
  27388. msm_bedais[be_id].sample_rate = params_rate(params);
  27389. msm_bedais[be_id].channel = params_channels(params);
  27390. msm_bedais[be_id].format = params_format(params);
  27391. pr_debug("%s: BE Sample Rate (%d) format (%d) BE id %d\n",
  27392. __func__, msm_bedais[be_id].sample_rate,
  27393. msm_bedais[be_id].format, be_id);
  27394. mutex_unlock(&routing_lock);
  27395. return 0;
  27396. }
  27397. static int msm_pcm_routing_close(struct snd_pcm_substream *substream)
  27398. {
  27399. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27400. unsigned int be_id = rtd->dai_link->id;
  27401. int i, session_type, path_type, topology;
  27402. struct msm_pcm_routing_bdai_data *bedai;
  27403. struct msm_pcm_routing_fdai_data *fdai;
  27404. pr_debug("%s: substream->pcm->id:%s\n",
  27405. __func__, substream->pcm->id);
  27406. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27407. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27408. return -EINVAL;
  27409. }
  27410. bedai = &msm_bedais[be_id];
  27411. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK ?
  27412. 0 : 1);
  27413. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27414. path_type = ADM_PATH_PLAYBACK;
  27415. else
  27416. path_type = ADM_PATH_LIVE_REC;
  27417. mutex_lock(&routing_lock);
  27418. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27419. if (!is_mm_lsm_fe_id(i))
  27420. continue;
  27421. fdai = &fe_dai_map[i][session_type];
  27422. if (fdai->strm_id != INVALID_SESSION) {
  27423. int idx;
  27424. int port_id;
  27425. unsigned long copp =
  27426. session_copp_map[i][session_type][be_id];
  27427. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++)
  27428. if (test_bit(idx, &copp))
  27429. break;
  27430. if (idx >= MAX_COPPS_PER_PORT) {
  27431. pr_debug("%s: copp idx is invalid, exiting\n",
  27432. __func__);
  27433. continue;
  27434. }
  27435. fdai->be_srate = bedai->sample_rate;
  27436. port_id = get_port_id(bedai->port_id);
  27437. topology = adm_get_topology_for_port_copp_idx(port_id,
  27438. idx);
  27439. msm_routing_unload_topology(topology);
  27440. adm_close(port_id, fdai->perf_mode, idx);
  27441. pr_debug("%s: copp:%ld,idx bit fe:%d, type:%d,be:%d topology=0x%x\n",
  27442. __func__, copp, i, session_type, be_id,
  27443. topology);
  27444. clear_bit(idx,
  27445. &session_copp_map[i][session_type][be_id]);
  27446. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27447. (fdai->passthr_mode == LEGACY_PCM))
  27448. msm_pcm_routing_deinit_pp(port_id,
  27449. topology);
  27450. }
  27451. }
  27452. bedai->active = 0;
  27453. bedai->sample_rate = 0;
  27454. bedai->channel = 0;
  27455. mutex_unlock(&routing_lock);
  27456. return 0;
  27457. }
  27458. static int msm_pcm_routing_prepare(struct snd_pcm_substream *substream)
  27459. {
  27460. struct snd_soc_pcm_runtime *rtd = substream->private_data;
  27461. unsigned int be_id = rtd->dai_link->id;
  27462. int i, path_type, topology;
  27463. int session_type = INVALID_SESSION;
  27464. struct msm_pcm_routing_bdai_data *bedai;
  27465. u32 channels, sample_rate;
  27466. uint16_t bits_per_sample = 16, voc_path_type, be_bit_width;
  27467. struct msm_pcm_routing_fdai_data *fdai;
  27468. u32 session_id;
  27469. struct media_format_info voc_be_media_format;
  27470. bool is_lsm;
  27471. pr_debug("%s: substream->pcm->id:%s\n",
  27472. __func__, substream->pcm->id);
  27473. if (be_id >= MSM_BACKEND_DAI_MAX) {
  27474. pr_err("%s: unexpected BE id %d\n", __func__, be_id);
  27475. return -EINVAL;
  27476. }
  27477. bedai = &msm_bedais[be_id];
  27478. mutex_lock(&routing_lock);
  27479. if (bedai->active == 1)
  27480. goto done; /* Ignore prepare if back-end already active */
  27481. /* AFE port is not active at this point. However, still
  27482. * go ahead setting active flag under the notion that
  27483. * QDSP6 is able to handle ADM starting before AFE port
  27484. * is started.
  27485. */
  27486. bedai->active = 1;
  27487. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27488. if (!(is_mm_lsm_fe_id(i) &&
  27489. route_check_fe_id_adm_support(i)))
  27490. continue;
  27491. session_type = (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) ?
  27492. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27493. fdai = &fe_dai_map[i][session_type];
  27494. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK) {
  27495. if (fdai->passthr_mode != LEGACY_PCM)
  27496. path_type = ADM_PATH_COMPRESSED_RX;
  27497. else
  27498. path_type = ADM_PATH_PLAYBACK;
  27499. } else {
  27500. if ((fdai->passthr_mode != LEGACY_PCM) &&
  27501. (fdai->passthr_mode != LISTEN))
  27502. path_type = ADM_PATH_COMPRESSED_TX;
  27503. else
  27504. path_type = ADM_PATH_LIVE_REC;
  27505. }
  27506. is_lsm = (i >= MSM_FRONTEND_DAI_LSM1) &&
  27507. (i <= MSM_FRONTEND_DAI_LSM8);
  27508. if (fdai->strm_id != INVALID_SESSION) {
  27509. int app_type, app_type_idx, copp_idx, acdb_dev_id;
  27510. int port_id = get_port_id(bedai->port_id);
  27511. if (session_type == SESSION_TYPE_TX &&
  27512. fdai->be_srate &&
  27513. (fdai->be_srate != bedai->sample_rate)) {
  27514. pr_debug("%s: flush strm %d diff BE rates\n",
  27515. __func__,
  27516. fdai->strm_id);
  27517. if (fdai->event_info.event_func)
  27518. fdai->event_info.event_func(
  27519. MSM_PCM_RT_EVT_BUF_RECFG,
  27520. fdai->event_info.priv_data);
  27521. fdai->be_srate = 0; /* might not need it */
  27522. }
  27523. bits_per_sample = msm_routing_get_bit_width(
  27524. bedai->format);
  27525. app_type =
  27526. fe_dai_app_type_cfg[i][session_type][be_id].app_type;
  27527. if (app_type && is_lsm) {
  27528. app_type_idx =
  27529. msm_pcm_routing_get_lsm_app_type_idx(app_type);
  27530. sample_rate =
  27531. fe_dai_app_type_cfg[i][session_type][be_id]
  27532. .sample_rate;
  27533. bits_per_sample =
  27534. lsm_app_type_cfg[app_type_idx].bit_width;
  27535. } else if (app_type) {
  27536. app_type_idx =
  27537. msm_pcm_routing_get_app_type_idx(app_type);
  27538. sample_rate =
  27539. fe_dai_app_type_cfg[i][session_type]
  27540. [be_id].sample_rate;
  27541. bits_per_sample =
  27542. app_type_cfg[app_type_idx].bit_width;
  27543. } else
  27544. sample_rate = bedai->sample_rate;
  27545. /*
  27546. * check if ADM needs to be configured with different
  27547. * channel mapping than backend
  27548. */
  27549. if (!bedai->adm_override_ch)
  27550. channels = bedai->channel;
  27551. else
  27552. channels = bedai->adm_override_ch;
  27553. acdb_dev_id =
  27554. fe_dai_app_type_cfg[i][session_type][be_id].acdb_dev_id;
  27555. topology = msm_routing_get_adm_topology(i, session_type,
  27556. be_id);
  27557. if ((fdai->passthr_mode == COMPRESSED_PASSTHROUGH_DSD)
  27558. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_GEN)
  27559. || (fdai->passthr_mode == COMPRESSED_PASSTHROUGH_IEC61937))
  27560. topology = COMPRESSED_PASSTHROUGH_NONE_TOPOLOGY;
  27561. be_bit_width = msm_routing_get_bit_width(
  27562. bedai->format);
  27563. if (hifi_filter_enabled && (bedai->sample_rate == 384000
  27564. || bedai->sample_rate == 352800) &&
  27565. be_bit_width == 32)
  27566. bits_per_sample = msm_routing_get_bit_width(
  27567. SNDRV_PCM_FORMAT_S32_LE);
  27568. copp_idx = adm_open(port_id, path_type,
  27569. sample_rate, channels, topology,
  27570. fdai->perf_mode, bits_per_sample,
  27571. app_type, acdb_dev_id,
  27572. session_type);
  27573. if ((copp_idx < 0) ||
  27574. (copp_idx >= MAX_COPPS_PER_PORT)) {
  27575. pr_err("%s: adm open failed\n", __func__);
  27576. mutex_unlock(&routing_lock);
  27577. return -EINVAL;
  27578. }
  27579. pr_debug("%s: setting idx bit of fe:%d, type: %d, be:%d\n",
  27580. __func__, i, session_type, be_id);
  27581. set_bit(copp_idx,
  27582. &session_copp_map[i][session_type][be_id]);
  27583. if (msm_is_resample_needed(
  27584. sample_rate,
  27585. bedai->sample_rate))
  27586. adm_copp_mfc_cfg(port_id, copp_idx,
  27587. bedai->sample_rate);
  27588. msm_pcm_routing_build_matrix(i, session_type, path_type,
  27589. fdai->perf_mode, fdai->passthr_mode);
  27590. if ((fdai->perf_mode == LEGACY_PCM_MODE) &&
  27591. (fdai->passthr_mode == LEGACY_PCM))
  27592. msm_pcm_routing_cfg_pp(port_id, copp_idx,
  27593. topology, channels);
  27594. }
  27595. }
  27596. for_each_set_bit(i, &bedai->fe_sessions[0], MSM_FRONTEND_DAI_MAX) {
  27597. session_id = msm_pcm_routing_get_voc_sessionid(i);
  27598. if (session_id) {
  27599. pr_debug("%s voice session_id: 0x%x\n", __func__,
  27600. session_id);
  27601. if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
  27602. voc_path_type = RX_PATH;
  27603. else
  27604. voc_path_type = TX_PATH;
  27605. voc_set_route_flag(session_id, voc_path_type, 1);
  27606. memset(&voc_be_media_format, 0,
  27607. sizeof(struct media_format_info));
  27608. voc_be_media_format.port_id = bedai->port_id;
  27609. voc_be_media_format.num_channels = bedai->channel;
  27610. voc_be_media_format.sample_rate = bedai->sample_rate;
  27611. voc_be_media_format.bits_per_sample = bedai->format;
  27612. /* Defaulting this to 1 for voice call usecases */
  27613. voc_be_media_format.channel_mapping[0] = 1;
  27614. voc_set_device_config(session_id, voc_path_type,
  27615. &voc_be_media_format);
  27616. if (voc_get_route_flag(session_id, RX_PATH) &&
  27617. voc_get_route_flag(session_id, TX_PATH))
  27618. voc_enable_device(session_id);
  27619. }
  27620. }
  27621. /* Check if backend is an external ec ref port and set as needed */
  27622. if (unlikely(bedai->port_id == voc_get_ext_ec_ref_port_id())) {
  27623. memset(&voc_be_media_format, 0,
  27624. sizeof(struct media_format_info));
  27625. /* Get format info for ec ref port from msm_bedais[] */
  27626. voc_be_media_format.port_id = bedai->port_id;
  27627. voc_be_media_format.num_channels = bedai->channel;
  27628. voc_be_media_format.bits_per_sample = bedai->format;
  27629. voc_be_media_format.sample_rate = bedai->sample_rate;
  27630. /* Defaulting this to 1 for voice call usecases */
  27631. voc_be_media_format.channel_mapping[0] = 1;
  27632. voc_set_ext_ec_ref_media_fmt_info(&voc_be_media_format);
  27633. pr_debug("%s: EC Ref media format info set to port_id=%d, num_channels=%d, bits_per_sample=%d, sample_rate=%d\n",
  27634. __func__, voc_be_media_format.port_id,
  27635. voc_be_media_format.num_channels,
  27636. voc_be_media_format.bits_per_sample,
  27637. voc_be_media_format.sample_rate);
  27638. }
  27639. done:
  27640. mutex_unlock(&routing_lock);
  27641. return 0;
  27642. }
  27643. static int msm_routing_send_device_pp_params(int port_id, int copp_idx,
  27644. int fe_id)
  27645. {
  27646. int index, topo_id, be_idx;
  27647. unsigned long pp_config = 0;
  27648. bool mute_on;
  27649. int latency, session_type;
  27650. bool compr_passthr_mode = true;
  27651. pr_debug("%s: port_id %d, copp_idx %d\n", __func__, port_id, copp_idx);
  27652. if (port_id != HDMI_RX && port_id != DISPLAY_PORT_RX) {
  27653. pr_err("%s: Device pp params on invalid port %d\n",
  27654. __func__, port_id);
  27655. return -EINVAL;
  27656. }
  27657. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27658. if (port_id == msm_bedais[be_idx].port_id)
  27659. break;
  27660. }
  27661. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27662. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27663. return -EINVAL;
  27664. }
  27665. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27666. if (msm_bedais_pp_params[index].port_id == port_id)
  27667. break;
  27668. }
  27669. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27670. pr_err("%s: Invalid backend pp params index %d\n",
  27671. __func__, index);
  27672. return -EINVAL;
  27673. }
  27674. topo_id = adm_get_topology_for_port_copp_idx(port_id, copp_idx);
  27675. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY) {
  27676. pr_err("%s: Invalid passthrough topology 0x%x\n",
  27677. __func__, topo_id);
  27678. return -EINVAL;
  27679. }
  27680. session_type =
  27681. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27682. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27683. if ((fe_dai_map[fe_id][session_type].passthr_mode == LEGACY_PCM) ||
  27684. (fe_dai_map[fe_id][session_type].passthr_mode == LISTEN))
  27685. compr_passthr_mode = false;
  27686. pp_config = msm_bedais_pp_params[index].pp_params_config;
  27687. if (test_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config)) {
  27688. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27689. clear_bit(ADM_PP_PARAM_MUTE_BIT, &pp_config);
  27690. mute_on = msm_bedais_pp_params[index].mute_on;
  27691. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27692. adm_send_compressed_device_mute(port_id,
  27693. copp_idx,
  27694. mute_on);
  27695. }
  27696. if (test_bit(ADM_PP_PARAM_LATENCY_BIT, &pp_config)) {
  27697. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27698. clear_bit(ADM_PP_PARAM_LATENCY_BIT,
  27699. &pp_config);
  27700. latency = msm_bedais_pp_params[index].latency;
  27701. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27702. adm_send_compressed_device_latency(port_id,
  27703. copp_idx,
  27704. latency);
  27705. }
  27706. return 0;
  27707. }
  27708. static uint32_t msm_routing_get_topology(size_t data_size, void *data)
  27709. {
  27710. uint32_t topology = NULL_COPP_TOPOLOGY;
  27711. void *cal_info = NULL;
  27712. uint32_t size = 0;
  27713. /* Retrieve cal_info size from cal data*/
  27714. if (data_size < sizeof(struct audio_cal_type_basic) +
  27715. sizeof(struct audio_cal_info_adm_top)) {
  27716. pr_err("%s: Invalid data size: %zd\n", __func__, data_size);
  27717. goto done;
  27718. }
  27719. size = data_size - sizeof(struct audio_cal_type_basic);
  27720. cal_info = kzalloc(size, GFP_KERNEL);
  27721. if (!cal_info)
  27722. goto done;
  27723. memcpy(cal_info,
  27724. ((uint8_t *)data + sizeof(struct audio_cal_type_basic)), size);
  27725. topology = ((struct audio_cal_info_adm_top *)cal_info)->topology;
  27726. kfree(cal_info);
  27727. cal_info = NULL;
  27728. done:
  27729. pr_debug("%s: Using topology %d\n", __func__, topology);
  27730. return topology;
  27731. }
  27732. static void msm_routing_load_topology(size_t data_size, void *data)
  27733. {
  27734. uint32_t topology_id;
  27735. int ret = -EINVAL;
  27736. topology_id = msm_routing_get_topology(data_size, data);
  27737. if (topology_id != NULL_COPP_TOPOLOGY)
  27738. ret = q6core_load_unload_topo_modules(topology_id,
  27739. CORE_LOAD_TOPOLOGY);
  27740. if (ret < 0)
  27741. pr_debug("%s %d load topology failed\n",
  27742. __func__, topology_id);
  27743. }
  27744. static void msm_routing_unload_topology(uint32_t topology_id)
  27745. {
  27746. int ret = -EINVAL;
  27747. if (topology_id != NULL_COPP_TOPOLOGY)
  27748. ret = q6core_load_unload_topo_modules(topology_id,
  27749. CORE_UNLOAD_TOPOLOGY);
  27750. if (ret < 0)
  27751. pr_debug("%s %d unload topology failed\n",
  27752. __func__, topology_id);
  27753. }
  27754. static int msm_routing_put_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27755. struct snd_ctl_elem_value *ucontrol)
  27756. {
  27757. int pp_id = ucontrol->value.integer.value[0];
  27758. int port_id = 0;
  27759. int index, be_idx, i, topo_id, idx;
  27760. bool mute;
  27761. int latency, session_type;
  27762. bool compr_passthr_mode = true;
  27763. pr_debug("%s: pp_id: 0x%x\n", __func__, pp_id);
  27764. for (be_idx = 0; be_idx < MSM_BACKEND_DAI_MAX; be_idx++) {
  27765. port_id = msm_bedais[be_idx].port_id;
  27766. if (port_id == HDMI_RX || port_id == DISPLAY_PORT_RX)
  27767. break;
  27768. }
  27769. if (be_idx >= MSM_BACKEND_DAI_MAX) {
  27770. pr_debug("%s: Invalid be id %d\n", __func__, be_idx);
  27771. return -EINVAL;
  27772. }
  27773. for (index = 0; index < MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX; index++) {
  27774. if (msm_bedais_pp_params[index].port_id == port_id)
  27775. break;
  27776. }
  27777. if (index >= MSM_BACKEND_DAI_PP_PARAMS_REQ_MAX) {
  27778. pr_err("%s: Invalid pp params backend index %d\n",
  27779. __func__, index);
  27780. return -EINVAL;
  27781. }
  27782. session_type =
  27783. (afe_get_port_type(port_id) == MSM_AFE_PORT_TYPE_RX) ?
  27784. SESSION_TYPE_RX : SESSION_TYPE_TX;
  27785. for_each_set_bit(i, &msm_bedais[be_idx].fe_sessions[0],
  27786. MSM_FRONTEND_DAI_MM_SIZE) {
  27787. if ((fe_dai_map[i][session_type].passthr_mode == LEGACY_PCM) ||
  27788. (fe_dai_map[i][session_type].passthr_mode == LISTEN))
  27789. compr_passthr_mode = false;
  27790. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27791. unsigned long copp =
  27792. session_copp_map[i]
  27793. [SESSION_TYPE_RX][be_idx];
  27794. if (!test_bit(idx, &copp))
  27795. continue;
  27796. topo_id = adm_get_topology_for_port_copp_idx(port_id,
  27797. idx);
  27798. if (topo_id != COMPRESSED_PASSTHROUGH_DEFAULT_TOPOLOGY)
  27799. continue;
  27800. pr_debug("%s: port: 0x%x, copp %ld, be active: %d, passt: %d\n",
  27801. __func__, port_id, copp, msm_bedais[be_idx].active,
  27802. fe_dai_map[i][session_type].passthr_mode);
  27803. switch (pp_id) {
  27804. case ADM_PP_PARAM_MUTE_ID:
  27805. pr_debug("%s: ADM_PP_PARAM_MUTE\n", __func__);
  27806. mute = ucontrol->value.integer.value[1] ? true : false;
  27807. msm_bedais_pp_params[index].mute_on = mute;
  27808. set_bit(ADM_PP_PARAM_MUTE_BIT,
  27809. &msm_bedais_pp_params[index].pp_params_config);
  27810. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27811. adm_send_compressed_device_mute(port_id,
  27812. idx, mute);
  27813. break;
  27814. case ADM_PP_PARAM_LATENCY_ID:
  27815. pr_debug("%s: ADM_PP_PARAM_LATENCY\n", __func__);
  27816. msm_bedais_pp_params[index].latency =
  27817. ucontrol->value.integer.value[1];
  27818. set_bit(ADM_PP_PARAM_LATENCY_BIT,
  27819. &msm_bedais_pp_params[index].pp_params_config);
  27820. latency = msm_bedais_pp_params[index].latency =
  27821. ucontrol->value.integer.value[1];
  27822. if ((msm_bedais[be_idx].active) && compr_passthr_mode)
  27823. adm_send_compressed_device_latency(port_id,
  27824. idx, latency);
  27825. break;
  27826. default:
  27827. pr_info("%s, device pp param %d not supported\n",
  27828. __func__, pp_id);
  27829. break;
  27830. }
  27831. }
  27832. }
  27833. return 0;
  27834. }
  27835. static int msm_routing_get_device_pp_params_mixer(struct snd_kcontrol *kcontrol,
  27836. struct snd_ctl_elem_value *ucontrol)
  27837. {
  27838. pr_debug("%s:msm_routing_get_device_pp_params_mixer", __func__);
  27839. return 0;
  27840. }
  27841. static const struct snd_kcontrol_new device_pp_params_mixer_controls[] = {
  27842. SOC_SINGLE_MULTI_EXT("Device PP Params", SND_SOC_NOPM, 0, 0xFFFFFFFF,
  27843. 0, 3, msm_routing_get_device_pp_params_mixer,
  27844. msm_routing_put_device_pp_params_mixer),
  27845. };
  27846. static int msm_aptx_dec_license_control_get(struct snd_kcontrol *kcontrol,
  27847. struct snd_ctl_elem_value *ucontrol)
  27848. {
  27849. ucontrol->value.integer.value[0] =
  27850. core_get_license_status(ASM_MEDIA_FMT_APTX);
  27851. pr_debug("%s: status %ld\n", __func__,
  27852. ucontrol->value.integer.value[0]);
  27853. return 0;
  27854. }
  27855. static int msm_aptx_dec_license_control_put(struct snd_kcontrol *kcontrol,
  27856. struct snd_ctl_elem_value *ucontrol)
  27857. {
  27858. int32_t status = 0;
  27859. status = core_set_license(ucontrol->value.integer.value[0],
  27860. APTX_CLASSIC_DEC_LICENSE_ID);
  27861. pr_debug("%s: status %d\n", __func__, status);
  27862. return status;
  27863. }
  27864. static const struct snd_kcontrol_new aptx_dec_license_controls[] = {
  27865. SOC_SINGLE_EXT("APTX Dec License", SND_SOC_NOPM, 0,
  27866. 0xFFFF, 0, msm_aptx_dec_license_control_get,
  27867. msm_aptx_dec_license_control_put),
  27868. };
  27869. static int msm_routing_put_port_chmap_mixer(struct snd_kcontrol *kcontrol,
  27870. struct snd_ctl_elem_value *ucontrol)
  27871. {
  27872. uint8_t channel_map[PCM_FORMAT_MAX_NUM_CHANNEL_V8];
  27873. uint32_t be_idx = ucontrol->value.integer.value[0];
  27874. int i;
  27875. for (i = 0; i < PCM_FORMAT_MAX_NUM_CHANNEL_V8; i++) {
  27876. channel_map[i] = (char)(ucontrol->value.integer.value[i + 1]);
  27877. if (channel_map[i] > PCM_MAX_CHMAP_ID) {
  27878. pr_err("%s: Invalid channel map %d\n",
  27879. __func__, channel_map[i]);
  27880. return -EINVAL;
  27881. }
  27882. }
  27883. adm_set_port_multi_ch_map(channel_map, msm_bedais[be_idx].port_id);
  27884. return 0;
  27885. }
  27886. static const struct snd_kcontrol_new port_multi_channel_map_mixer_controls[] = {
  27887. SOC_SINGLE_MULTI_EXT("Backend Device Channel Map", SND_SOC_NOPM, 0,
  27888. MSM_BACKEND_DAI_MAX, 0,
  27889. PCM_FORMAT_MAX_NUM_CHANNEL_V8 + 1, NULL,
  27890. msm_routing_put_port_chmap_mixer),
  27891. };
  27892. static int msm_routing_be_dai_name_table_info(struct snd_kcontrol *kcontrol,
  27893. struct snd_ctl_elem_info *uinfo)
  27894. {
  27895. uinfo->type = SNDRV_CTL_ELEM_TYPE_BYTES;
  27896. uinfo->count = sizeof(be_dai_name_table);
  27897. return 0;
  27898. }
  27899. static int msm_routing_be_dai_name_table_tlv_get(struct snd_kcontrol *kcontrol,
  27900. unsigned int __user *bytes,
  27901. unsigned int size)
  27902. {
  27903. int i;
  27904. int ret = 0;
  27905. if (size < sizeof(be_dai_name_table)) {
  27906. pr_err("%s: invalid size %d requested, returning\n",
  27907. __func__, size);
  27908. ret = -EINVAL;
  27909. goto done;
  27910. }
  27911. /*
  27912. * Fill be_dai_name_table from msm_bedais table to reduce code changes
  27913. * needed when adding new backends
  27914. */
  27915. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  27916. be_dai_name_table[i].be_id = i;
  27917. strlcpy(be_dai_name_table[i].be_name,
  27918. msm_bedais[i].name,
  27919. LPASS_BE_NAME_MAX_LENGTH);
  27920. }
  27921. ret = copy_to_user(bytes, &be_dai_name_table,
  27922. sizeof(be_dai_name_table));
  27923. if (ret) {
  27924. pr_err("%s: failed to copy be_dai_name_table\n", __func__);
  27925. ret = -EFAULT;
  27926. }
  27927. done:
  27928. return ret;
  27929. }
  27930. static const struct snd_kcontrol_new
  27931. msm_routing_be_dai_name_table_mixer_controls[] = {
  27932. {
  27933. .access = SNDRV_CTL_ELEM_ACCESS_TLV_READ |
  27934. SNDRV_CTL_ELEM_ACCESS_TLV_CALLBACK,
  27935. .info = msm_routing_be_dai_name_table_info,
  27936. .name = "Backend DAI Name Table",
  27937. .tlv.c = snd_soc_bytes_tlv_callback,
  27938. .private_value = (unsigned long) &(struct soc_bytes_ext) {
  27939. .max = sizeof(be_dai_name_table),
  27940. .get = msm_routing_be_dai_name_table_tlv_get,
  27941. }
  27942. },
  27943. };
  27944. static int msm_routing_stereo_channel_reverse_control_get(
  27945. struct snd_kcontrol *kcontrol,
  27946. struct snd_ctl_elem_value *ucontrol)
  27947. {
  27948. ucontrol->value.integer.value[0] = swap_ch;
  27949. pr_debug("%s: Swap channel value: %ld\n", __func__,
  27950. ucontrol->value.integer.value[0]);
  27951. return 0;
  27952. }
  27953. static int msm_routing_stereo_channel_reverse_control_put(
  27954. struct snd_kcontrol *kcontrol,
  27955. struct snd_ctl_elem_value *ucontrol)
  27956. {
  27957. int i, idx, be_index, port_id;
  27958. int ret = 0;
  27959. unsigned long copp;
  27960. pr_debug("%s Swap channel value:%ld\n", __func__,
  27961. ucontrol->value.integer.value[0]);
  27962. swap_ch = ucontrol->value.integer.value[0];
  27963. mutex_lock(&routing_lock);
  27964. for (be_index = 0; be_index < MSM_BACKEND_DAI_MAX; be_index++) {
  27965. port_id = msm_bedais[be_index].port_id;
  27966. if (!msm_bedais[be_index].active)
  27967. continue;
  27968. for_each_set_bit(i, &msm_bedais[be_index].fe_sessions[0],
  27969. MSM_FRONTEND_DAI_MM_SIZE) {
  27970. copp = session_copp_map[i][SESSION_TYPE_RX][be_index];
  27971. for (idx = 0; idx < MAX_COPPS_PER_PORT; idx++) {
  27972. if (!test_bit(idx, &copp))
  27973. continue;
  27974. pr_debug("%s: swap channel control of portid:%d, coppid:%d\n",
  27975. __func__, port_id, idx);
  27976. ret = adm_swap_speaker_channels(
  27977. port_id, idx,
  27978. msm_bedais[be_index].sample_rate,
  27979. swap_ch);
  27980. if (ret) {
  27981. pr_err("%s:Swap_channel failed, err=%d\n",
  27982. __func__, ret);
  27983. goto done;
  27984. }
  27985. }
  27986. }
  27987. }
  27988. done:
  27989. mutex_unlock(&routing_lock);
  27990. return ret;
  27991. }
  27992. static const struct snd_kcontrol_new stereo_channel_reverse_control[] = {
  27993. SOC_SINGLE_EXT("Swap channel", SND_SOC_NOPM, 0,
  27994. 1, 0, msm_routing_stereo_channel_reverse_control_get,
  27995. msm_routing_stereo_channel_reverse_control_put),
  27996. };
  27997. static int msm_routing_instance_id_support_info(struct snd_kcontrol *kcontrol,
  27998. struct snd_ctl_elem_info *uinfo)
  27999. {
  28000. uinfo->type = SNDRV_CTL_ELEM_TYPE_BOOLEAN;
  28001. uinfo->count = 1;
  28002. return 0;
  28003. }
  28004. static int msm_routing_instance_id_support_put(
  28005. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28006. {
  28007. bool supported = ucontrol->value.integer.value[0] ? true : false;
  28008. q6common_update_instance_id_support(supported);
  28009. return 0;
  28010. }
  28011. static int msm_routing_instance_id_support_get(
  28012. struct snd_kcontrol *kcontrol, struct snd_ctl_elem_value *ucontrol)
  28013. {
  28014. bool supported = false;
  28015. supported = q6common_is_instance_id_supported();
  28016. ucontrol->value.integer.value[0] = supported ? 1 : 0;
  28017. return 0;
  28018. }
  28019. static const struct snd_kcontrol_new
  28020. msm_routing_feature_support_mixer_controls[] = {
  28021. {
  28022. .access = SNDRV_CTL_ELEM_ACCESS_READ |
  28023. SNDRV_CTL_ELEM_ACCESS_WRITE,
  28024. .info = msm_routing_instance_id_support_info,
  28025. .name = "Instance ID Support",
  28026. .put = msm_routing_instance_id_support_put,
  28027. .get = msm_routing_instance_id_support_get,
  28028. },
  28029. };
  28030. static const struct snd_pcm_ops msm_routing_pcm_ops = {
  28031. .hw_params = msm_pcm_routing_hw_params,
  28032. .close = msm_pcm_routing_close,
  28033. .prepare = msm_pcm_routing_prepare,
  28034. };
  28035. /* Not used but frame seems to require it */
  28036. static int msm_routing_probe(struct snd_soc_component *component)
  28037. {
  28038. snd_soc_dapm_new_controls(&component->dapm, msm_qdsp6_widgets,
  28039. ARRAY_SIZE(msm_qdsp6_widgets));
  28040. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_OUT");
  28041. snd_soc_dapm_ignore_suspend(&component->dapm, "BE_IN");
  28042. snd_soc_dapm_add_routes(&component->dapm, intercon,
  28043. ARRAY_SIZE(intercon));
  28044. snd_soc_dapm_new_widgets(component->dapm.card);
  28045. snd_soc_add_component_controls(component, lsm_controls,
  28046. ARRAY_SIZE(lsm_controls));
  28047. snd_soc_add_component_controls(component, aanc_slim_0_rx_mux,
  28048. ARRAY_SIZE(aanc_slim_0_rx_mux));
  28049. snd_soc_add_component_controls(component, aanc_noise_level,
  28050. ARRAY_SIZE(aanc_noise_level));
  28051. snd_soc_add_component_controls(component, msm_voc_session_controls,
  28052. ARRAY_SIZE(msm_voc_session_controls));
  28053. snd_soc_add_component_controls(component, app_type_cfg_controls,
  28054. ARRAY_SIZE(app_type_cfg_controls));
  28055. snd_soc_add_component_controls(component, lsm_app_type_cfg_controls,
  28056. ARRAY_SIZE(lsm_app_type_cfg_controls));
  28057. snd_soc_add_component_controls(component, module_cfg_controls,
  28058. ARRAY_SIZE(module_cfg_controls));
  28059. snd_soc_add_component_controls(component,
  28060. stereo_to_custom_stereo_controls,
  28061. ARRAY_SIZE(stereo_to_custom_stereo_controls));
  28062. snd_soc_add_component_controls(component, ec_ref_param_controls,
  28063. ARRAY_SIZE(ec_ref_param_controls));
  28064. snd_soc_add_component_controls(component, channel_mixer_controls,
  28065. ARRAY_SIZE(channel_mixer_controls));
  28066. msm_qti_pp_add_controls(component);
  28067. msm_dts_srs_tm_add_controls(component);
  28068. msm_dolby_dap_add_controls(component);
  28069. snd_soc_add_component_controls(component,
  28070. use_ds1_or_ds2_controls,
  28071. ARRAY_SIZE(use_ds1_or_ds2_controls));
  28072. snd_soc_add_component_controls(component,
  28073. hifi_filter_controls,
  28074. ARRAY_SIZE(hifi_filter_controls));
  28075. snd_soc_add_component_controls(component,
  28076. device_pp_params_mixer_controls,
  28077. ARRAY_SIZE(device_pp_params_mixer_controls));
  28078. snd_soc_add_component_controls(component,
  28079. msm_routing_be_dai_name_table_mixer_controls,
  28080. ARRAY_SIZE(msm_routing_be_dai_name_table_mixer_controls));
  28081. snd_soc_add_component_controls(component, msm_source_tracking_controls,
  28082. ARRAY_SIZE(msm_source_tracking_controls));
  28083. snd_soc_add_component_controls(component, adm_channel_config_controls,
  28084. ARRAY_SIZE(adm_channel_config_controls));
  28085. snd_soc_add_component_controls(component, aptx_dec_license_controls,
  28086. ARRAY_SIZE(aptx_dec_license_controls));
  28087. snd_soc_add_component_controls(component,
  28088. stereo_channel_reverse_control,
  28089. ARRAY_SIZE(stereo_channel_reverse_control));
  28090. snd_soc_add_component_controls(
  28091. component, msm_routing_feature_support_mixer_controls,
  28092. ARRAY_SIZE(msm_routing_feature_support_mixer_controls));
  28093. snd_soc_add_component_controls(component,
  28094. port_multi_channel_map_mixer_controls,
  28095. ARRAY_SIZE(port_multi_channel_map_mixer_controls));
  28096. return 0;
  28097. }
  28098. int msm_routing_pcm_new(struct snd_soc_pcm_runtime *runtime)
  28099. {
  28100. return msm_pcm_routing_hwdep_new(runtime, msm_bedais);
  28101. }
  28102. void msm_routing_pcm_free(struct snd_pcm *pcm)
  28103. {
  28104. msm_pcm_routing_hwdep_free(pcm);
  28105. }
  28106. static struct snd_soc_component_driver msm_soc_routing_component = {
  28107. .name = DRV_NAME,
  28108. .ops = &msm_routing_pcm_ops,
  28109. .probe = msm_routing_probe,
  28110. .pcm_new = msm_routing_pcm_new,
  28111. .pcm_free = msm_routing_pcm_free,
  28112. };
  28113. static int msm_routing_pcm_probe(struct platform_device *pdev)
  28114. {
  28115. dev_dbg(&pdev->dev, "dev name %s\n", dev_name(&pdev->dev));
  28116. return snd_soc_register_component(&pdev->dev,
  28117. &msm_soc_routing_component,
  28118. NULL, 0);
  28119. }
  28120. static int msm_routing_pcm_remove(struct platform_device *pdev)
  28121. {
  28122. snd_soc_unregister_component(&pdev->dev);
  28123. return 0;
  28124. }
  28125. static const struct of_device_id msm_pcm_routing_dt_match[] = {
  28126. {.compatible = "qcom,msm-pcm-routing"},
  28127. {}
  28128. };
  28129. MODULE_DEVICE_TABLE(of, msm_pcm_routing_dt_match);
  28130. static struct platform_driver msm_routing_pcm_driver = {
  28131. .driver = {
  28132. .name = "msm-pcm-routing",
  28133. .owner = THIS_MODULE,
  28134. .of_match_table = msm_pcm_routing_dt_match,
  28135. .suppress_bind_attrs = true,
  28136. },
  28137. .probe = msm_routing_pcm_probe,
  28138. .remove = msm_routing_pcm_remove,
  28139. };
  28140. int msm_routing_check_backend_enabled(int fedai_id)
  28141. {
  28142. int i;
  28143. if (fedai_id > MSM_FRONTEND_DAI_MM_MAX_ID) {
  28144. /* bad ID assigned in machine driver */
  28145. pr_err("%s: bad MM ID\n", __func__);
  28146. return 0;
  28147. }
  28148. for (i = 0; i < MSM_BACKEND_DAI_MAX; i++) {
  28149. if (test_bit(fedai_id, &msm_bedais[i].fe_sessions[0]))
  28150. return msm_bedais[i].active;
  28151. }
  28152. return 0;
  28153. }
  28154. static int get_cal_type_index(int32_t cal_type)
  28155. {
  28156. int ret = -EINVAL;
  28157. switch (cal_type) {
  28158. case ADM_TOPOLOGY_CAL_TYPE:
  28159. ret = ADM_TOPOLOGY_CAL_TYPE_IDX;
  28160. break;
  28161. case ADM_LSM_TOPOLOGY_CAL_TYPE:
  28162. ret = ADM_LSM_TOPOLOGY_CAL_TYPE_IDX;
  28163. break;
  28164. default:
  28165. pr_err("%s: Invalid cal type %d\n", __func__, cal_type);
  28166. }
  28167. return ret;
  28168. }
  28169. static int msm_routing_set_cal(int32_t cal_type,
  28170. size_t data_size, void *data)
  28171. {
  28172. int ret = 0;
  28173. int cal_index;
  28174. pr_debug("%s\n", __func__);
  28175. cal_index = get_cal_type_index(cal_type);
  28176. if (cal_index < 0) {
  28177. pr_err("%s: Could not get cal index %d\n",
  28178. __func__, cal_index);
  28179. ret = -EINVAL;
  28180. goto done;
  28181. }
  28182. ret = cal_utils_set_cal(data_size, data, cal_data[cal_index], 0, NULL);
  28183. if (ret < 0) {
  28184. pr_err("%s: cal_utils_set_cal failed, ret = %d, cal type = %d!\n",
  28185. __func__, ret, cal_type);
  28186. ret = -EINVAL;
  28187. goto done;
  28188. }
  28189. /* Pre-load if it is ADM topology */
  28190. if ((cal_index == ADM_TOPOLOGY_CAL_TYPE_IDX) ||
  28191. (cal_index == ADM_LSM_TOPOLOGY_CAL_TYPE_IDX)) {
  28192. msm_routing_load_topology(data_size, data);
  28193. }
  28194. done:
  28195. return ret;
  28196. }
  28197. static void msm_routing_delete_cal_data(void)
  28198. {
  28199. pr_debug("%s\n", __func__);
  28200. cal_utils_destroy_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0]);
  28201. }
  28202. static int msm_routing_init_cal_data(void)
  28203. {
  28204. int ret = 0;
  28205. struct cal_type_info cal_type_info[] = {
  28206. {{ADM_TOPOLOGY_CAL_TYPE,
  28207. {NULL, NULL, NULL,
  28208. msm_routing_set_cal, NULL, NULL} },
  28209. {NULL, NULL, cal_utils_match_buf_num} },
  28210. {{ADM_LSM_TOPOLOGY_CAL_TYPE,
  28211. {NULL, NULL, NULL,
  28212. msm_routing_set_cal, NULL, NULL} },
  28213. {NULL, NULL, cal_utils_match_buf_num} },
  28214. };
  28215. pr_debug("%s\n", __func__);
  28216. ret = cal_utils_create_cal_types(MAX_ROUTING_CAL_TYPES, &cal_data[0],
  28217. &cal_type_info[0]);
  28218. if (ret < 0) {
  28219. pr_err("%s: could not create cal type!\n",
  28220. __func__);
  28221. ret = -EINVAL;
  28222. goto err;
  28223. }
  28224. return ret;
  28225. err:
  28226. msm_routing_delete_cal_data();
  28227. return ret;
  28228. }
  28229. int __init msm_soc_routing_platform_init(void)
  28230. {
  28231. mutex_init(&routing_lock);
  28232. if (msm_routing_init_cal_data())
  28233. pr_err("%s: could not init cal data!\n", __func__);
  28234. afe_set_routing_callback(
  28235. (routing_cb)msm_pcm_get_dev_acdb_id_by_port_id);
  28236. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28237. memset(&last_be_id_configured, 0, sizeof(last_be_id_configured));
  28238. return platform_driver_register(&msm_routing_pcm_driver);
  28239. }
  28240. void msm_soc_routing_platform_exit(void)
  28241. {
  28242. msm_routing_delete_cal_data();
  28243. memset(&be_dai_name_table, 0, sizeof(be_dai_name_table));
  28244. mutex_destroy(&routing_lock);
  28245. platform_driver_unregister(&msm_routing_pcm_driver);
  28246. }
  28247. MODULE_DESCRIPTION("MSM routing platform driver");
  28248. MODULE_LICENSE("GPL v2");